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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d04ff7aa7e07257b96aff8ecd2ac3531776a24fd | a69c8ba32704c7df2b1ccbe441fac627d93ab1ec | /ml_project/src/models/__init__.py | 81a26a996b1b5a92faccdf3e74ff48daf8fd9546 | [
"MIT"
] | permissive | made-ml-in-prod-2021/lenaso | 4fcdaa7ae06e93f3af85c331647a5e6ae4e3d30f | ea37dc4c57f589e3819e7563a70f8b8143020189 | refs/heads/main | 2023-05-27T23:35:20.016451 | 2021-06-20T15:12:15 | 2021-06-20T15:12:15 | 354,387,164 | 0 | 0 | null | 2021-06-20T15:12:16 | 2021-04-03T20:24:17 | HTML | UTF-8 | Python | false | false | 196 | py | from .model_utils import (
serialize_model,
load_model,
evaluate_model,
open_path,
)
__all__ = [
"serialize_model",
"load_model",
"evaluate_model",
"open_path",
]
| [
"soldatenkoes@gmail.com"
] | soldatenkoes@gmail.com |
aeed5b4161b460ba6529338c6ec055b067a66ba0 | d218d3c2931724101cc3f80ac38632b7092c29eb | /a_new_learn/formatted_name.py | 5a38d7f09cce1ca6859dcf66275e4eaf176b5b64 | [] | no_license | weifanghuang/python_learn | f77f912ce61747f6f292e540201a9de17d0110c9 | 92a505a23e75a01638af2f7a4f2a79de0f0865cb | refs/heads/master | 2020-09-24T23:19:39.911136 | 2019-12-05T13:35:59 | 2019-12-05T13:35:59 | 225,867,266 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | def get_formatted_name(first_name, last_name, middle_name ='',age =''):
"""back a whole name"""
full_name = first_name + ' ' + last_name
return full_name.title()
while True :
print("\nPlease tell me your name: ")
print("(enter 'q' at any time to quit")
f_name = input("First_name: ")
if f_name == 'q':
break
... | [
"huangweifangkim@gmail.com"
] | huangweifangkim@gmail.com |
e4d376fe1398ce582dce173859bfe5e29330e418 | 8dd9e33ddf2d731e35c1ef0a0f4ed065c792e955 | /dataWebenv/lib/python3.6/shutil.py | a0c1b27f1a6b69743b38d6a457b74d18df49f43b | [] | no_license | mxquants/data-webapp | 402e89912ceba5a38c97a3d48c85781b2ed71330 | 7c9f3b6d776b224676b6495c9d9f1e86294161b6 | refs/heads/master | 2021-01-21T20:29:32.767189 | 2017-06-02T03:36:18 | 2017-06-02T03:36:18 | 92,240,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | /home/rhdzmota/anaconda3/lib/python3.6/shutil.py | [
"rhdzmota@mxquants.com"
] | rhdzmota@mxquants.com |
1332cc18df8bec9ad15a0c2f869d24c6ca979ac3 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /LightGBM_sklearn_scipy_numpy/source/scipy/optimize/nonlin.py | a43bb62e19e9f80bda88799dbc3c8aa46227e215 | [
"MIT",
"GPL-3.0-or-later",
"Qhull",
"GPL-3.0-only",
"BSD-3-Clause",
"Apache-2.0",
"BSD-3-Clause-Open-MPI",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"GCC-exception-3.1"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 46,761 | py | r"""
Nonlinear solvers
-----------------
.. currentmodule:: scipy.optimize
This is a collection of general-purpose nonlinear multidimensional
solvers. These solvers find *x* for which *F(x) = 0*. Both *x*
and *F* can be multidimensional.
Routines
~~~~~~~~
Large-scale nonlinear solvers:
.. autosummary::
newto... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
9c0c33f8e2d83aeda238b52db8435c639f8e7cfb | 7df5ce52cb6a537611900c920272805904d4381c | /omero_vitessce/__init__.py | e80874d791a1d6185bf7c02e82ae0620ca63ff10 | [] | no_license | will-moore/omero-vitessce | 49160bacff680429200db1ada43c59f4857f4eb2 | d1fa2839a967837435977696c3dcc50454245ae2 | refs/heads/master | 2023-05-31T12:01:10.840304 | 2021-06-23T09:07:51 | 2021-06-23T09:07:51 | 354,973,712 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | default_app_config = 'omero_vitessce.apps.VitessceAppConfig'
| [
"w.moore@dundee.ac.uk"
] | w.moore@dundee.ac.uk |
207c13470ff6192b2f47cd7e96a945ee4df9a370 | 02284a6c1c94af012cbd86dfa81daeaf928b1d41 | /utils/testBackend.py | 2abd652004b147da7c6519b95da0805b746417d5 | [] | no_license | YnkDK/Explanations-for-Skyline-Demo | d77eed9851cc0457d9912704c992c7da211c23d3 | 29f1f6a867fbdfb0ff10f5fa5ceb1e63bb017b70 | refs/heads/master | 2021-01-10T20:38:41.756694 | 2015-06-07T09:20:31 | 2015-06-07T09:20:31 | 34,718,900 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,532 | py |
import urllib
import json
import cookielib
import urllib2
from copy import deepcopy
from time import time
cookies = cookielib.LWPCookieJar()
handlers = [
urllib2.HTTPHandler(),
urllib2.HTTPSHandler(),
urllib2.HTTPCookieProcessor(cookies)
]
opener = urllib2.build_opener(*handlers)
def fetch(uri):
req... | [
"20140000@post.au.dk"
] | 20140000@post.au.dk |
cfe92e44ae6fb672278ce8b9e07d449a2724a880 | 0a0e0388727cf219717dc157416d3d1a9a043cb1 | /MyniaCairo/MyniaCairo/urls.py | 419062b7960196dc7ad8c63b0da79fcd3d8b684b | [] | no_license | beshoyAtefZaki/MyniaCairo | 24a7078a3aac7f53f38fe1723fd7c977d9f4f33a | 49e6140cbd951339419f08caf509e59e45656043 | refs/heads/master | 2020-06-30T00:25:04.212268 | 2019-08-08T11:10:51 | 2019-08-08T11:10:51 | 200,666,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | """MyniaCairo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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-ba... | [
"beshoyatef31@gmail.com"
] | beshoyatef31@gmail.com |
e41afcb88c4db748f89903c9cfaf473999b78bd8 | 5544452ff397d525e6d9ab26644fc8a2288891c8 | /categories/urls.py | cc642b09031bb73f34ec7928a6a95f224c2e7bca | [] | no_license | DoberWho/ejemplo_django | ca3f29b5f8d3ae3cd8e5df2f58a1d51e54abcb3d | 861348b4450650e0e9b5cb80c9317675f0ecfda9 | refs/heads/master | 2023-02-16T17:14:06.956920 | 2021-01-18T12:37:51 | 2021-01-18T12:37:51 | 321,376,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | from django.urls import path
from . import views
# CRUD
urlpatterns = [
path('create', views.create, name='category_create'),
path('read', views.read, name='category_read'),
path('update', views.update, name='category_update'),
path('delete', views.delete, name='category_delete'),
] | [
"jorge.parada@ctbarbanza.com"
] | jorge.parada@ctbarbanza.com |
e92a538ccb84ab322c783ee5bcec0c38e5263b11 | 410029e722668b7b3d5ed0799ae052c4571ab466 | /.venv/bin/django-admin | cb8512b247887b074ffb84f3ec0c397fbf7f537b | [] | no_license | creechcorbin/ghostpost | 8c7cb48a468cb226e7d2c78d80f8dd845d742113 | 898eb28913f94bef48bc09511a67d6491f284a07 | refs/heads/master | 2022-12-04T11:51:42.907582 | 2020-08-21T18:45:02 | 2020-08-21T18:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | #!/Users/corbincreech/Kenzie-Projects/ghostpost/.venv/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())
| [
"creechcorbin@gmail.com"
] | creechcorbin@gmail.com | |
f2240049249612d909711c7e6bfe7b4775897ab9 | 9d962f4943e8b65abc9bb5d0807c3d4d120792c5 | /REST_automation/6_parameters.py | b1cb9159f73f164d3bc7def752bb37d3062fb688 | [] | no_license | Tanigaiarassane/training | 31cd265d531bcc5535d286b9713813dbeeea54ea | bd839b8d5550b83af89df426bee0e00c0300d784 | refs/heads/master | 2022-12-13T21:21:03.085164 | 2021-03-07T07:40:19 | 2021-03-07T07:40:19 | 84,268,189 | 0 | 0 | null | 2022-09-16T17:49:36 | 2017-03-08T02:17:03 | Python | UTF-8 | Python | false | false | 245 | py | # parameters in requesets
# create dictionary of parameters
# send it through get requests
import requests
params = {"name": "python training" }
url = 'https://httpbin.org/get'
response = requests.get(url, params=params)
print(response.text) | [
"tanigai.dj@gmail.com"
] | tanigai.dj@gmail.com |
c974a38a4d362e7f30f641b1b34b8350733b4f18 | ae3173c5e0a9d70c05931589fd801bd57d66f7fb | /cavencity_desktop_client/ui/CaveMaster.py | b653a1e6cb0db1a4349fcbdf571748c4066607c2 | [
"MIT"
] | permissive | cavensio/cavencity | 1611790b23b0508401d293318269bad891e212ba | 5638c8c9461cb6a16de738f8f0050785fb434dca | refs/heads/master | 2023-06-16T15:09:17.598444 | 2021-07-15T09:07:52 | 2021-07-15T09:07:52 | 369,775,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | from PyQt5.QtCore import pyqtSignal
from PyQt5.QtWidgets import QLabel, QFormLayout, QGroupBox, QCheckBox
from mcu.mcu_master_states import MasterActualState
from ui.CaveCounter import CaveCounter
from ui.ui_utils import format_uptime, format_micros
class CaveMaster(QGroupBox):
backlightChanged = pyqtSignal(int)... | [
"xantorohara@gmail.com"
] | xantorohara@gmail.com |
6897eb0203958f9326b76c98c6a95af60bcb0ebe | 25cb36582490ec0fb2740f2be313d2cd2e0dd9f6 | /opcua-server/opcua-server-temperature-to-file.py | 8852f7988fdb90f481d02e56ae890815278936a1 | [] | no_license | wangkk4993/digital-twin-opcua | 2ff3e2c2753c70acd7e639acfded01fb1cceb53f | adc30f46466595a278f87f23a304a3630deca4da | refs/heads/master | 2023-03-16T01:08:18.661466 | 2020-02-18T14:25:48 | 2020-02-18T14:25:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,770 | py | '''
Source code for an OPC UA server able to extract axis variables
from a KUKA KR C4 robot controller and send them to an
OPC UA client. The server also extracts information about the
current temperature of each of the motors controlling the different
KUKA robot axis and writes the data to a .csv file called
... | [
"noreply@github.com"
] | wangkk4993.noreply@github.com |
c147bd91210e1f61875ac93e3e99f380f488ae53 | 1165f293dea77b4e4aa99f771126a49e8dcd1d9b | /Lab4/Source/RandomF.py | 798a2b7bcce472c217bd3eac000417da114ebca1 | [] | no_license | bmian93/part2bigdata | da0c0f47da754b7f73f7c0e952a7404cb7bd37b0 | ea3bdab7feec76df9fa3d78a30a4bcd078278b8a | refs/heads/master | 2021-06-25T13:51:36.623257 | 2020-05-21T00:59:20 | 2020-05-21T00:59:20 | 154,239,859 | 0 | 0 | null | 2020-10-13T10:41:38 | 2018-10-23T01:12:11 | XSLT | UTF-8 | Python | false | false | 2,888 | py | import os
from pyspark.ml import Pipeline
from pyspark.ml.classification import RandomForestClassifier
from pyspark.ml.feature import IndexToString, StringIndexer, VectorIndexer, VectorAssembler
from pyspark.ml.evaluation import MulticlassClassificationEvaluator
from sklearn.metrics import confusion_matrix
from sklear... | [
"40008403+bmian93@users.noreply.github.com"
] | 40008403+bmian93@users.noreply.github.com |
0efbca7005af8dd2286e99fa5838dc1891e851b8 | 1aecbd8d523b054393e0f45296c00f9f79c4a049 | /test/match_date_test.py | dd2c0f1c2f96e24430b155ab5243fd28759474ff | [
"Apache-2.0"
] | permissive | mlpypiter/ner_french_company_report | 54527204b4620640db919b45f07cd9e512705166 | 6b6448e33ff85d55a49a4824dcbd6da58845e61a | refs/heads/master | 2021-01-08T02:03:56.580907 | 2020-02-20T13:16:39 | 2020-02-20T13:16:39 | 241,880,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"noreply@github.com"
] | mlpypiter.noreply@github.com |
d8d03283b367ea326af5def4616fc4d281fbac28 | 91346348594d950791180e17a84f9265e802b4f4 | /loadFile.py | 442247ce11d2c2e13a3e0fe9f301a3dffec44f2c | [] | no_license | oratosa/OpenIE | 8c8d3ba8a9c8980e160ff214cdd12ebc593e11c8 | b66e4da267c108e3a16366962aca02566b1475b6 | refs/heads/master | 2023-02-02T15:58:40.776488 | 2020-08-20T02:27:45 | 2020-08-20T02:27:45 | 274,336,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | # %%
import os,glob
import pandas as pd
from email.parser import Parser
# %%
def getDirList(directory_path:str) -> list:
if os.path.isdir(directory_path) == True:
directory_path = directory_path + '/**'
path_list = glob.glob(directory_path, recursive=True)
dir_list = []
for path in ... | [
"c121034t@icloud.com"
] | c121034t@icloud.com |
a38fb9d3d762f8037fe7cea225fd78e5c778428a | 64221f726229a65292ac7f880277257ecb0fbf45 | /Code/aspect_classifier.py | 5c53539b279ab33bb1dd0bc55ce95145de530838 | [] | no_license | jakkermans/BachelorThesis_2020 | ba7e459804693fb9e83697b7c532a86de3ecd84f | 24c57cec5142054248e4530d15c4197a81256f4a | refs/heads/master | 2022-09-08T03:24:11.884208 | 2020-06-04T13:34:15 | 2020-06-04T13:34:15 | 256,527,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,422 | py | import sys
from __init__ import FileReader
from gensim.models import FastText
import csv
import re
from random import shuffle
from sklearn.svm import SVC, LinearSVC
import nltk.classify
import collections, itertools
from nltk.metrics import precision, recall
def parse_ud(ud_file):
with open(ud_file, 'r', encoding... | [
"Jannick.14.akkermans@gmail.com"
] | Jannick.14.akkermans@gmail.com |
cabbf902280ca93e18033c4841591641d5ba3a04 | 168daf2adb5deedf65f2aa4d4017aaef83a396d6 | /007.py | e3957c3b0d087f85935aac16b3e89e1e64b489df | [] | no_license | gaeunchoi/Python100 | b468ebedb8cacb850e319c00222f191227dedfcb | 3232fb155bd8c488ad97fe3906eaa7b9ca34f17a | refs/heads/master | 2023-03-16T10:20:59.360833 | 2021-02-26T03:18:46 | 2021-02-26T03:18:46 | 339,456,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | import requests, re
from bs4 import BeautifulSoup
url = "https://en.wikipedia.org/wiki/Seoul_Metropolitan_Subway"
resp = requests.get(url)
html_src = resp.text
soup = BeautifulSoup(html_src, 'html.parser')
# 같은 조건을 만족하는 모든 태그를 찾을 때 find_all() 메소드 사용
links = soup.find_all("a") # 모든 <a> 태그를 찾고 변수 link... | [
"gaeun1884@naver.com"
] | gaeun1884@naver.com |
2e11fd81748b68c50439122b06a1ccb5244503c6 | c769ffec2931f3469673282713498dce29be3d95 | /test_part/402_timediff_this_shop.py | d0be7a04c3aae107e89076d00c6c4580d8077969 | [] | no_license | dylanchen0114/alimama | fad2cdb2f5d6283c2d84c43366d611a9e4794923 | e716966872d0eec2f7ac9aff82d6b7fa3ed82b7c | refs/heads/master | 2021-04-26T22:57:47.549126 | 2020-05-12T08:06:23 | 2020-05-12T08:06:23 | 123,903,879 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | # -*- coding: utf-8 -*-
"""
@author: Dylan Chen
""" | [
"dylanchen0114@gmail.com"
] | dylanchen0114@gmail.com |
48f3220f5c3e8bfbe22063d7585f1dbfb4afc867 | ac51f9625ad9810b89d4695d4d46c273723e8c92 | /sequence_tagging/utils/check.py | ade4fc21d473ef64cfcaf3cb34044c101fcc08f6 | [
"Apache-2.0"
] | permissive | heavengate/hapi | 683e994f6d4c3ec90ea2c65a252f6b93fc1997a4 | d9463028f20242770eed6cb3699ac48f65fa7f93 | refs/heads/master | 2021-01-02T05:11:44.008332 | 2020-09-29T03:07:51 | 2020-09-29T03:07:51 | 239,503,187 | 0 | 0 | Apache-2.0 | 2020-02-10T12:10:43 | 2020-02-10T12:10:42 | null | UTF-8 | Python | false | false | 1,808 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"guosheng@baidu.com"
] | guosheng@baidu.com |
5a0c950b42c8d47dc8421286357504f86c4aa3d1 | d76ee9e3f0e2105405b0c743aa997191c18c73d1 | /Desafio018.py | e004bc605d9467b3be49e4920ab1e42acaf4cd8d | [
"MIT"
] | permissive | cesarsouza5995/cursoenvideo | bc73b24b8d590daa84218af7b1c33bf352a79ae5 | 85f48e9682dcca4f3ddb172513f7af2db18677e4 | refs/heads/master | 2022-04-20T23:22:59.217339 | 2020-04-04T17:31:09 | 2020-04-04T17:31:09 | 252,843,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | """
Aula 008
Desafio 18
Faça um programa que leia um ângulo qualquer e mostre na tela o valor do seno, cosseno e tangente desse ângulo.
"""
import math | [
"cesarsouza5995@gmail.com"
] | cesarsouza5995@gmail.com |
f5e58843cb02368ad358651d4056459f7b2f17f0 | 0b32ba2b4537e024f7edb7682446ca948366111c | /pygly/GlycanFactory.py | 8903265d3abe74822b21e0909187ad315f744b4e | [] | no_license | alternativeTime/PyGly | b459c737b2b24918314ad0e7ebc1696a7d4c5314 | 68675e6896bc7bfc625cda422d08b7ec102e74e5 | refs/heads/master | 2022-04-19T16:12:34.421317 | 2020-04-14T23:37:33 | 2020-04-14T23:37:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py |
from ReferenceTable import ReferenceTable
from GlycanFormatter import GlycoCTFormat
from MonoFactory import MonoFactory
from Monosaccharide import Anomer, Linkage
# Should structures specified by their oxford abbreviation use
# undetermined linkages for their antennae? Currently no, but
# perhaps. Right now we just g... | [
"edwardsnj@gmail.com"
] | edwardsnj@gmail.com |
bc6755049a9cedb0e338502a2300a577c05f4abc | b235e75aeeb075ac452c615fd7adab3cca8b20e2 | /pack/__init__.py | 61ab4a7a489516bef0124d9027332d20b005e6eb | [] | no_license | olivierla412/olivierla412-my_package | 11e17ca0f641c2ed4651afd5647a1920bdc0c060 | c391944e80a2c633226b5c16b279231875a0e415 | refs/heads/master | 2023-03-31T17:17:05.335044 | 2021-04-09T04:42:29 | 2021-04-09T04:42:29 | 356,134,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | print('I love. oliver')
print(10 +3) | [
"pvcoding@gmail.com"
] | pvcoding@gmail.com |
c7dc0bd9d930e1c53b5459aa622047035ee67fa5 | 86025e26080211ac5c9491dfc6a3528bdf30da76 | /fynd/urls.py | f7819c722d1ba0e27ae8e5fe7aee4e0e12304d13 | [] | no_license | in-manish/fynd | cd0ac87e7da21ca2a7d17d55bf430867ea7240c4 | 8df85ff50a244e59c49ef84861986e0aa376cc20 | refs/heads/master | 2023-08-14T09:12:59.404419 | 2021-10-01T12:26:03 | 2021-10-01T12:26:03 | 408,107,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | """fynd URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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-based vi... | [
"sonal@fairfest.in"
] | sonal@fairfest.in |
2493b091268b2ed9c9a861893175a3eff8a52d83 | f3d6d3da68e830f62d0b864d7d0ba00efcff81fd | /adivina_random.py | 16376634fcd32b5b28904137a788673df7db261d | [] | no_license | marl8n/python3-projects | bba71d50a4e0de1cab16c8932c4a9200c458fe9f | b7aa0bd59b2e1d707b738ed7bf62ab476903fdb4 | refs/heads/master | 2023-05-29T14:47:32.110408 | 2020-08-27T22:04:31 | 2020-08-27T22:04:31 | 264,543,728 | 0 | 0 | null | 2023-05-01T20:16:36 | 2020-05-16T23:03:11 | Python | UTF-8 | Python | false | false | 649 | py | import random
def game(random_number, number_found):
while not number_found:
number = int(input('Intenta un número: '))
if number == random_number:
print('Felicidades!!! has encontrado el número random')
number_found = True
elif number > random_number:
... | [
"midp515@gmail.com"
] | midp515@gmail.com |
97466d943538b0150d257df42e98689ac270c089 | b344b2b218da3e175b98aa7a2bf668584a89a150 | /timetable/migrations/0010_auto_20170113_0940.py | 9e3b54109cf8cf99ae22609641a858ca14412675 | [] | no_license | floydkots/class-rep-bot | d38e3b73ea2e14e0a07dae2a3bccdad6084422c9 | 19c78e81ca11a2e8f9f4d14cadeb9ccdeccbda9a | refs/heads/master | 2022-12-14T06:06:50.277042 | 2017-04-02T13:26:05 | 2017-04-02T13:26:05 | 86,255,068 | 1 | 0 | null | 2022-12-07T23:39:56 | 2017-03-26T18:28:07 | Python | UTF-8 | Python | false | false | 988 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-13 06:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('timetable', '0009_auto_20170111_1508'),
]
operatio... | [
"floydkotohoyoh@gmail.com"
] | floydkotohoyoh@gmail.com |
61bd89e432e83ad188a61b13d0df9244c76de344 | 3b8da679d694c35238ac773030b05d92e4ba2ca2 | /controllers/sendfile.py | e81a787adf63d3062e07fd61cb95b0b1f6f88620 | [] | no_license | elaugier/aiohttp_samples | 9a3370c64638e63755f9b606ffff1a3f765c760f | 2af552ddbbb1761e4d19c6a22daad50e73517666 | refs/heads/master | 2020-04-02T11:32:10.152977 | 2018-10-23T22:40:21 | 2018-10-23T22:40:21 | 154,394,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py |
from aiohttp import web
import mimetypes
import os
import tempfile
class sendfile():
def __init__(self):
pass
async def get(self, request):
fh = tempfile.NamedTemporaryFile(delete=False)
fh.write(bytes("test;test2" + os.linesep, 'UTF-8'))
fh.close()
filename = os.path.... | [
"ela@egen.guru"
] | ela@egen.guru |
3caf6a3c0c2152578cd3ce56cabc211fa6d8b6a5 | 3e1b46a7b4b71d24c40a53c9ceda310e4114ad91 | /allennlp_models/rc/transformer_qa/transformer_qa_predictor.py | 530ee5b38f8ae8a782dc3bff3c59453e24ecfd27 | [
"Apache-2.0"
] | permissive | codehunk628/allennlp-models | dc1de94ec4607a05ddcb31a2e5a8af7bfaf9686e | 83a14c4f4bef0c3e99f47dd1f380b48cbbba0ba6 | refs/heads/master | 2022-07-06T18:41:42.443241 | 2020-05-08T21:55:27 | 2020-05-08T21:55:27 | 262,493,726 | 1 | 0 | Apache-2.0 | 2020-05-09T05:10:17 | 2020-05-09T05:10:17 | null | UTF-8 | Python | false | false | 3,662 | py | from typing import List, Dict, Any
from allennlp.models import Model
from overrides import overrides
from allennlp.common.util import JsonDict, sanitize
from allennlp.data import Instance, DatasetReader
from allennlp.predictors.predictor import Predictor
@Predictor.register("transformer_qa")
class TransformerQAPred... | [
"dirkg@allenai.org"
] | dirkg@allenai.org |
9e9470830cc81ff5042fc463010d0120b5569a43 | a184c99763220b56fdc61185b804b79d03410b8a | /build/catkin_generated/order_packages.py | 253192913860dec9ff3be18349fbb1a7bd389fb5 | [] | no_license | tc17339/Autoflight | 708a241afb38eceb006e9d920751f7ef4c05045c | ecb9c37a39b452b7a2be9e8c073edf03c571f1d3 | refs/heads/master | 2020-03-28T09:50:54.814927 | 2018-09-09T20:51:40 | 2018-09-09T20:51:40 | 148,064,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/hz17842/tracking_ws/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/hz17842/tracking_ws/devel;/opt/ros/kinetic".split(';') if "... | [
"tc17339@essex.ac.uk"
] | tc17339@essex.ac.uk |
c48ba6d923b30dbf0f3ee246c11dc219750bcb1a | e62bd5d52217799432061b144a88b6cc24494b1c | /dbsqlite.py | 2a3660bfb7a997825f421780de96a81231b9c647 | [] | no_license | NurdinovRost/RussianLanguageBot | 8d0d391016bb48e4fbe22f9ca3cd32f151f2c267 | 6692683a12e904059040275b88f172f93fe19c0b | refs/heads/master | 2020-03-28T00:18:38.065908 | 2018-09-04T21:16:41 | 2018-09-04T21:16:41 | 147,375,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class Words(Base):
__tablename__ = 'words'
id = Column(Integer, primary_key=True)
word = Column(St... | [
"nurdinov.rost@gmail.com"
] | nurdinov.rost@gmail.com |
f1833a5283b95fdf289b1c1117fb0e652ec8a137 | 77a8581bb042b1164a2aee2c581ebaeba1cd571e | /manager/migrations/0001_initial.py | ea059195deb4dda13ebe62bb251ec602d5ab19c1 | [
"Apache-2.0"
] | permissive | EruDev/eru_manager | fb6f00d49c40113cf0a0871bc1aa0f771c23cb08 | 9bc7fb3af361c7de734bfa6c4e1562dd7f978500 | refs/heads/master | 2022-12-18T03:14:45.830681 | 2021-06-11T05:42:16 | 2021-06-11T05:42:16 | 139,976,816 | 18 | 5 | Apache-2.0 | 2022-12-08T02:15:21 | 2018-07-06T11:34:19 | SCSS | UTF-8 | Python | false | false | 896 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-06-10 23:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UseInf... | [
"1027926875@qq.com"
] | 1027926875@qq.com |
30269e8bdcf19d39b486c4afe4f15b6f0c906baf | e0e92a1708923ba87867e1a07dfba5a7abcf25f9 | /pySetup/parameterMakers/svcShrinking.py | 70d31ca03d52777ee1463a33c69b2d6a2c0cd5d3 | [] | no_license | foolszany/machineJS | 2e5f10006d0ab007d5a79cbb1f229738ed16d2bc | c9cce7a52484026af4d3402670f90accdf1df55b | refs/heads/master | 2020-12-30T18:38:54.863557 | 2016-03-30T19:26:45 | 2016-03-30T19:26:45 | 62,223,853 | 1 | 0 | null | 2016-06-29T12:23:44 | 2016-06-29T12:23:43 | null | UTF-8 | Python | false | false | 824 | py | import math
def makeParams(X, y, globalArgs, dev, problemType):
# at some point in the future when we have figured out whether we have a probability or a classifiaction problem, we can set 'probability' equal to True only when we have a probability problem. that property just enables us to invoke predict_proba, b... | [
"climbsbytes@gmail.com"
] | climbsbytes@gmail.com |
25a390d07171199dc372df67e28d8dce26a7af5b | 6529d31be1b5432eb630da329cb161d4e7e51e5f | /autoSinnetCloud/cases/test_dashboard.py | 54aa190ece64000c224280770e5858bc9e2b6820 | [] | no_license | yuyong1992/autoTest | e6e2e53831caf862dd27679c6020f1be7fc051d8 | 52fe1ceeb0129eb5ca961dd3b4536c20b56c519b | refs/heads/master | 2020-04-30T22:32:59.668062 | 2019-03-22T10:50:27 | 2019-03-22T10:50:27 | 177,122,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # coding:utf-8
import unittest
from autoSinnetCloud.pages.dashboard_page import DashBoardPage
from autoSinnetCloud.framework.browser_engine import BrowserEngine
class LinkClick(unittest.TestCase):
@classmethod
def setUpClass(cls):
browser = BrowserEngine()
| [
"yong.yu@sinnet.cn"
] | yong.yu@sinnet.cn |
13944d53ee191abd2a219c3d8aa43eb13cb2ed97 | 556eca621e35659f24d60a0a0d859dd2b5c37317 | /Programming Project 1/bloxorxV01(scratch).py | 8568fed3bbb188ac4b24bc73b5f34efc7c095607 | [] | no_license | nick-jhlee/18Spring_CS300_A | 8372e4579e4494afb7a104ce143f6b6af40bafa0 | a7fd01dff12cd8379ef534a119dd170758541c8e | refs/heads/master | 2020-11-25T10:31:54.218909 | 2019-12-17T13:21:26 | 2019-12-17T13:21:26 | 228,620,695 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | f = open("testlevel08.txt","w+")
for i in range(100):
for j in range(1000):
f.write()
f.close() | [
"scimath@kaist.ac.kr"
] | scimath@kaist.ac.kr |
eb8e6e115f2490e2dbf8a872be81ed5f9929010a | f097c3488bcfd1e5d0a566f41cbac8980795aa0f | /tests/academics/models/logistics/test_instructor.py | 6aa08e826353df34aba76235d9be2a7a1f5e23d5 | [
"MIT"
] | permissive | compserv/hknweb | fdce5d5a8e5402ce64f6d93adcea9b43fc920874 | 76f91d2c118bd017d3b714b805d08b5c49c5693e | refs/heads/master | 2023-04-29T12:58:00.253960 | 2023-02-16T01:47:17 | 2023-02-16T01:47:17 | 110,480,397 | 21 | 113 | MIT | 2023-09-03T01:46:27 | 2017-11-13T00:10:26 | Python | UTF-8 | Python | false | false | 330 | py | from django.test import TestCase
from tests.academics.utils import ModelFactory
class InstructorModelTests(TestCase):
def setUp(self):
instructor_id = "my instructor id"
instructor = ModelFactory.create_instructor(instructor_id)
self.instructor = instructor
def test_basic(self):
... | [
"noreply@github.com"
] | compserv.noreply@github.com |
fc29e14863e0332a8f2786de90ca5beb2c370397 | 0c03f2f38217885de16434218b4a6ff7158a9a76 | /app.py | 78a6745697470739fcbbd3d672cebae6446474b5 | [] | no_license | jeffy90gz/pythonandsqlite | 5b425ea536ddb13c58352597498e7ede463802d1 | f01e7097d269271bb3d407c76c3d8003adc1e8fd | refs/heads/master | 2020-04-09T14:27:48.581725 | 2018-12-04T17:59:20 | 2018-12-04T17:59:20 | 160,398,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | from flask import Flask, render_template, request, jsonify
import sqlite3
app = Flask(__name__)
@app.route('/')
def home():
value = 12
return second_method(value)
def second_method(arg):
return render_template('home.html', value = arg)
@app.route('/invoice',methods=['POST'])
def invoice():
conn = sqlite... | [
"youngdope.jk@gmail.com"
] | youngdope.jk@gmail.com |
5a06b5ee131a0a2e272bafe41915568c59108183 | 1fb96adfe09538bf26b5645526c14b72bab0bf76 | /LJSpider/items.py | b37f88c5d39f477557482d73d6a0d1c452b3f9ca | [] | no_license | ZedZhou/LJSpider | bc48c608d0bb0e1fb76ee93ae4d4f99c3f006f23 | 49abbe83dedec1c91b6446e6841b9127b17400cf | refs/heads/master | 2021-01-22T19:21:47.427034 | 2017-03-16T12:07:22 | 2017-03-16T12:07:22 | 85,191,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
from scrapy import Field
class LjspiderItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
class L... | [
"15378301867@163.com"
] | 15378301867@163.com |
b96f9396c26d6c99d8a20b9366d3bccc8f4187df | a034d4ba39789e4a351112c46dd04a38180cd06c | /appengine/findit/infra_api_clients/swarming/swarming_task_request.py | 278735e0edeb5230cee5099b1d451c223d7ae774 | [
"BSD-3-Clause"
] | permissive | asdfghjjklllllaaa/infra | 050ad249ab44f264b4e2080aa9537ce74aafb022 | 8f63af54e46194cd29291813f2790ff6e986804d | refs/heads/master | 2023-01-10T21:55:44.811835 | 2019-07-01T14:03:32 | 2019-07-01T14:03:32 | 194,691,941 | 1 | 0 | BSD-3-Clause | 2023-01-07T07:12:37 | 2019-07-01T14:45:29 | Python | UTF-8 | Python | false | false | 5,119 | py | # Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from libs.list_of_basestring import ListOfBasestring
from libs.structured_object import StructuredObject
class SwarmingTaskInputsRef(StructuredObject):
"... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
dbd4a1627bdc22b4ad9fb37f073ef17e9c3f0486 | 98006c28078b4940f36aad230e93fafec3baed27 | /hw2/lstm_graph.py | 044d7ed62bcebc5705a89d906eabd1f9f4a1c560 | [] | no_license | harperjiang/TTIC31210 | 400987621d5e7942e19861fd52e4e431054b73fb | 1d6810b62fbc026438560ea237ff82e124aa26d2 | refs/heads/master | 2021-01-19T08:47:19.929129 | 2017-06-08T07:50:26 | 2017-06-08T07:50:26 | 87,676,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,782 | py | import numpy as np
from lm_loss import LogLoss, HingeLoss, HingeLossOutput
from lstm_node import Attention
from ndnn.graph import Graph
from ndnn.init import Xavier, Zero
from ndnn.node import Concat, Sigmoid, Add, Dot, Tanh, Mul, Collect, Embed, SoftMax, MDEmbed, Average, ArgMax
class LSTMGraph(Graph):
def __in... | [
"harperjiang@msn.com"
] | harperjiang@msn.com |
fbad108303d862af70a7766ede8422eeb5e471dd | 873853960f6c1c60c7b77e77175687035ba9bd71 | /athsurveyapp/blueprints/survey/__init__.py | a980b8fbdb6eefe11238b47715921315c17e0f5a | [] | no_license | tordsyabe/ath-survey | a8a5abab348fd0c206372689e8a8cf59985bb577 | 72f814100a23180674339a7063d8cafe7850d11e | refs/heads/main | 2023-07-14T10:53:03.282099 | 2021-08-21T10:49:15 | 2021-08-21T10:49:15 | 385,645,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from athsurveyapp.blueprints.survey.views import survey_page
from athsurveyapp.blueprints.survey.resource import SurveyResource | [
"46318298+tordsyabe@users.noreply.github.com"
] | 46318298+tordsyabe@users.noreply.github.com |
39239620ee0dc8061be8fca1ad250327bd6a1b11 | 1edc7db0b0bcb7dbc763d65bf39f97fcdd2d639e | /docusign_esign/models/bcc_email_archive_history_list.py | e9d3b51760a0ad752bda6f40f2da1b6ecd8b2eec | [
"MIT"
] | permissive | harshaboggaram/docusign-esign-python-client | f59031c3e4ac30edb1306b587e555f3d1f683b2f | 45b896956369e913dce13a2cb39ce1487ddb3a8d | refs/heads/master | 2023-08-25T14:23:33.420231 | 2021-11-04T20:18:47 | 2021-11-04T20:18:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,955 | py | # coding: utf-8
"""
DocuSign REST API
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501
OpenAPI spec version: v2.1
Contact: devcenter@docusign.com
Generated by: https://github.com/swagger-api/swagger-codegen.gi... | [
"noreply@github.com"
] | harshaboggaram.noreply@github.com |
c7d5b5f11fa82336e84e969ac3395ffe1c5bfe22 | 19acab66e4986a0b690fa643796d7d6736fe8b2c | /xPOO/filtering/filtsig.py | c77ab976dbaaf8227d62c0d85855d1926cfeeece | [] | no_license | gitter-badger/brainpipe | 184e11b12a0c5ad7ed6c22957a56b9f70b2d7487 | b381894190e6887d7814ca88f0dbb3e2448c759f | refs/heads/master | 2020-12-24T10:03:51.397655 | 2016-01-26T22:45:24 | 2016-01-26T22:45:24 | 50,481,078 | 0 | 0 | null | 2016-01-27T04:17:45 | 2016-01-27T04:17:45 | null | UTF-8 | Python | false | false | 8,563 | py | """
Design a filter, filt a signal, extract the phase, amplitude or power
"""
import numpy as n
from scipy.signal import filtfilt, butter, bessel, hilbert, hilbert2, detrend
from .filtsup import fir_order, fir1, morlet
__all__ = [
'filtDesign', 'filtvec',
]
__author__ = 'Etienne Combrisson'
clas... | [
"e.combrisson@gmail.com"
] | e.combrisson@gmail.com |
10c4648af37980710096ea4f0bbffe87e55f0100 | 93bb7543826eb2271d6d0f82d3fbfd8abe591628 | /joints/pyrosim/Demo_19_Torque.py | 243474f3b42f8ccbdfb50ee835f34c9cd66410e3 | [
"MIT"
] | permissive | vedipen/ludobots | d74abbb20f1ef160f3972773632f1900332f40ec | e0a026eaf3955d336e13975a25a5066faf02684d | refs/heads/master | 2021-01-02T23:01:20.917176 | 2017-11-02T10:13:56 | 2017-11-02T10:13:56 | 99,442,658 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | from pyrosim import PYROSIM
import math
def myFunc(x):
return math.sin(x*.3333)
ARM_LENGTH = 0.75
ARM_RADIUS = ARM_LENGTH / 10.0
for torque in [0.1, 0.5, 1.0]:
for speed in [0.1, 1.0, 10.0]:
sim = PYROSIM(playPaused = False , evalTime = 500, dt=.05, debug=False, hpr=[121,5,0])
sim.Send_Cylinder(objectID = 0 ... | [
"vedipen@gmail.com"
] | vedipen@gmail.com |
8951ce4de0e9b13a93aa51836d67e0b24957ec47 | a870d756cef590fd9b2b82782744fa552923835f | /test_toyRobot.py | 544269a9e49c8dce26d169f2b0dcb427a6eee450 | [] | no_license | Corw/toy_robot | 8ecaaccb7c616659f902895e95ba91649370807c | 190591868e10241d6a6d82a8e1af84e6a045e12a | refs/heads/master | 2021-01-19T21:25:14.196431 | 2017-04-18T18:36:54 | 2017-04-18T18:36:54 | 88,657,672 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,405 | py | from unittest import TestCase
from toy_robot import ToyRobot
from toy_robot import Direction
class TestToyRobot(TestCase):
def test__is_placed(self):
toyRobot = ToyRobot()
self.assertFalse(toyRobot._is_placed)
toyRobot.place(0, 0, Direction.NORTH)
self.assertTrue(toyRobot._is_placed)
def test__is_position... | [
"marino.frana@emovis.hr"
] | marino.frana@emovis.hr |
d5c0edca96fde91dde1ecd4f022814de398cb2b6 | 7dd75ac7f803e72f5029bed38c5956431a1d1523 | /Code/cloudmonitor/users/admin.py | 566c22de642a53da782da3da93d73ad0ad10ae6a | [] | no_license | viswapython1/Generating-Cloud-Monitors | 8f5bbbd5acc72fc45fbf803ec83c8859c24838e2 | 729d7e007a03f761e54400aa29396eebe4de9713 | refs/heads/master | 2023-06-02T05:35:25.788353 | 2021-06-16T05:59:34 | 2021-06-16T05:59:34 | 377,385,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from django.contrib import admin
from users.models import Contact,Account,ContactSource,ContactStatus,ActivityStatus,Activity,CloudUsersModel,UserFileModel
# Register your models here.
admin.site.register(Contact)
admin.site.register(Account)
admin.site.register(ContactSource)
admin.site.register(ContactStatus)
admi... | [
"viswapython1@gmail.com"
] | viswapython1@gmail.com |
aa30b3525202fec4504c9f4c4b36b98ce305b8ea | 5e4f1d7534ea9f9e66f82333b51962945ea86daf | /main.py | f861655dc9cbc53d96d8966441c40f90d393b262 | [] | no_license | AaronHannaway/printingdate-python | 2d5ad5d20fe6b8b3792f33ea8b28955e70256697 | abc062c39f42160d1d73cc01e5373eb4e6ffa32a | refs/heads/main | 2023-07-16T22:19:35.851191 | 2021-08-26T19:28:31 | 2021-08-26T19:28:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | import datetime
x = datetime.datetime.now()
print(x.strftime(%Y - %M- &D))
| [
"noreply@github.com"
] | AaronHannaway.noreply@github.com |
39d800e56c5d45069919499cce94f111c88d636d | 22eea10f9b62ad742be7a0ee9109a913e0ddb1bb | /StInt/EPI/Arrays/Merged-Intervals/merge_detect.py | 85969ec6b2e6d9edc6af203e1682077cb92d5dc9 | [] | no_license | mihirkelkar/languageprojects | f991610476fd64aabfec5a8cc60c263908085e17 | 4439fcf843a964fccf14a1c4dba6d054ca35d048 | refs/heads/master | 2021-01-01T20:16:22.322304 | 2020-12-20T19:03:40 | 2020-12-20T19:03:40 | 20,080,717 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | class Event(object):
def __init__(self, start, end):
self.start = start
self.end = end
def print_times(self):
print self.start,
print self.end
def find_merge_intervals(list_of_intervals):
sorted_list = sorted(list_of_intervals, key = lambda x : x.start)
for ii in range(1, len(sorted_list)):
... | [
"kelkarmhr@gmail.com"
] | kelkarmhr@gmail.com |
ad346a7474716451000c9a1b097d3ada0ac109a9 | d13a069fda8ce2e0a202eb43266af7558355cdc6 | /ROJASCUBAS/app24.py | 24c86c1d8f04cbe20399b5b3f06f7386c6fc1e6f | [] | no_license | CARLOSC10/T09_LIZA.DAMIAN_ROJAS.CUBAS | 879aba53c1db9ed2bfc4c37da3bf1cbd9df14d97 | 357ec4a3c266fa4ddf8d13b1ecb2af0feb604755 | refs/heads/master | 2020-11-27T04:52:52.004005 | 2019-12-20T18:10:12 | 2019-12-20T18:10:12 | 229,309,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | import os
import libreria
cliente=os.sys.argv[1]
total_pagar=float(os.sys.argv[2])
consumo_energia=float(os.sys.argv[3])
libreria.MOSTRAR_RECIBO(cliente,total_pagar,consumo_energia)
| [
"clizad@unprg.edu.pe"
] | clizad@unprg.edu.pe |
f1b87c3c3ede937152c85642a188029018b7f37e | 8575ccf9e7e6b2257ec7aee1539c91afa90d65a5 | /nlp/_02_textcluster/utils.py | 620fa8b64c54d929715f4fe7148b0dfb2c4d06a3 | [] | no_license | oaifaye/pyfirst | 86b8765751175f0be0fe3f95850ff018eacf51d3 | e8661b5adf53afd47fa5cb6f01cd76535d8fc8b9 | refs/heads/master | 2021-12-12T00:33:39.523597 | 2021-08-13T08:32:10 | 2021-08-13T08:32:10 | 160,138,715 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | # -*- coding: utf-8 -*-
import pickle
import re
def readbunchobj(path):
file_obj = open(path,'rb')
bunch = pickle.load(file_obj)
file_obj.close()
return bunch
def writebunchobj(path,bunchobj):
file_obj = open(path,'wb')
pickle.dump(bunchobj,file_obj)
file_obj.close()
de... | [
"slf_work@hotmail.com"
] | slf_work@hotmail.com |
8714ecb900009c32a6f01c86d128743c3e999b41 | ab95173a9fb9c28d24bc27d9f54edc58439f6024 | /albums/admin.py | f8bc7e0b7223e0ec2a9a69bf41f7c270d409cd53 | [] | no_license | alexander490/sfoti.py | 743d1dae8a8e90fb1a937235a7036c3ca4a1f0dc | d2516058e458bdc98c65652e00aee4c6c6110942 | refs/heads/master | 2021-01-17T02:38:41.039796 | 2014-12-07T01:15:58 | 2014-12-07T01:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.contrib import admin
from albums.models import Album
class AlbumAdmin(admin.ModelAdmin):
list_display = ('name', 'get_cover', 'artist', )
admin.site.register(Album, AlbumAdmin) | [
"djmiguelarango@gmail.com"
] | djmiguelarango@gmail.com |
b98b5daca8f6e76fde1e08f8c2ad2abf8451feeb | d7390fea6c7f712ee32be6d3478835d965d795e0 | /py26_24day/py26_api_test/testcases/test_add.py | fe1e0c2cdd31c1995b8b91963f0cff637e38ac2d | [] | no_license | luwenchun/Automated_Test | 2f424655d80127e3ed98657869021a775beca868 | 79b9937cfc0841b0a80d4fd45d8ff467654b5b55 | refs/heads/master | 2021-02-10T15:23:08.446463 | 2020-03-26T10:39:38 | 2020-03-26T10:39:38 | 244,393,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,037 | py | """
============================
Author:柠檬班-木森
Time:2020/2/28 21:21
E-mail:3247119728@qq.com
Company:湖南零檬信息技术有限公司
============================
"""
import os
import unittest
import jsonpath
from py26_24day.py26_api_test.common.readexcel import ReadExcel
from py26_24day.py26_api_test.common.handlepath impor... | [
"luwenchun@users.noreply.github.com"
] | luwenchun@users.noreply.github.com |
a6e81b4125a4abae56d5b08726d4e64eeb820422 | e822db39bc26d6a85549955d15a22a7fcad637db | /manage.py | 59f3fe86c331f2f24f42eeaef5e93d60a628ddfa | [] | no_license | jaamlid/Steelmaster | 0e9c07bcc0a2f0a64377a993c149e6403d01fab7 | b5073b1f8e8e17ca9820b26e36758b5495de54ab | refs/heads/master | 2020-12-30T15:21:17.399060 | 2017-05-12T20:23:32 | 2017-05-12T20:23:32 | 91,125,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Steelmaster.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that ... | [
"jaamlidgithub@gmail.com"
] | jaamlidgithub@gmail.com |
37e28d11f1034c82a9f1482575f4e59e16a8dc35 | b68c855198c944a5dcc4b543f7609058f1d8db53 | /logparser/Drain.py | dd79f22e5ee1cba2f73baf42f30f6022c312340a | [] | no_license | forallx94/logbert | c4dab9d04386c5a716f946410ba10794d0cba379 | 77a5c37676731ade41495daf58ae038db37d6c63 | refs/heads/main | 2023-08-22T16:24:48.730343 | 2021-09-27T07:39:05 | 2021-09-27T07:39:05 | 407,034,672 | 0 | 0 | null | 2021-09-16T05:37:19 | 2021-09-16T05:37:19 | null | UTF-8 | Python | false | false | 12,717 | py | """
Description : This file implements the Drain algorithm for log parsing
Author : LogPAI team
License : MIT
"""
import re
import os
import numpy as np
import pandas as pd
import hashlib
from datetime import datetime
class Logcluster:
def __init__(self, logTemplate='', logIDL=None):
... | [
"ghaixan@163.com"
] | ghaixan@163.com |
e51e5b3ae82fc2479ec96ebc8b9d4e43855b4b4f | fed6c6bdb6276d195bc565e527c3f19369d22b74 | /test/separation_angle_test/cal_sep_ang_astropy.py | c0b80cc508f5c2ebba633e20ab73f9197f6aba4f | [] | no_license | hekunlie/astrophy-research | edbe12d8dde83e0896e982f08b463fdcd3279bab | 7b2b7ada7e7421585e8993192f6111282c9cbb38 | refs/heads/master | 2021-11-15T05:08:51.271669 | 2021-11-13T08:53:33 | 2021-11-13T08:53:33 | 85,927,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | from astropy.coordinates import SkyCoord
from astropy import units
from sys import argv
ra1, dec1 = float(argv[1]), float(argv[2])
ra2, dec2 = float(argv[3]), float(argv[4])
c1 = SkyCoord(ra=ra1*units.deg, dec=dec1*units.deg,frame="fk5")
c2 = SkyCoord(ra=ra2*units.deg, dec=dec2*units.deg,frame="fk5")
sep = c1.separat... | [
"hekun_lee@sjtu.edu.cn"
] | hekun_lee@sjtu.edu.cn |
0e5702ddf50c99377a738187f828539c6537451a | dfaf0169a799d81535c952a5c284d2ff6b8f2265 | /asgn_1/asgn_1_8.py | bd61dc0116ae78b066e394a8aa166f9998c72e61 | [] | no_license | RahulBantode/Python_Task_-OOPS- | 9f10cff655691518ed7147abe6503dee6013ff96 | ea7ad00e109349b999ec97588c59fb3b03a69bff | refs/heads/main | 2023-05-25T07:29:57.714579 | 2021-06-14T06:42:49 | 2021-06-14T06:42:49 | 346,242,290 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | ''' statement : write a program which accept number from user and print that number of * on screen'''
def PrintStar(value):
i=1
while i <= value:
print("*\t",end=" ")
i = i+1
def main():
no = int(input("How many times you want print \"*\" on screen : "))
PrintStar(no)
if __name__ == '__main__':... | [
"noreply@github.com"
] | RahulBantode.noreply@github.com |
b954303bce1985b09149057041443b4e8972d145 | 67de233167f060b15f08a2a05425332ef8b7246e | /app/hmi_env/bin/flask | 8524af0fa3e8808ae8395e8b5e7312fd9df5bb90 | [] | no_license | BorkTrain/hmi_www | 9c4f4510a137e147b4f87b7d6e881c6c6a800cbb | d863d5d557571bb50d0e465fb09e33ac1299587b | refs/heads/master | 2020-04-22T16:52:01.043783 | 2019-05-10T14:43:35 | 2019-05-10T14:43:35 | 170,522,416 | 0 | 0 | null | 2019-05-10T14:43:36 | 2019-02-13T14:33:54 | Python | UTF-8 | Python | false | false | 236 | #!/home/hmi/hmi_www/app/hmi_env/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"bourque125@yahoo.com"
] | bourque125@yahoo.com | |
063a861d75b4030de7fe4499a4f7affec23dc26b | 919798f4e6677e53014908a38a36f53dbedc4bfa | /ex16.py | 722fc9c74d75a69c0bb899a281a6750ad9e7a6fc | [] | no_license | Lakshmipublo28/guvi | 23779403bb35ec0e49c838fa7a38737b1879f12e | 0015cea3885bfa1349eee085ed2861c29073af1b | refs/heads/master | 2020-06-30T09:34:55.151955 | 2019-08-06T07:26:04 | 2019-08-06T07:26:04 | 200,792,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | n=eval(input())
if (n%2)==0:
print('Even')
elif (n%2)!=0:
print('Odd')
else:
print('Invalid')
| [
"noreply@github.com"
] | Lakshmipublo28.noreply@github.com |
928e48931d3d44615cd50aef4704f05429db2866 | 7593e4c209db483898a352f10014b2bac61e6196 | /gold_standard_src/gold_standard/parsers/gold.py | 5e1ea7106fbed983870767f1de8b1dd41e2e7d4f | [] | no_license | cmbi/gold_standard | 059045ad1cc613ee149bcd144753b8ca4530fe8c | 1556223094923b7e0572772a251524a260ddf63b | refs/heads/master | 2021-06-17T22:28:08.221968 | 2019-10-16T12:09:44 | 2019-10-16T12:09:44 | 116,148,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,244 | py | import json
import logging
import os
from copy import deepcopy
from .error_types import ParserError
from .var_file import parse_var_file
_log = logging.getLogger(__name__)
fs = frozenset
def parse_gold_json(gold_path, corvar_path):
_log.info("Getting gold standard alignments")
if not os.path.exists(gold_pat... | [
"joasialange@gmail.com"
] | joasialange@gmail.com |
bb60b7ac16a960f0847c3c42768b8317f005d787 | 0dbb79177542cab015f1e1f115328b26d1f120ac | /learnUsers/learnUsers/settings.py | 3da0054c929fc26982a21db42e90911df8d2cd0f | [] | no_license | Ripudaman201/django_deployment | c8fbb884e1174fc30fcf1d441f34da043e4fc8fe | 6ec2d57c0e0dd055952a55be1d93a5e781760764 | refs/heads/master | 2022-11-10T10:01:21.930604 | 2020-06-09T09:55:32 | 2020-06-09T09:55:32 | 270,960,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,707 | py | """
Django settings for learnUsers project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os... | [
"ripudaman201@gmail.com"
] | ripudaman201@gmail.com |
3d058190a3b777ae763a5449f9e672a762accbc5 | 5a01774b1815a3d9a5b02b26ca4d6ba9ecf41662 | /Module 2/Chapter04/django-myproject-04/likes/views.py | 8ee413f495c99889e0eb88da77a52dc41aa3f015 | [
"MIT"
] | permissive | PacktPublishing/Django-Web-Development-with-Python | bf08075ff0a85df41980cb5e272877e01177fd07 | 9f619f56553b5f0bca9b5ee2ae32953e142df1b2 | refs/heads/master | 2023-04-27T22:36:07.610076 | 2023-01-30T08:35:11 | 2023-01-30T08:35:11 | 66,646,080 | 39 | 41 | MIT | 2023-04-17T10:45:45 | 2016-08-26T12:30:45 | Python | UTF-8 | Python | false | false | 1,718 | py | # -*- coding: UTF-8 -*-
from __future__ import unicode_literals
import json
from django.http import HttpResponse
from django.views.decorators.cache import never_cache
from django.contrib.contenttypes.models import ContentType
from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from ... | [
"bhavinsavalia@packtpub.com"
] | bhavinsavalia@packtpub.com |
845c2a610253e70f56d7103e044d6c85d8959cdd | c1232dd8199bedb50f7abe647c27179a18a8caed | /doors/migrations/0011_auto_20180408_1314.py | 01aef884c57c074f845d656dd7442e421164fe74 | [] | no_license | rigo-ptz/doors_back | 9a71a25070f663ffd55db6f9a132f18c7656d016 | 5ff29fa07e5afa52d64ee41deb20fccafd0fbf28 | refs/heads/master | 2021-09-11T14:22:58.584878 | 2018-04-08T21:41:14 | 2018-04-08T21:41:14 | 124,697,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # Generated by Django 2.0.2 on 2018-04-08 10:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('doors', '0010_keycell_user_who_get'),
]
operations = [
migrations.AlterFie... | [
"yamushev.igro@yandex.ru"
] | yamushev.igro@yandex.ru |
224bd392e7c0db4da823ad158d32a8aec204fd14 | 1786457a40d65be479d470995277bd1227bff997 | /home/admin.py | 58fdfb70bb22153f8ebfbff25e30415ee0e5ec56 | [] | no_license | rujjal/Ecommerce-project | 49562ccb70ccf402fc3d792c4e90527e01721f31 | b7a87f0185a6fa9d90b41cd1ab45c19335b1803b | refs/heads/main | 2023-07-25T10:21:01.689284 | 2023-07-11T23:47:01 | 2023-07-11T23:47:01 | 381,000,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Category)
admin.site.register(SubCategory)
admin.site.register(Item)
admin.site.register(Ad)
admin.site.register(Slider)
admin.site.register(Brand)
admin.site.register(Review)
| [
"rujjalsada25@gmail.com"
] | rujjalsada25@gmail.com |
2eae500407e3adb841b7632a9c2621f2a82ec51c | 831431d77d3078d60b3dbab4bd65996de27c03dc | /OrderManagement/migrations/0013_delete_cart.py | 760e0c8233dab82f3a4817f94777271516807401 | [] | no_license | anika07svg/E-COOKBOOK | 1406ced774b9224188767e1a9a6e544a813b5b28 | 7e13608235b396b89a8ff51fd5bee2703b5ce7dd | refs/heads/master | 2023-03-31T02:47:23.241107 | 2021-04-04T17:20:04 | 2021-04-04T17:20:04 | 349,135,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | # Generated by Django 2.2 on 2020-10-07 09:41
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('OrderManagement', '0012_auto_20201007_1354'),
]
operations = [
migrations.DeleteModel(
name='Cart',
),
]
| [
"18101007@uap-bd.edu"
] | 18101007@uap-bd.edu |
a1aebb9c2e4f8b07163059d3bb1a07f4a5904c9a | 7c23e5250f1545bb945f801356d3bb165c2730a5 | /CNN_Text.py | 54a433c9d9847297f654b72d4fa2c28b7eec59f8 | [] | no_license | Suchismitha-Vedala/Opinion-Spam-Detection | 87f0f63dc6472eeb87f3a00f2a02cd5e64ef7721 | afb233270aad793182e087bacfeb6abfaedf7666 | refs/heads/master | 2021-07-20T23:23:59.313405 | 2017-10-26T06:21:40 | 2017-10-26T06:21:40 | 108,367,643 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | import tensorflow as tf
import numpy as np
class TextCNN(object):
def __init__(
self, sequence_length, num_classes, vocab_size,
embedding_size, filter_sizes, num_filters, l2_reg_lambda=0.0):
self.input_x = tf.placeholder(tf.int32, [None, sequence_length], name="input_x")
self.input... | [
"noreply@github.com"
] | Suchismitha-Vedala.noreply@github.com |
e14d552980ea89187a188a613d5d3fb1916e8662 | cb0d5f85c6fe1b8f4c17fd3afb3c84fe5db44e1d | /python2/chapter08/old/03svmRbf.py | f5c8a0dd5383eb37efc9e58d8d710bdcfc1079bc | [] | no_license | yujmo/machinelearn | 7f7de7ae0fb0e3fb2c1e6e7fb9693a31aae65b38 | ff7ccabe86683c88662cc7d29b1979d91d141450 | refs/heads/master | 2021-09-12T21:41:44.599462 | 2018-04-21T04:21:49 | 2018-04-21T04:21:49 | 106,220,662 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | # -*- coding: utf-8 -*-
# Filename : 03svmRbf.py
from numpy import *
import numpy as np
import operator
import svmMLiA2
import matplotlib.pyplot as plt
k1=1.3
# 加载训练集
dataArr... | [
"yujmo94@gmail.com"
] | yujmo94@gmail.com |
e780e3fe0b86ead07cf32e311d6dd90382e293a1 | d42596549fe18a73b4c6036ad2ca734c3c8d2db2 | /1249_Minimum_Remove_to_Make_Valid_Parentheses.py | 50a9fefeb6d89453e482bd16a004b797e4b133d3 | [] | no_license | peterping666/LC_Python | a444b7f2cbc06e41a8b775b2111e1a3eaf261174 | 8633a0119452bc03d59b368579e368ccd0c41ea7 | refs/heads/main | 2023-07-04T22:08:40.845242 | 2021-08-17T19:52:47 | 2021-08-17T19:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | class Solution:
def minRemoveToMakeValid(self, s: str) -> str:
s = list(s)
stack = []
for i, c in enumerate(s):
if c == '(':
stack.append(i)
elif c == ')':
if stack:
stack.pop()
else:
... | [
"peter.ping666@gmail.com"
] | peter.ping666@gmail.com |
5abc583ad155392ccc6172c7da5bb97637fe6b74 | 256732b4fbee064606eeb325f94c6d791a9242f1 | /analysis/db_counter.py | e57aa5b32bd3b31df7caae3be80ae04892a10d2f | [] | no_license | CJT-W205/Syria-Twitter-Data | 0df3982c329289978955ac6c982b1bd780ce6f10 | c7007056547344d1dedd42c701be77db4cc421f1 | refs/heads/master | 2021-01-20T13:47:52.002283 | 2015-05-05T20:56:14 | 2015-05-05T20:56:14 | 30,502,638 | 0 | 0 | null | 2015-04-30T16:00:17 | 2015-02-08T19:27:19 | Python | UTF-8 | Python | false | false | 207 | py | import pymongo
stream = pymongo.MongoClient().stream
network = pymongo.MongoClient().network
print '%s tweets stored' % stream.tweets.count()
print '%s user profiles stored' % network.user_profiles.count() | [
"janak.mayer@gmail.com"
] | janak.mayer@gmail.com |
6d53af45c900b528d3d52855a977da0f57432d5a | eee87bac78475dbb5b88f91bc1bc68ed63f28e5f | /virtual/bin/django-admin.py | 512950e949faf86b67ae5f3628fd36916aa91064 | [
"MIT"
] | permissive | markmurimi/neighbour-hood | 8c595ee732ead18a33be8a6ab49078d9fc27c4d6 | dc5a3aaefd77958ca4990e651e0ba8f0b22d7cf8 | refs/heads/master | 2020-03-18T14:06:58.002371 | 2018-05-30T12:09:19 | 2018-05-30T12:09:19 | 134,830,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | #!/home/mark/Documents/neighbour-watch/virtual/bin/python3.6
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"murimimg180@gmail.com"
] | murimimg180@gmail.com |
a09716d2a9576b3048cd976e8563fcd6248dbbf4 | acfada8ccabb7cf7c5d9e9c77feac7d94f2a49a3 | /examples/rotation_warp_image.py | 41190fb9c882d535858a78b6c417ead3aa6e12dc | [
"BSD-3-Clause"
] | permissive | prgumd/motion_illusions | f8101d04fb4c9d971be27034bfe2a23aefc051e8 | b270625132b4ef2e33dde307e391f79d772de1fa | refs/heads/master | 2022-12-07T14:40:58.748958 | 2020-08-31T00:14:39 | 2020-08-31T00:14:39 | 283,321,919 | 8 | 7 | null | null | null | null | UTF-8 | Python | false | false | 7,318 | py | ###############################################################################
#
# File: rotation_warp_image.py
#
# Continuously warp an image by a small random rotation
#
# History:
# 07-28-20 - Levi Burner - Created file
#
###############################################################################
import argpar... | [
"leviburner@gmail.com"
] | leviburner@gmail.com |
df4aebbd5bf8b91cbcd5d6bb7f2e0df889f7dd98 | 46a628145a7a849ebc684c161e77cf61e3568e75 | /PYTHON/两数相加.py | b9a14dcd0d2a17a8220430dcee669ea2ecc5ab22 | [] | no_license | hustfc/OJ | b0fcf4a2a6b610dd6a63799d4cc665b6225717a9 | fb5a1496a88be75c3bf81ddfe29f25d30088aba0 | refs/heads/master | 2020-04-04T16:03:33.931080 | 2019-01-06T12:09:31 | 2019-01-06T12:09:31 | 156,063,346 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,932 | py | #Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def addTwoNumbers(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
:rtype: ListNode
"""
carry = 0
l3 = ListNod... | [
"aaaa@hust.edu.cn"
] | aaaa@hust.edu.cn |
afa4af83ece4b4704127d44f4e5527dced662658 | dd204762b0a9cdd93634e15ec981b5f868ec4315 | /apps/documents/migrations/0004_invoice.py | 6d174b1c1c2357bab34e08fcb0a6a92b8b9b6634 | [] | no_license | pannkotsky/sales_outlet | 49713b39759d8c3dbedfce96953ba9c47db3d521 | 15753582f8413a98ad7259bb6a3d62e32415f632 | refs/heads/master | 2021-08-30T11:05:23.589421 | 2017-12-17T16:19:56 | 2017-12-17T16:19:56 | 112,077,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-29 20:33
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('products', '0004_auto_20171129_2118'),
('documents'... | [
"kovvalole@gmail.com"
] | kovvalole@gmail.com |
0e835b9d2490f0937f1fcd567648e8a4d3fbcbc4 | 1bfa2d40fc07ef38eb2b74cf6df6d9d3a0d31b86 | /Expression/Expression_L3.py | 24609a90f4362098911c4fd15babc2623534a93c | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause-Clear"
] | permissive | theminer3746/2110101_Com_Prog | 9964dff4452036e674d5380d081b9ae3689a7321 | f3f6dd5e34635160d53ddff7fdada218a89f4161 | refs/heads/master | 2021-01-19T18:46:56.756900 | 2017-09-13T13:33:10 | 2017-09-13T13:33:10 | 101,164,096 | 0 | 0 | null | 2017-11-08T13:17:05 | 2017-08-23T09:42:30 | Python | UTF-8 | Python | false | false | 759 | py | hour_start = int(input())
minute_start = int(input())
second_start = int(input())
hour_end = int(input())
minute_end = int(input())
second_end = int(input())
timestamp_start = hour_start * 3600 + minute_start * 60 + second_start
timestamp_end = hour_end * 3600 + minute_end * 60 + second_end
total_elapsed_time_in_sec... | [
"theminer@theminerdev.com"
] | theminer@theminerdev.com |
bb6884d71bb5114a5580477800cc5a1e89560bf2 | a4e3f0777ba808de6377c6948ef84e3b8221e708 | /eventsync/Blueprints/invites.py | b4faf12bb41ab3393a3e19e809768885ea6710b4 | [] | no_license | onnenon/eventsync | 7108eabf7dc647e9e6664425ed6d57e39d8d3af8 | 66a72d451540d7cd0ff7436b7739e6d5ccee2b29 | refs/heads/onnen-dev | 2022-06-09T13:51:06.542537 | 2019-04-25T21:43:33 | 2019-04-25T21:43:33 | 178,031,361 | 0 | 0 | null | 2022-05-14T20:10:00 | 2019-03-27T16:14:43 | Python | UTF-8 | Python | false | false | 860 | py | from flask import Blueprint, flash, redirect, render_template, request, url_for
from flask_login import current_user, login_required
from eventsync.models import User, BelongTo
invites = Blueprint("invites", __name__)
@invites.route("/member_list", methods=["GET"])
@login_required
def member_list():
# get people... | [
"jpaton@iastate.edu"
] | jpaton@iastate.edu |
6218d980ce16b1172af286301071681c06ed2231 | 6892804b0f4c54063deebb419f42c25930a8dcaf | /AI_Inference_Engine/inference_engine.py | 9079bfc3183d7e1748be1c8d9025763b011d8c06 | [] | no_license | shivneshr/Artificial_Intelligence | 590134931baeb9dd8600d5cbadccc487433c092c | fd86aec2932a85269295cb26deefdcd2a6a73e60 | refs/heads/master | 2018-11-10T21:23:58.816864 | 2018-08-27T07:08:12 | 2018-08-27T07:08:12 | 111,978,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,918 | py | import re
import time
import sys
# Main KB to use to prove the statements
KB = []
# Set of queries to ASK
ASK = []
# Visited sentence to avoid infinite loop
visited = {}
# Stores the start tieme of the query
start=0
# Stores the universal number used for standardization
num=0
def readSentences():
'''
:return:... | [
"shivnesh@Shivneshs-MacBook-Pro.local"
] | shivnesh@Shivneshs-MacBook-Pro.local |
cd61ace37cd11088102436e35d1cfc5f5db9d6ca | f61104c10c59105fd919ce58bcaaea6f5798bd82 | /plot_longshot_allele_counts.py | 4d3da18b3cb88ad9afba337d03ea5fe8a21f1454 | [
"MIT"
] | permissive | wdecoster/misc | 7547723d9394a83e993e1c11b814fdad0bce6631 | 00209df1d20acf9a17cf4899a805fd35ddba8f29 | refs/heads/master | 2021-12-09T14:34:27.036904 | 2021-12-08T09:14:59 | 2021-12-08T09:14:59 | 147,674,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | import pandas as pd
import plotly.graph_objects as go
import sys
import plotly
from cyvcf2 import VCF
def main():
df = pd.DataFrame(data=[(v.start, v.FILTER, *v.INFO["AC"])
for v in VCF(sys.argv[1])
if v.INFO["AQ"] > 15],
columns=['begi... | [
"decosterwouter@gmail.com"
] | decosterwouter@gmail.com |
0953bdac4615a3147e21fe014982be83dccd6a89 | 0bfe4fa0785be9c2f3527072b01c43e796842273 | /ml/models/SRNN_timit.py | 032f9fe85b72e866d0d4ae8034d82c0e3fc13bb9 | [
"MIT"
] | permissive | dtolpin/srnn | 6c5875fb18a5e596cc0eb3bf46c510feaa2ace04 | 6e078a933ad9e73f91225a1f11e6ddcf832a17db | refs/heads/master | 2021-05-16T17:54:13.108816 | 2017-09-11T11:36:16 | 2017-09-11T11:36:16 | 103,117,844 | 0 | 0 | null | 2017-09-11T09:39:17 | 2017-09-11T09:39:17 | null | UTF-8 | Python | false | false | 30,131 | py | import theano
import theano.tensor as T
import lasagne
import parmesan
from base import Model
import numpy as np
from ml.lasagne_extensions.stochastic_recurrent_layer import StochsticRecurrentLayer
from parmesan.layers import ListIndexLayer
import math
def kl_normal2_normal2(mean1, log_var1, mean2, log_var2):
ret... | [
"fraccaro89@gmail.com"
] | fraccaro89@gmail.com |
36e5594e0c9155df5f1174d873501c59230fe65e | cddb1b6bb180bcafe9f44c3cc7ca07f4b448fe62 | /Fonsiyonel Programlama/fonksiyonel_programlama.py | 752880ca238e9e4465ee25dc9a4cba5b40713703 | [] | no_license | huseyin4334/Python-Education | db740ffa73069e8f841a8ef44dcae79093775734 | 031aca7055163e4846aa9719b0de135ff4262486 | refs/heads/master | 2020-07-09T20:14:08.055029 | 2019-08-23T21:33:10 | 2019-08-23T21:33:10 | 204,072,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 7 12:07:33 2019
@author: HUSEYIN
"""
#pue function
A = 5
def inpure_carpma(B):
return B*A
def pure_carpma(A,B):
return A*B
print(inpure_carpma(6))
pure_carpma(6,7)
A = 9
| [
"33188524+huseyin4334@users.noreply.github.com"
] | 33188524+huseyin4334@users.noreply.github.com |
de33155e165090bae60717a1ff6674444bec658b | 1c152037590810cdb4afc258e7a45f62f24a3dde | /learning_logs/migrations/0004_auto_20210511_0531.py | a15717f83bd9e603a00a97de11d1f0c09b450962 | [] | no_license | FMAG400/Learning_logs | f4ff7988e464462306c719c6286286a18a1bf194 | 5ee67df789ab4f2897ff699ed53753db62bad231 | refs/heads/master | 2023-04-21T04:52:16.341004 | 2021-05-12T12:44:14 | 2021-05-12T12:44:14 | 366,588,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # Generated by Django 3.2.2 on 2021-05-11 05:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('learning_logs', '0003_topic_owner'),
]
operations = [
migrations.AlterField(
model_name='entry',
name='id',
... | [
"605230834@qq.com"
] | 605230834@qq.com |
a325021ab2cb13ffe4178348899fc09ce2206217 | e3e99cdab80db4803468429af3fd8f037b53705c | /Peak_Finder.py | e3ca85e9ca8d3a564bf6a7b3ec0e65c0dded6929 | [] | no_license | achintyakmr/Algorithms | c4b9cc68e51144fa2a7acca1750bb692d2d78ca7 | 3ed8c2eb79603bc373169bc59c9d4765d09e292c | refs/heads/master | 2021-01-12T08:48:58.991067 | 2016-12-17T03:12:00 | 2016-12-17T03:12:00 | 76,700,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | #!/usr/bin/env python
"""Peak_Finder.py: Finds if a peak exists in a 1D or 2D array and returns it"""
__author__ = "Achintya Kumar"
def peak1d(list_a):
"""Returns a peak in a 1D array with complexity O(log n)"""
start = 0
end = len(list_a)
while(True):
mid = (start + end)//2
if mid >... | [
"achikmr@gmail.com"
] | achikmr@gmail.com |
76b445d046180bbe23714a3b1485de3813f28af6 | f36041182de54da4c843cce5d332020bea5572b2 | /pdf2text.py | 411a67552042e2af48953c5b0f3c69bf1255ca26 | [] | no_license | prabodhw96/PDF2Text | 8f597c8fde891b51e0e2018a0b8525f5c55446ea | 5c01d1b006849eb0bc4948fc1c16a4e8174c81e6 | refs/heads/master | 2020-06-20T04:52:27.554753 | 2019-07-15T13:06:48 | 2019-07-15T13:06:48 | 197,000,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | from PyPDF2 import PdfFileWriter, PdfFileReader
import os, errno
from subprocess import call
import sys
def split(directory, filename):
inputpdf = PdfFileReader(open(filename, "rb"))
try:
os.makedirs(directory)
except OSError as e:
if e.errno != errno.EEXIST:
raise
... | [
"prabodhwankhede1996@gmail.com"
] | prabodhwankhede1996@gmail.com |
23e5189244ab17f8795a0d2d136873de29c91f73 | 74482894c61156c13902044b4d39917df8ed9551 | /cryptoapis/model/address_tokens_transaction_unconfirmed_ethereumerc721token.py | 78e6e8cccb380fb74e25368b6c6d05792ff6fb74 | [
"MIT"
] | permissive | xan187/Crypto_APIs_2.0_SDK_Python | bb8898556ba014cc7a4dd31b10e24bec23b74a19 | a56c75df54ef037b39be1315ed6e54de35bed55b | refs/heads/main | 2023-06-22T15:45:08.273635 | 2021-07-21T03:41:05 | 2021-07-21T03:41:05 | 387,982,780 | 1 | 0 | NOASSERTION | 2021-07-21T03:35:29 | 2021-07-21T03:35:29 | null | UTF-8 | Python | false | false | 7,724 | py | """
CryptoAPIs
Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei... | [
"kristiyan.ivanov@menasoftware.com"
] | kristiyan.ivanov@menasoftware.com |
6846f307d2072ca94f585f8698fb5c881a612783 | 64f2d0920df0e5da05e67523b6c33a9a8df477a8 | /sources/vague_processing.py | d287c35f7d25c907ec9767c4dda34be945cc6f8b | [] | no_license | sherry975/CTRL-PG | c8b1a0f95de74811419160fd9047d48a66436b39 | 18429fda33df849a1a9bab4a50bd941b2057d8b1 | refs/heads/master | 2023-04-09T16:42:16.877194 | 2021-04-22T15:58:35 | 2021-04-22T15:58:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | import os
import re
import numpy as np
from sklearn.metrics import f1_score, confusion_matrix
import sys
name_list = [fle.strip() for fle in os.popen('cd /tmp/tbd/; ls aug_0psl_%s_*.output.txt'%(0.0))]
def KLdivergence(logits):
return np.sum(np.array([i*np.log(5*i) for i in logits]))
label_dict = {0: 'overlap',... | [
"yuyanislearning@gmail.com"
] | yuyanislearning@gmail.com |
695b27950d2002be7c483f898f0bcae707a24450 | 3ce3e1a22421c9e86617332afd8ca4b6f9086c54 | /makethumbs.py | aed891e30daafaf15d2dc909a8c458b81216f330 | [] | no_license | BongoBill/friendsofhartpark | 0424cdcab3af23ab6ceddc68ed610cf9a5d2b50a | a5ff67d6c1fe3198d30b6caac5063684ac8d2c78 | refs/heads/master | 2023-07-24T23:48:35.154113 | 2023-07-15T19:51:35 | 2023-07-15T19:51:35 | 8,104,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | #!/usr/bin/python
import sys
if (len(sys.argv)<5):
print "usage %s dir filename count description" % sys.argv[0]
else:
for i in range(int(sys.argv[3])):
print '<a href="%s/%s%03d.JPG" rel="lightbox[%s]" title="%s">' \
% (sys.argv[1], sys.argv[2], i, sys.argv[2], sys.argv[4])
print '<img src="%s/thumbs/%s%03d.... | [
"William.L.West@disney.com"
] | William.L.West@disney.com |
edb68d6f607d6ffce8ccd371008cdda62d9db733 | afebbb07b2b4eada17a5853c1ce63b4075d280df | /marketsim/gen/_out/math/_source.py | fe0ac6dcc7f72a71b5423b066a055fd7a079c5e3 | [] | no_license | peter1000/marketsimulator | 8c0a55fc6408b880311d3ad49defc55e9af57824 | 1b677200a9d5323f2970c83f076c2b83d39d4fe6 | refs/heads/master | 2021-01-18T01:39:04.869755 | 2015-03-29T17:47:24 | 2015-03-29T17:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,812 | py | # generated with class generator.python.accessor$Import
from marketsim import registry
from marketsim.gen._out.math._moving import Moving
@registry.expose(["-", "Source"])
class Source_mathMoving(object):
"""
"""
def __init__(self, x = None):
from marketsim.gen._out.math._moving import Moving_IObs... | [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
555751e18108c9e2072aef5490598e7469298562 | 73be861e2b1da9ba04a48c69b34a8dbb8bf6fd33 | /apps/common/urls.py | edfea8ef6934863b14db9ce286287d360a2ff8b1 | [] | no_license | zmyxn/persica | 61df4dcde9ae2972b95d582fe94430d2931eb56c | 3a7eb541fa87bd1744e8d7bbc464b971063ed7d7 | refs/heads/master | 2022-12-10T23:16:37.228441 | 2019-01-20T13:22:00 | 2019-01-20T13:22:00 | 158,930,476 | 0 | 0 | null | 2022-01-06T22:29:39 | 2018-11-24T11:40:05 | HTML | UTF-8 | Python | false | false | 318 | py | from django.conf.urls import url,include
from rest_framework import routers
from . import views, api_views
app_name = "apps.common"
# Create a router and register our viewsets with it.
router = routers.DefaultRouter()
router.register(r'tree', api_views.TreeViewSet)
urlpatterns = [
]
urlpatterns += router.urls
| [
"1308369+zmyxn@users.noreply.github.com"
] | 1308369+zmyxn@users.noreply.github.com |
0d3b8f95ece7e037e2f572adc7c258d76b25e936 | 6418c60849119c2e956bf534c4118ec4858de648 | /ax/modelbridge/transforms/one_hot.py | f16d151519ced8ad0ce026918093c5e33cc43449 | [
"MIT"
] | permissive | MalkeshDalia/Ax | c1595871871bd18183ad03692487f33df760bfaa | f458275d96c858cddc835dfefd34114de34d8b28 | refs/heads/master | 2023-04-16T00:34:19.726437 | 2019-05-01T05:16:22 | 2019-05-01T05:16:23 | 184,374,837 | 1 | 0 | MIT | 2023-03-21T21:47:24 | 2019-05-01T05:51:10 | Jupyter Notebook | UTF-8 | Python | false | false | 6,387 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from typing import Dict, List, Optional, TypeVar
import numpy as np
from ax.core.observation import ObservationData, ObservationFeatures
from ax.core.parameter import ChoiceParameter, Parameter, ParameterType, RangeParamete... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4f6f9e82ad73eabee2d759d8877b62627a13b01b | b6722cdbf5dd583b9c6b236ec7b3726fd61de6db | /lm/get_embedding.py | e419a5890696746461fc58f32d41b4c5b047b688 | [] | no_license | xsh884826402/morpheme | 5e4bb6d55eaf25e022a9c9a85a8914ff6ff00a00 | 4990b14f9ba676b5dac528a58f6b3f726de90fb2 | refs/heads/main | 2022-12-24T20:05:36.015703 | 2020-10-09T15:26:59 | 2020-10-09T15:26:59 | 301,739,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | from word2vec import Word2Vec
from data_process import build_data
import tensorflow as tf
import os
os.environ['CUDA_VISIBLE_DEVICES'] = '1'
class Config():
def __init__(self):
#
self.original_file = '../data/text8'
self.vocab_file = None
self.split_ratio = [0.8, 0.1, 0.1]
s... | [
"884826402@qq.com"
] | 884826402@qq.com |
ad79f6b213bde5a1c842a932831a6666cbbfcae1 | 481ac638e79f4814f69d9cac494452b0625630da | /bin/markdown2 | e41e95c8e328fba6eda3e3d0bb35905c4a6b24e4 | [
"MIT"
] | permissive | balajiprakash/blog-api | 815171c7e40302284be5cf8853a6dd020ade3b28 | 0117006bbdfb7cddf0fe603d2c4a517830e0ed58 | refs/heads/master | 2021-01-11T00:36:01.751181 | 2016-10-10T17:10:35 | 2016-10-10T17:10:35 | 70,510,734 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 515 | #!/home/balaji/Desktop/sandbox/django/blog-api/bin/python
import sys
from os.path import join, dirname, exists
# Use the local markdown2.py if we are in the source tree.
source_tree_markdown2 = join(dirname(__file__), "..", "lib", "markdown2.py")
if exists(source_tree_markdown2):
sys.path.insert(0, dirname(source... | [
"usmankhan@pitsync"
] | usmankhan@pitsync | |
33b8766de5baea2cb491dceec5ecf6c98dc2e55b | 8284ad49884e5f47ecb3f673846d616997adec61 | /backoffice/cloud/create_dbslave.py | 1ac441af56178489e738d7ad190d984b019e066c | [
"Apache-2.0"
] | permissive | kemitche/indextank-service | aa0a5f556ed3a2ac248bbb85182893354143d919 | 80c47e52520ad0c8c988c35e23ce62696e327266 | refs/heads/master | 2021-01-15T21:02:35.420570 | 2012-01-03T13:27:03 | 2012-01-03T13:27:03 | 3,103,835 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | import subprocess, sys, json
from config_dbslave import config_dbslave
from launch_ami import launch_ami
def create_dbslave(master_host):
print 'Creating DB SLAVE from MASTER %s' % master_host
instance_data = launch_ami('db')
slave_host = instance_data['public_dns']
config_dbslave(master_host, slave_host, '**... | [
"adrian@ghosthack.com"
] | adrian@ghosthack.com |
e7b19fe9271b917182eb6638204ad5ef19616494 | 2f639bfc97daddd92e5c23fce7b3686c6d93f12b | /project2_crawl/pj2_getDetails/pj2_getDetails/spiders/spider3.py | 35a5ffb86653223d0b0d2743d8647b8923a46f3d | [] | no_license | kien-ndt/project2 | d464cf449e1a8736a4adbf2c5deb117092a6d427 | 180d48fd5d734f2a065c14e65c8def14a480b0af | refs/heads/main | 2023-03-30T21:51:44.274331 | 2021-04-04T15:23:47 | 2021-04-04T15:23:47 | 352,390,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,059 | py | import scrapy
from neo4j import GraphDatabase
from ..items import Pj2GetdetailsItem
class GetDetail(scrapy.Spider):
name = 'spider3'
start_urls = []
urls = []
linknumber=0;
def __init__(self):
self.create_connection()
GetDetail.start_urls.insert(0,GetDetail.urls[0])
def create_co... | [
"nightstealth99@gmail.com"
] | nightstealth99@gmail.com |
3ebe10cba243e3e9beff7ce90b952a15a1e05a57 | 7bcec8a9c6a240ec0888bec4179f536046464005 | /moviesys/moviesys/.history/library/views_20210324175438.py | b6544870318d275779993f680f8eb2a059283e1a | [] | no_license | yifanzhang13/MovieManagementSystem_group5 | c64e5810914c3d33ae6cd94e8eed5dc5a3962181 | 4cca1a4299311681d69b2347ca8d7b02e0846ebc | refs/heads/main | 2023-03-29T08:30:26.655108 | 2021-04-01T15:42:52 | 2021-04-01T15:42:52 | 344,417,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,616 | py | from django.shortcuts import render
from .models import Movies, Users, Ratings, Links, Tags
from django.db import connection
from django.views import generic
from django.shortcuts import get_object_or_404
from django.http import HttpResponseRedirect
from django.urls import reverse
from library.forms import SearchMovieF... | [
"yifancheung13@gmail.com"
] | yifancheung13@gmail.com |
337f92cbe7fec77cc70c110374ff76ac4b978f1e | 4aea39c91c60b9dfcbdc5d17889d1544d0d9b7e9 | /volume/migrations/0002_auto_20180622_1422.py | 62f4ec1e8ccbe7a436b4d1ebc61f6b6c2e7a9240 | [] | no_license | mdkvimer/evcloud_server | 7860b0a77d401ec5b714417e19910f1ef93192a5 | 396f8c1b47ca55794c0808503d492de19f8edda2 | refs/heads/master | 2020-03-23T06:44:32.313126 | 2018-07-13T10:17:44 | 2018-07-13T10:17:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-06-22 14:22
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('storage', '0003_auto_20180622_1422'),
('volume', '... | [
"yanghaoalex@gmail.com"
] | yanghaoalex@gmail.com |
e843d418d54ba8d491c42c79498e47d2b6f448d8 | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_chart_axis15.py | 6fa48ec645b2b45ff9c7624ac1320000ad10b66f | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 1,360 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
c8206468c676a793579b077ecb13cf9cd468ec62 | 9de245acdb1a5a102e6e70d850817aaee6ef861b | /exercises/List_Overlap_Comprehensions.py | 072602da90763556a4181b7299ea7a1008907d58 | [
"Apache-2.0"
] | permissive | narendraparigi1987/python | 09aac262fc5f9285b105a2bef4a4648a2a1c0d1d | b3e235e7653583c0a1149b75e1527d44c0834de7 | refs/heads/master | 2021-04-03T01:08:13.567406 | 2018-03-09T23:43:12 | 2018-03-09T23:43:12 | 124,603,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | import sys
import random
def main():
#a = random.sample(range(100),10)
#b = random.sample(range(100),20)
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
c = [num for i,num in enumerate(a) if num in b and num not in a[i+1:]]
print c
if __name__ == '__m... | [
"naren.parigi@gmail.com"
] | naren.parigi@gmail.com |
1a9915fc4651d6dbaaa85a058a8a815d4586fa99 | 3ba626240c50c3f30ddde3bc3160de4f853e56e9 | /backend/src/tests/test_api_search.py | 478c1aa9dc95ad26c50c5e83760f09e4da71d448 | [
"MIT"
] | permissive | MNI1996/TIP-Jara-Ibarra-MasDespacioCerebrito | 038fbf674a9a34e9bc0d9f6a111c696ccc63b5db | 45775384382e7069f45e1a5ce932e742eae6629e | refs/heads/master | 2023-03-09T09:58:58.503494 | 2020-12-27T18:10:26 | 2020-12-27T18:10:26 | 292,111,260 | 0 | 0 | MIT | 2020-12-27T18:10:27 | 2020-09-01T21:27:25 | Python | UTF-8 | Python | false | false | 2,702 | py | import unittest
from unittest.case import TestCase
from mongoengine import connect, disconnect
import app
from backend.src.model.Player import Player
from backend.src.model.Room import Room
test_config = {
'MONGODB_SETTINGS': {'alias': 'testing_db'}
}
class TestApiSearch(TestCase):
def setUp(self):
... | [
"ivanjaratamargo@gmail.com"
] | ivanjaratamargo@gmail.com |
2c9c45fa89ae0963f75cec273106f6c2fa993418 | e9053cfe1372058ca73d84ec493cd76fdf543ca1 | /fresh_tomatoes.py | f1970076f2dd9f87f9e66bada274ab0fd047195e | [] | no_license | adityasiwan/movie-trailer-website | e07dc31a0d591df7d197b6af2b93a7ff2db29a19 | afafdf9efbb0ac96fb6c35c8ed402bb250835fb5 | refs/heads/master | 2021-04-03T09:09:50.245779 | 2016-06-14T18:12:24 | 2016-06-14T18:12:24 | 60,648,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,044 | py | import webbrowser
import os
import re
main_page_head = '''
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Fresh Tomatoes!</title>
<!-- Bootstrap 3 -->
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css">
<link rel="stylesheet"... | [
"harsh.aditya14@stu.upes.ac.in"
] | harsh.aditya14@stu.upes.ac.in |
e5fcd655b77ce9ae167b4c0b7cddf42f67171d9c | 24a59f507e720e010704f051266bb3affe00ec52 | /src/structure_factor.py | 4b5921e7685c808c3c72935658aa242b1d11acf4 | [] | no_license | swetanjal/Lennard-Jones-System | 0a74589b033ddf152476749b439229ef02673f82 | 557ba15f5c862e7aee7de957235ab7d7c4e02bbf | refs/heads/master | 2023-04-27T20:29:30.286817 | 2021-04-27T08:09:19 | 2021-04-27T08:09:19 | 355,282,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,815 | py | import math
import matplotlib.pyplot as plt
import sys
import numpy as np
T = int(sys.argv[2])
if len(sys.argv) != 3:
print('Incorrect usage. Refer README.')
exit()
f = open(sys.argv[1])
lines = f.readlines()
frames = []
O = []
for i in range(1, len(lines)):
tokens = lines[i].split()
if tokens[0] ... | [
"swetanjal.dutta@research.iiit.ac.in"
] | swetanjal.dutta@research.iiit.ac.in |
2a0285638dadac1bca6388b2784153e889ab8ee8 | f9c7f734e13fa3c61347fe475306a6759940b860 | /python3_cron_scripts/create_tpd_graphs.py | 6662152a75dbe8d6b85b7000c5f2ae04c43bd22b | [
"Apache-2.0"
] | permissive | DalavanCloud/Marinus | 48936f54395bae7c3e39dcffed77bb6fae3b473c | a9f3c4a54f6bf5c044121ac6d8d3d18a7a0e09d0 | refs/heads/master | 2020-04-29T12:32:17.645410 | 2019-03-16T00:37:11 | 2019-03-16T00:37:11 | 176,140,449 | 1 | 0 | null | 2019-03-17T18:07:18 | 2019-03-17T18:07:18 | null | UTF-8 | Python | false | false | 9,765 | py | #!/usr/bin/python3
# Copyright 2018 Adobe. All rights reserved.
# This file is licensed to you 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 requir... | [
"puhley@adobe.com"
] | puhley@adobe.com |
1abd899a1740721cefc860f28ccdc3395587f893 | eea01a7a4625b0ffada7f5ea9909537f159a706e | /api/tests/opentrons/protocol_engine/execution/test_gantry_mover.py | ac621cfee6533e3ca72547639e2cd5e30353cf50 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | XifanRD/opentrons | b9fe114232fba26d789a9c4cf24b6ec6338134dc | d02dc6f77c40d85daa1c37f2073e4672e5f5f445 | refs/heads/edge | 2023-07-09T06:43:13.526571 | 2023-06-30T01:12:18 | 2023-06-30T01:12:18 | 207,443,994 | 0 | 0 | Apache-2.0 | 2019-12-19T09:41:37 | 2019-09-10T02:05:43 | null | UTF-8 | Python | false | false | 15,231 | py | """Test gantry movement handler with hardware API."""
from __future__ import annotations
import pytest
from decoy import Decoy
from typing import TYPE_CHECKING
from opentrons.types import Mount, MountType, Point
from opentrons.hardware_control import API as HardwareAPI
from opentrons.hardware_control.types import (
... | [
"noreply@github.com"
] | XifanRD.noreply@github.com |
5502baa5078bace5351800777e9e71092e41e9ec | 5779d964d5ee42b586697a640ff0f977e0fa1e55 | /test/test_access_approval_services_api.py | 1e9f8cd053340a2548c2d46ca89069e1132a2cae | [] | no_license | thomasyu888/synpy-sdk-client | 03db42c3c8411c8c1f8808e1145d7c2a8bcc3df1 | d1e19e26db5376c78c4ce0ff181ac3c4e0709cbb | refs/heads/main | 2023-02-28T09:33:12.386220 | 2021-02-02T15:09:59 | 2021-02-02T15:09:59 | 333,744,741 | 3 | 0 | null | 2021-01-30T12:10:50 | 2021-01-28T11:57:48 | Python | UTF-8 | Python | false | false | 1,014 | py | # coding: utf-8
"""
Platform Repository Service
Platform Repository Service - Sage Bionetworks Platform # noqa: E501
The version of the OpenAPI document: develop-SNAPSHOT
Contact: thomas.yu@sagebionetworks.org
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_im... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
f295a8ca43e1a1702ebd2e350811daf5015da6a1 | 59ba4b225306659f62f1740b429634e5b2d191b2 | /sales/etl/settings.py | ca21103f53e27f04a13f1414a845c6ef318373f1 | [] | no_license | jeenal-gajjar/fileprocess | dc94c1d85b7b01ec91618e334ad4a70b05226ad0 | 4776649d4ad99b512ff0eb198b2066e847297a2a | refs/heads/master | 2022-11-19T12:07:33.046558 | 2020-01-23T10:39:30 | 2020-01-23T10:39:30 | 281,378,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,107 | py | # Created By: Jeenal Suthar
# Created Date:
# Last Modified: 22/01/2020
# Description: This module provide settings of the data provider.
from typing import Dict
from Common.Utils import str_to_list
from Common import SettingsBase
class Settings(SettingsBase):
"""
Represents Data Provider Confi... | [
"jeenal201suthar@gmail.com"
] | jeenal201suthar@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.