blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ca1b707109866827e14056049f57c913b474171f | 4229a406a83a573dc357c1144cae7c5aad6f673b | /trestle/tasks/__init__.py | 86a3ca67891864e7f9daa7aafdae8b49ba9a8a8d | [
"Apache-2.0"
] | permissive | xee5ch/compliance-trestle | dbc0647fe18e1164a75bcfdc4d38687df14e3247 | 969c10eceb73202d2b7856bac598f9b11afc696e | refs/heads/main | 2023-09-02T17:21:35.659432 | 2021-11-17T00:01:27 | 2021-11-17T00:01:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # -*- mode:python; coding:utf-8 -*-
# Copyright (c) 2020 IBM Corp. 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
... | [
"noreply@github.com"
] | noreply@github.com |
495c686194df3677c638940f0900b1e8bed5d5c9 | c9cb89a4835371e84963f235f090669048b75d57 | /control.py | 3a72df06c2c0421cd318538b3b68c7b5ff72c36c | [] | no_license | SergioGasquez/autonomous-mobile-robot | a333197a12d009a97399e8e705c0c727b5c700ab | fe06e155cec24eae40c51510eb422c496cc0cf25 | refs/heads/master | 2018-10-14T05:33:22.887383 | 2018-07-11T21:52:49 | 2018-07-11T21:52:49 | 118,379,898 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,847 | py | #!/usr/bin/python
# Import libraries
from math import *
import rospy
import tf2_ros
from geometry_msgs.msg import Twist
from nav_msgs.msg import Path
from time import sleep # Library for implementing stops signs
class Control(object):
def __init__(self):
self._tfBuffer = tf2_ros.Buffer()
... | [
"noreply@github.com"
] | noreply@github.com |
af0fe42d093a7499d9686e4fb26fe87b9ee1d317 | 36920a18ad0b91ccd88a8c1dfbf38eced123115c | /iftt.py | 12a4c0e13017abcdcef77d31da627489ff59d9c5 | [] | no_license | mahesh07513/Flask-Alexa | 8926b83163d93f68dd4c64c8356006419f96d577 | 7952494893fc2b5408f17e4c3787b5e9264d523b | refs/heads/master | 2020-04-30T01:17:43.585664 | 2019-03-19T14:08:36 | 2019-03-19T14:08:36 | 176,525,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import requests
def email_alert(first, second, third):
report = {}
report["value1"] = first
report["value2"] = second
report["value3"] = third
requests.post("https://maker.ifttt.com/trigger/callpython/with/key/cE-g8Ez3Be3ryVsJKlQTHL", data=report)
print("Choose your first string.")
a = input()... | [
"mahesh07513@gmail.com"
] | mahesh07513@gmail.com |
534fa21819f8bfb302859d97f72214eed5737a33 | ac3ef13962d8995c3d546b0b67b99acaa63aa88a | /quizXZ/migrations/0003_auto_20160302_1940.py | 4b67fe13f2e73c9c860d303c92a10ce904911c6b | [] | no_license | Caroline-xinyue/quizBase | a77f75a132afc9b9d873796710339a576810fee8 | 18919845535d5883c2eddbf791580cb497c50a57 | refs/heads/master | 2020-04-10T21:37:51.561960 | 2018-03-07T21:12:57 | 2018-03-07T21:12:57 | 70,264,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('quizXZ', '0002_auto_20160301_1843'),
]
operations = [
migrations.AlterField(
mo... | [
"xzhang@brynmawr.edu"
] | xzhang@brynmawr.edu |
8d7db82a4657e40c36be1643c2d9987499a8b4a9 | 5451f259e39c8601316a091e1a91a62d2e55d5d1 | /ncvxsp/linear_model/scad_coordinate_descent.py | 5792b104f76eb8062b3cc1cc165fd02d80646034 | [
"BSD-3-Clause"
] | permissive | Clej/ncvx-sparse | 22bf5672fee415d2d2ffb909bbdd52e89d531514 | 457a1a1e7c4422e1e7cd761d46c08055108d5c14 | refs/heads/master | 2023-06-29T14:11:23.495929 | 2021-08-06T20:12:59 | 2021-08-06T20:12:59 | 393,133,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,107 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 21 12:19:50 2021
@author: Clément Lejeune (clement.lejeune@irit.fr; clementlej@gmail.com)
"""
import sys
import warnings
import numbers
from abc import ABCMeta, abstractmethod
import numpy as np
from scipy import sparse
from joblib import Parallel, effective_n_jobs
fro... | [
"54889281+Clej@users.noreply.github.com"
] | 54889281+Clej@users.noreply.github.com |
ed9a98749599fa918cd6108cf1017d3f5d6ab8ab | 3a47f59b5b51470ccc8bd5db1de1daea53d0b39c | /experiments/dyadic/amazon_crawler/amazon_crawler/settings.py | 703192f30b6a3edaa107b51d703b5db1d7d10bc2 | [] | no_license | gegetang/compatibility-family-learning | c9c9218d4c90b8fea2ab9733c103f670e9367979 | d760068388b3e8fd6c58a883137ba3db7c9ffa29 | refs/heads/master | 2020-04-14T01:56:28.060115 | 2018-01-08T05:51:19 | 2018-01-23T05:58:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | # -*- coding: utf-8 -*-
# Scrapy settings for amazon_crawler project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en... | [
"yongsiang.shih@appier.com"
] | yongsiang.shih@appier.com |
a4f7ad0e605de064bcf4e4489cdaed329f43483d | 5f1d1ba201c209022f1c3b12b2afa9429a23f7ea | /main.py | d283f8e78f042af754df23192e5f8cb655b13a91 | [] | no_license | DSchana/Art-Assemblage-and-Appreciator | 61927b321662faf72efb83aa5da6c9504f79d3a5 | f41be8571a22a26cb9eb315aed341f14f186ec4f | refs/heads/master | 2023-02-03T00:23:54.441047 | 2020-12-17T23:54:44 | 2020-12-17T23:54:44 | 321,794,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,460 | py | from typing import Optional, List
from fastapi import FastAPI, status, HTTPException
from fastapi.responses import JSONResponse
from models.user import User, UserAuth
from models.art import Art, Assemblage
import os
import json
import uvicorn
art = FastAPI()
art_lock = False
art_json = {}
### Users
@art.post("/a... | [
"dschana6@gmail.com"
] | dschana6@gmail.com |
5802522e4965030c8e5f570f5d2332f19194e9f3 | 3ef0c1c5302922fe65d81553dd995ba13f868eb1 | /04_fgcmcal/fgcmHscCalibrations_cycle03_config.py | 2fe0434a2f060b16abcbd562fb5949911d7f1f9d | [] | no_license | lsst-dm/s20-hsc-pdr2-reprocessing | 5899cb71740c42301e0dce31441b7dcbbcb38dd3 | b60fdc58e144b18577946714ad88ed84bad6167a | refs/heads/main | 2023-07-24T21:09:03.264853 | 2023-07-10T00:59:30 | 2023-07-10T00:59:30 | 237,534,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,261 | py | import lsst.fgcmcal.fgcmFitCycle
assert type(config)==lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleConfig, 'config is of type %s.%s instead of lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleConfig' % (type(config).__module__, type(config).__name__)
import lsst.fgcmcal.sedterms
# Bands to run calibration (in wavelength order)
config.ba... | [
"hchiang@lsst.org"
] | hchiang@lsst.org |
570e791962616acf2b90d808f402aaea2ee15533 | e1834bce67d20e73d10eb4533584d635f2840782 | /onir/datasets/nyt.py | 14b837a35362df7067ee673b9743e46b16f78994 | [
"MIT"
] | permissive | tgeral68/OpenNIR | f1d8361c1543fda401386ee5d87ecb14766c16da | 225b26185bd67fdc00f24de3ef70d35768e22243 | refs/heads/master | 2023-02-27T02:06:28.357884 | 2021-02-08T16:22:09 | 2021-02-08T16:22:09 | 327,644,600 | 0 | 0 | MIT | 2021-02-08T15:55:28 | 2021-01-07T15:03:22 | null | UTF-8 | Python | false | false | 16,788 | py | import os
import tarfile
import contextlib
import functools
from glob import glob
from multiprocessing import Pool
from pytools import memoize_method
from bs4 import BeautifulSoup
import onir
from onir import datasets, util, indices, log, config
from onir.interfaces import trec, plaintext
logger = log.easy()
_HELD_... | [
"sean.macavaney@gmail.com"
] | sean.macavaney@gmail.com |
803fd511cf8216badd7699cc5ab9371a42411d21 | e863d44139f345eb256847a133b14966c3a81148 | /work/lastSubString.py | 95b9cbe706cfa5524c750ae00f502b97e28ea9ac | [
"MIT"
] | permissive | sreeaurovindh/code_sprint | 4d8b4fbce753e4ae463e0a0f2bd730ba91649dc7 | 4c37becbdfb49d5b8f942190006c2d27769da282 | refs/heads/master | 2021-05-01T15:50:59.975559 | 2020-12-30T04:32:57 | 2020-12-30T04:32:57 | 121,039,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #https://leetcode.com/problems/last-substring-in-lexicographical-order/discuss/369191/JavaScript-with-Explanation-no-substring-comparison-fast-O(n)-time-O(1)-space.-(Credit-to-nate17)
def lastSubstring(input):
start = end = 0
skip = 1
while (skip+end) < len(input):
if input[start+end] == inpu... | [
"sree@Srees-MacBook-Pro.local"
] | sree@Srees-MacBook-Pro.local |
536e8eda7de1c4a381f2c709fa56729cfbf19ee7 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /native_client_sdk/src/build_tools/tests/verify_filelist_test.py | 2e01da1c93e9b3e5b6743a0e4d6f71f712de429d | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 3,854 | py | #!/usr/bin/env python
# Copyright (c) 2013 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 os
import sys
import unittest
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
BUILD_TOOLS_DIR = os.path.dirname(SCR... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
acc27c596245e4d7cc567d15066edcddd718ffee | eae5c9829e1ed45f8761379d0fc88216ecc884bf | /mainapp/templatetags/specifications.py | 80da9ad96dac257688f9e80e737279dfef4258e9 | [] | no_license | wildmaus/shopN | e125ca54c9fc6f77ae255b8c2295a189ec24f944 | b5f44604f9eef4e1842330482251f4051c034ac2 | refs/heads/master | 2023-08-24T13:35:14.851996 | 2021-11-02T09:47:16 | 2021-11-02T09:47:16 | 325,253,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | from django import template
from django.utils.safestring import mark_safe
from mainapp.models import Smartphone
register = template.Library()
TABLE_HEAD = """
<table class="table">
<tbody>
"""
TABLE_TAIL = """
</tbody>
</table>
... | [
"tagilmaus@gmail.com"
] | tagilmaus@gmail.com |
c1e2c8f2be5494462cd1924e83a6c93983a158ce | 9e9e0985789b51210c7fe315ae98949de8b23469 | /vyper/semantics/analysis/base.py | 449e6ca33884f5ad3fe588a64274abbbb3cdb0fa | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | vyperlang/vyper | ea614230edccf3424aad746f66874e1f32c55c57 | 158099b9c1a49b5472293c1fb7a4baf3cd015eb5 | refs/heads/master | 2023-08-30T02:18:48.923346 | 2023-08-27T02:59:27 | 2023-08-27T02:59:27 | 73,461,676 | 2,359 | 469 | NOASSERTION | 2023-09-14T13:05:24 | 2016-11-11T08:56:41 | Python | UTF-8 | Python | false | false | 8,346 | py | import enum
from dataclasses import dataclass
from typing import Dict, List, Optional
from vyper import ast as vy_ast
from vyper.exceptions import (
CompilerPanic,
ImmutableViolation,
StateAccessViolation,
VyperInternalException,
)
from vyper.semantics.data_locations import DataLocation
from vyper.sema... | [
"noreply@github.com"
] | noreply@github.com |
0d6361a1c0ab589a30c8857539292b0ea2ba6f17 | 43dabf77afd5c44d55b465c1b88bf9a5e7c4c9be | /drawing_random_circles.py | be298cbf90b23e67ea008144b485fca1b94b056c | [] | no_license | geegatomar/OpenCV-Computer-Vision-Adrian-Rosebrock | cc81a990a481b5e4347dd97369b38479b46e55bc | daa579309010e6e7fefb004b878ffb26374401d0 | refs/heads/master | 2022-11-18T13:07:08.040483 | 2020-07-20T01:55:39 | 2020-07-20T01:55:39 | 280,987,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import cv2
import numpy as np
# drawing 25 random circles
canvas = np.zeros((400, 400, 3), dtype="uint8")
for i in range(25):
radius = np.random.randint(180) # will generate random radius value between 0 and 100
centre = np.random.randint(0, 400, size=(2, ))
color = np.random.randint(... | [
"geegatomar@gmail.com"
] | geegatomar@gmail.com |
b02b27006734f133f41bee3ab8a81bc2992bd3f2 | d74f4d0ba3bb3c76813fe6d765106a1036404c49 | /Roblox2021_HackerRank/q3.py | e2d904a4e0a628a49b73b05eb771e212cab6b09f | [] | no_license | TahaKhan8899/Coding-Practice | 235ed05f0233f02ee9563aad374bcef456d4e1d8 | 29bee7e09d7b6c25b536775ad4257ea09ed202c5 | refs/heads/master | 2021-10-20T10:37:30.679328 | 2021-10-07T14:40:23 | 2021-10-07T14:40:23 | 175,536,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | #
# Complete the 'compressWord' function below.
#
# The function is expected to return a STRING.
# The function accepts following parameters:
# 1. STRING word
# 2. INTEGER k
#
def compressWord(word, k):
stk = []
for i in range(0, len(word)):
if len(stk) == 0:
charFreq = [word[i], 1]
... | [
"khant21@mcmaster.ca"
] | khant21@mcmaster.ca |
24040a1b52951cb5c8894c540fa340873bbc9d93 | 2b42629e41c2473658335a0b750308fbb6e08249 | /app/model/fit_model_vector.py | feafcb8887512958be91f9f74bb7eecc397817c1 | [] | no_license | letotefrank/nlp-sim | 4bb163f099e1e43cf43e3ac56badcff790223e5d | 314f9dd822f87256bc679ef11861daa9815da4da | refs/heads/master | 2020-03-28T12:29:41.578013 | 2018-11-30T07:38:25 | 2018-11-30T07:38:25 | 148,303,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | from fastText import train_unsupervised
import config
import os
import json
import itertools
from app.model.data_process import data_process
def fit():
'''
fastText训练语料库,save:local_model.bin;利用 预处理和分词 后的pre_data.txt 训练 sentence-vector
:return: fit result
'''
# 数据预处理。返回 id_url_df 用于结果拼接(id,url)
... | [
"frank.li@letote.cn"
] | frank.li@letote.cn |
d04ae994a53ff06417f846f19c0403d3bc065f10 | e5d83ede8521027b05d9b91c43be8cab168610e6 | /0x0B-python-input_output/1-number_of_lines.py | 1dfc5fcc64012fcf583f7f599a0cd5e13d80cbb1 | [] | no_license | Danielo814/holbertonschool-higher_level_programming | 8918c3a6a9c136137761d47c5162b650708dd5cd | 832b692529198bbee44d2733464aedfe650bff7e | refs/heads/master | 2020-03-28T11:09:00.343055 | 2019-02-22T03:33:54 | 2019-02-22T03:33:54 | 148,181,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | #!/usr/bin/python3
"""
1-number_of_lines module
"""
def number_of_lines(filename=""):
"""
returns the number of lines of a text file
"""
numlines = 0
with open(filename, 'r', encoding='utf-8') as f:
for line in f:
numlines += 1
return numlines
| [
"211@holbertonschool.com"
] | 211@holbertonschool.com |
10b90cedd70c0f884a769e49b3708e09ff50e374 | a1ae058be4e115fc943f4a97ff20bc6d9578b4e7 | /checklist/views.py | e9c8aa0d45aa25224212a043435508d0526a3dc1 | [] | no_license | twagner000/tristanwagner | 141925784e7b5f2aa0c2d1e5c945cf53bdcb0740 | e1b0d523831659a58a172b3ab5fe2ffebab04890 | refs/heads/master | 2023-01-04T19:41:41.044650 | 2019-10-03T06:56:00 | 2019-10-03T06:56:00 | 39,306,731 | 1 | 0 | null | 2023-01-04T07:54:11 | 2015-07-18T17:30:52 | Python | UTF-8 | Python | false | false | 2,060 | py | from django.shortcuts import render, get_object_or_404, redirect
from .models import Checklist, AnsweredChecklist
def index(request):
checklist_list = Checklist.objects.all()
return render(request, 'checklist/index.html', {'checklist_list': checklist_list})
def take(request, checklist_id):
checklist = get... | [
"twagner000@users.noreply.github.com"
] | twagner000@users.noreply.github.com |
2af51abc842ea604d18e6b1ee94c111c9bc35cb8 | d35c58b7ff808537dc7edb47606dd2cc2253dbdc | /hometask3/hometask3.py | 8fb6d0bcd29ed5bbb9dce89d2bd9cb508aa926be | [
"MIT"
] | permissive | karotkin/hometasks | e5f043d299043e949c3ed9e70213426785da917e | 709d51f89a70b5b2146ecfd7b33e0fea41a8b24c | refs/heads/master | 2021-01-21T08:36:54.600877 | 2016-08-25T13:10:21 | 2016-08-25T13:10:21 | 66,083,066 | 0 | 0 | null | 2016-08-19T13:08:27 | 2016-08-19T13:08:26 | null | UTF-8 | Python | false | false | 3,432 | py | #!/usr/bin/python
import psutil
import datetime
import configparser
import time
import json
import schedule
config = configparser.ConfigParser()
config.read('config.ini')
timeint = config.get('setup', 'int')
filetype = config.get('setup', 'filetype')
snapshot = 1
# CPU_Load
cpu_usage = psutil.cpu_percent(interval=1... | [
"“yaroslav909@gmail.com”"
] | “yaroslav909@gmail.com” |
ce3a6f33c2f5edf47d8f33c41751a788409d2fad | 1c6bbd9223dce3f40765cb097e2d40a770c26319 | /myenv/Scripts/django-admin.py | 54b9f159656458777fce053021a294542693f12e | [] | no_license | db237/my-first-blog | a1521082b442a02f0491b1322c3b9c3ec3f2142e | a1e469d9e82fcd1a3d214e6fc7f429ffe2354fda | refs/heads/master | 2022-12-09T20:34:28.741319 | 2020-08-19T18:19:18 | 2020-08-19T18:19:18 | 288,805,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #!c:\users\dev bhati\djangogirls\myenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"devbhati2307@gmail.com"
] | devbhati2307@gmail.com |
5bbdc724ce248b43af1343eeccc75057631580a6 | c2e7648fca2aebc9577b26b411b0da10609da3f5 | /Pb_policy_iteration/cart_pole_modified_env/reproduce_FHCP_results/modified_algo/parameter_config_6.py | de351ae624e309c2014e04efafb2db15a7dec42a | [] | no_license | PandulaP/RL_Research | c3a6d42b6b3dad52b7c8758cd853cfb6cd638c28 | 8170206ef9ad2c42d690b8cf2f90a9bded7c9418 | refs/heads/main | 2023-06-14T22:04:35.216509 | 2021-07-02T07:05:02 | 2021-07-02T07:05:02 | 318,289,678 | 1 | 0 | null | 2023-01-03T13:43:04 | 2020-12-03T18:51:49 | Jupyter Notebook | UTF-8 | Python | false | false | 40,403 | py | #######################################
### Tested Parameter Configurations ###
#######################################
CONFIGS = {'S': [100]
, 'Actions' : [3]
, 'Roll-outs': [20]
, 'Significance' : [0.025, 0.05, 0.1]
}
########################################
### importing th... | [
"pandula2011@gmail.com"
] | pandula2011@gmail.com |
c68086f3cfc0a8c4d58bddae6939012e5f5d8e4b | 5cf4bcc45a2b755684a328fb6d99096d27ff506b | /M5HW2_McMillanChristian.py | d462294dfdfbd12da6cda1eb19666c1b5b8d75c5 | [] | no_license | meekmillan/cti110 | 6f6e34fb0e94be51788c07e2498ef14dbf1cdf4e | 7da0e4ce741ec2dda2fdab343246ad7d896ef04c | refs/heads/master | 2021-08-28T16:18:59.434491 | 2017-12-12T18:12:10 | 2017-12-12T18:12:10 | 104,909,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | #CTI-110
#M5HW2 - Running Total
#Christian McMillan
#10/24
#This program will calculate a running total
# Initialize
total=0
newNum = int (input( "Enter a number?: "))
# Enter loop
while newNum >=0:
total +=newNum
newNum = int (input( 'Enter a number?: '))
# Print end of loop total
print("Total: ",total)
| [
"noreply@github.com"
] | noreply@github.com |
9a6669dbb8aa1d8739a39c14d383548d2e889676 | 557d75e6dfb42c881d4df73950c41935635f2162 | /preprocessing/recon_all.py | d9bf4632fb59ca40f6606a9db0ddc41864471963 | [] | no_license | sssilvar/multiple-sclerosis | e6139558249f00a882ffeb9d4b82ac323a50ec96 | a2e1e97e1297d45c2b84c5c57b372eee26047941 | refs/heads/master | 2020-06-05T00:09:04.781033 | 2019-07-13T23:15:00 | 2019-07-13T23:15:00 | 192,245,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | #!/bin/env python3
import os
import glob
from multiprocessing.pool import Pool
from os.path import join, isdir, basename
def recon_all(vol_file):
sid = basename(vol_file).split('_')[0]
t2_file = vol_file.replace('T1Wreg.nii.gz', 'T2Wreg.nii.gz')
cmd = f'recon-all -i {vol_file} -T2 {t2_file} -s {sid} -sd {... | [
"sssilvar@unal.edu.co"
] | sssilvar@unal.edu.co |
5b2adb99ac1c7f639cd70f0a78682b1b33699973 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/292/85489/submittedfiles/testes.py | 8470e2323f37fdef8789f886efdda325a1056e93 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
import datetime
n=date.today()
print(n) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5af30a2b0dea4f99b3e6d50ab17ef88efd55dbee | 43aac8bd31c412e2eccd24d65a349e535c1c4508 | /models/graphunet.py | a0323d9537794ed8b9e8cff92591df046d780b9e | [] | no_license | Spj-Zhao/HOPE | d7145f22141e0182d86650b27b617f169ebd13c9 | 24f99bb6c4f1d3e185e8988179347dde5c37f42c | refs/heads/master | 2022-12-27T08:57:30.052335 | 2020-10-01T15:16:54 | 2020-10-01T15:16:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,585 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.parameter import Parameter
import numpy as np
class GraphConv(nn.Module):
def __init__(self, in_features, out_features, activation=nn.ReLU(inplace=True)):
super(GraphConv, self).__init__()
self.fc = nn.Linear(in_f... | [
"bdoosti@iu.edu"
] | bdoosti@iu.edu |
b8f2c3b12f8e50b050374859c2cd7f0411825d78 | 2a4dc7f112b14bd336e343af3cd83232bba6ca4c | /telethon_add_to_group.py | 84cddc3ccf3c0be92d4d717c310c3d4f784c6d39 | [] | no_license | NdibeRaymond/telethon | 594b9ce3dc4de0ec1d81080ade99a3c7bca708f9 | 6fe1a26bb54addeb94bc0fe7bca28f2d086c0d5b | refs/heads/master | 2022-12-15T07:31:39.181468 | 2020-09-19T17:38:17 | 2020-09-19T17:38:17 | 296,770,807 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,977 | py | from telethon.sync import TelegramClient
from telethon.tl.functions.messages import GetDialogsRequest
from telethon.tl.types import InputPeerEmpty, InputPeerChannel, InputPeerUser
from telethon.errors.rpcerrorlist import PeerFloodError, UserPrivacyRestrictedError
from telethon.tl.functions.channels import InviteToC... | [
"noreply@github.com"
] | noreply@github.com |
3f7c090f4bee5ac6ad1794ca0676a0e4b8056d8e | e5fa58651bfd550ca79cfbdddbde6b570d6041e8 | /Chapter 5/tango_with_django_project/tango_with_django_project/urls.py | 4a51e4ce0cba6076c16d4266be4ebfc05eabbc62 | [] | no_license | ellieleep/tangowithdjango | 7dc6a3298c7978b5b7c8dacfd5d7aba270d53672 | 3bb7600be31f2f07f702104d5bf8805f7b2d0a1c | refs/heads/master | 2023-07-15T08:11:49.326139 | 2021-08-19T19:14:26 | 2021-08-19T19:14:26 | 390,139,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | """tango_with_django_project 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='... | [
"32715340+ellieleep@users.noreply.github.com"
] | 32715340+ellieleep@users.noreply.github.com |
c1fb632462fb073565ae995962ae392db45905b3 | a411a55762de11dc2c9d913ff33d2f1477ac02cf | /lte/gateway/python/magma/mobilityd/subscriberdb_client.py | 1fec443db1956ef872a11cfbc3a1d98d7a4c2e0f | [
"BSD-3-Clause"
] | permissive | magma/magma | 0dc48c1513d9968bd05fb7589f302c192b7c0f94 | 0e1d895dfe625681229e181fbc2dbad83e13c5cb | refs/heads/master | 2023-09-04T09:31:56.140395 | 2023-08-29T13:54:49 | 2023-08-29T13:54:49 | 170,803,235 | 1,219 | 525 | NOASSERTION | 2023-09-07T17:45:42 | 2019-02-15T04:46:24 | C++ | UTF-8 | Python | false | false | 6,221 | py | """
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES O... | [
"noreply@github.com"
] | noreply@github.com |
22a47b9290477f745fd0080eea00f78909aa3193 | 3445a1ea3ee67b03cff101ff8fdb4fedf9ba9a36 | /sql_queries.py | 191dd58c78933bc1e26acdbc41bf18252cab44dd | [] | no_license | DnyanadaArjunwadkar/Udacity-Data-Engineer-ND | c0d373f0a1da04084dd6f52b6b34017ae9cebc0b | e22151c031b7f3c76647a94f02364bfa98a4b88c | refs/heads/master | 2020-05-31T12:37:24.351126 | 2019-06-04T22:12:12 | 2019-06-04T22:12:12 | 190,285,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS song_plays"
user_table_drop = "DROP TABLE IF EXISTS users"
song_table_drop = "DROP TABLE IF EXISTS songs"
artist_table_drop = "DROP TABLE IF EXISTS artists"
time_table_drop = "DROP TABLE IF EXISTS time"
# CREATE TABLES
songplay_table_create = ("""CR... | [
"noreply@github.com"
] | noreply@github.com |
74ff9da07d0e3ef8fc39177aaef0c51a8f5fabb6 | 641357069b54b5044aff093e8fdce50fa5dde34b | /mod_02_globals_and_locals.py | a8d56af04676abe43d71b70ee435e8c63f9a97f8 | [] | no_license | jorgevila/decorators | 559000eff7c5fc084fbaa3f530386e70faf0558e | f73ede2f4d4d29d0918fb9127f343d534d2a1f51 | refs/heads/master | 2021-01-15T23:30:50.289603 | 2015-07-24T08:41:28 | 2015-07-24T08:41:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,782 | py | #===============================================================================
# MOD 02: global, globals and locals
#===============================================================================
# Let's continue with a small exercise before diving into scopes and namespaces
#====================================... | [
"pablo.enfedaque@skyscanner.net"
] | pablo.enfedaque@skyscanner.net |
b350f1f0416822ef956cae7c7a8e285fdeae380a | 2d1649a7a00d49b72ed7e53afa4abb3c9281ce03 | /.history/ParticleFilter/go_to_goal_20190421181756.py | fa5c4dea237b41fd8aea882ecec9f2e1f521c0ff | [] | no_license | joshzhang5/CS3630Lab6 | 9547dc6c89198e9bb4aebd8359d4feb974082d20 | 69e6df12829e18a211ae850236d74b4d728046ef | refs/heads/master | 2020-05-15T13:59:51.906195 | 2019-04-22T18:21:42 | 2019-04-22T18:21:42 | 182,317,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,240 | py | # Jiaxi Zhang
# George McAlear
# If you run into an "[NSApplication _setup] unrecognized selector" problem on macOS,
# try uncommenting the following snippet
try:
import matplotlib
matplotlib.use('TkAgg')
except ImportError:
pass
from skimage import color
import numpy as np
from numpy.linalg import inv... | [
"josh@lawn-143-215-110-217.lawn.gatech.edu"
] | josh@lawn-143-215-110-217.lawn.gatech.edu |
eabb7322a1743993a880d4cad03011ddb2915ea7 | 5f57c3b3e62598a810696eebfe1a5b637dcd45a3 | /Custom calling.py | 7f1db2abdf7e348da2e7517dfbaf870bbbece706 | [] | no_license | k1k2k311/HLA-combined | 37d3f276a67dd8b831f4f2e6f155aedc6ac24201 | eb433aaa76ddda3b4883b8f80dd3d6214ca84b57 | refs/heads/main | 2023-07-01T00:33:26.427104 | 2021-07-03T07:54:31 | 2021-07-03T07:54:31 | 381,877,700 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | # "data" format should be an allele list of results from various tools [2420,3303,2420,4404]
# "hla" should be either "A","B" or "C" (hla type)
# model_acc.csv = ( 100- accuracy rate) %
# Searching most frequent value
def frequent(list):
count = 0
no = list[0]
for i in list:
curren... | [
"noreply@github.com"
] | noreply@github.com |
59d74395b97e83d72ba4ba294b668e324f777e81 | c24e122c5f39896074a11664f521bc0258068675 | /src/Utils/ProcessCommunicator.py | 1af5f2e8a533a4816edbf7d3bf6d4eb1c3d355cf | [] | no_license | sjanibekova/selector_explorer_windows_desktop | 51c61adfdb7ca94e3e3eedab49bff1e9bf950027 | 04c1d47b7af23ac4cba3442fb736a90b827998f0 | refs/heads/main | 2023-07-08T20:04:10.448805 | 2021-08-12T11:18:57 | 2021-08-12T11:18:57 | 393,403,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,899 | py | import json
import zlib
import sys
from . import JSONNormalize
############################################
####Межпроцессное взаимодействие
############################################
#ProcessParentReadWaitString
def ProcessParentReadWaitString():
#Выполнить чтение строки
#ctypes.windll.user32.MessageBoxW(0... | [
"sdzhanybekova@seikolabs.kz"
] | sdzhanybekova@seikolabs.kz |
e25ef82fd5e2f90d8835e797672d42b0e20ae461 | b62f99db3bccf932aaa4885257ecc3d30596df59 | /OFDM/PAPR reduction/PAPR (single carrier).py | 381df597e0f90ecdacb2386734d19512f573b9aa | [] | no_license | ganlubbq/communication-simulation | 00cb36ae0f3dfc3ea042dfcb77da0795d5140ad7 | 4dfbfc229ff1ac3bcfaa6b32db958c35a7a5e6d8 | refs/heads/master | 2021-07-26T17:23:47.212096 | 2017-11-07T10:27:48 | 2017-11-07T10:27:48 | 110,319,362 | 1 | 1 | null | 2017-11-11T04:59:23 | 2017-11-11T04:59:22 | null | UTF-8 | Python | false | false | 6,046 | py | import numpy as np
import matplotlib.pyplot as plt
Ts = 1 # 正常情況的取樣周期,同時傳送端也會每個Ts送一個symbol
L = 8 # oversampling factor
Fs = 1/Ts * L # 取樣頻率 (乘上L是因為過取樣(oversampled)的原因)
Fc = 1 # 載波頻率
for k in range(3):
if k == 0:
constellation = [-1+0j, 1+0j]
constellat... | [
"a5083a5083@gmail.com"
] | a5083a5083@gmail.com |
b6ce5d0d5ecec1d02a42b40f0d1e9f4ca9fab2e9 | dd8bf0fa2f8b0dda9e91790b066bfd8e419bbb86 | /candidate/views.py | 8bcbf0dd9b5e147cc07fde56d8a2575481bad1a0 | [] | no_license | devanshbhatia26/CVPrioritize | 3a73518d8fbbdf81d744ca3673f73322d7215e94 | d86ae12498e803c91933f0d7be0c3b2e54c599ca | refs/heads/master | 2023-02-18T14:57:20.979087 | 2018-08-09T10:58:32 | 2018-08-09T10:58:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,411 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from datetime import datetime
import json
from django.shortcuts import render, reverse
from django.http import HttpResponse, HttpResponseRedirect
from .models import Candidate, UploadFileModel, Application
from .forms import EditDetails, UploadFile
from d... | [
"dbhrockzz1@gmail.com"
] | dbhrockzz1@gmail.com |
873fd33b792017d4797bb0d1acbb046e82beacde | 26f8a8782a03693905a2d1eef69a5b9f37a07cce | /test/test_destiny_historical_stats_destiny_historical_stats_period_group.py | 54f3aa5d3731b9a1cb0a50764667212af0aef180 | [] | no_license | roscroft/openapi3-swagger | 60975db806095fe9eba6d9d800b96f2feee99a5b | d1c659c7f301dcfee97ab30ba9db0f2506f4e95d | refs/heads/master | 2021-06-27T13:20:53.767130 | 2017-08-31T17:09:40 | 2017-08-31T17:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | # coding: utf-8
"""
Bungie.Net API
These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
OpenAPI spec version: 2.0.0
Contact: support@bungie.com
Generated by: ... | [
"adherrling@gmail.com"
] | adherrling@gmail.com |
55f6a7da71eeddea31816626e8b0ee0545b8b523 | 65d165179b1a497fcb654e69ab3d4830fcec0644 | /cogs/owner.py | 316c82881895d1c65cffc94fdb89b0251be4ab57 | [] | no_license | Haz1118/Discord_self_Bot | 04addbb3169621b3b3c13c7d09a5455121e107ee | 5101e8b1d8857f1af4ea21f02c7ab289ef087706 | refs/heads/master | 2021-04-08T13:36:21.996359 | 2020-03-20T15:06:40 | 2020-03-20T15:06:40 | 248,780,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | import discord
from discord.ext import commands
import asyncio
class Owner(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
@commands.has_permissions(manage_messages=True)
@commands.guild_only()
async def 청소(self, ctx, num: int =1):
await ctx... | [
"noreply@github.com"
] | noreply@github.com |
c3e597348ecd704038d52109bd25c04c2baf9da0 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc003/D/4547211.py | 6a0acb9b36e11c97948531a48a505d78d41e9f86 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | mod = 10**9 + 7
def powmod(x, n):
ret = 1
while n > 0:
if n & 1:
ret *= x; ret %= mod; n -= 1
else:
x *= x; x %= mod; n >>= 1
return ret
fact = [1 for _ in range(1000)]
revfact = [1 for _ in range(1000)]
def setfact(n):
for i in range(n):
fact[i+1] = fact[i] * (i+1); f... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
f740a1d550dbe236f23cb79de7deffe6e5213387 | a2195e150561bfe5c025c3883be144aa173f36a8 | /pyimagesearch/nn/perceptron.py | 324afe4622b9f39c505b036fb4e3a5e060eaf058 | [] | no_license | s0lver/ann-katas | 0aab3f2a1396dd10a696df60c49feebcc174b632 | cccb605f292cb6a487c86efaa2b1a01eafe76830 | refs/heads/master | 2020-03-25T01:07:19.041950 | 2018-08-13T02:42:09 | 2018-08-13T02:42:09 | 143,222,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | import numpy as np
class Perceptron:
"""
Class that models the Rosenblatt perceptron
"""
def __init__(self, input_dimensions, alpha=0.1):
"""
Creates a Perceptron instance
:param input_dimensions: The dimensions of the input data (number of features))
:param alpha: The... | [
"rperez.github@gmail.com"
] | rperez.github@gmail.com |
c29ff1701a3bfbca5682d464670a0183a3517f7b | 8882bfe78b3a6e5d022f81c86512b22f851d9dc8 | /tgflow/TgFlow.py | ffb115f18b4e9744371863b4ed3007956ddc5bbd | [
"MIT"
] | permissive | inexcode/tgflow | 5600fa4040d30157daf6d2ad5fe8d625ac64789d | e7bbd7df87e7a711c1b2924f3f2ae909fb2086c5 | refs/heads/master | 2020-03-29T10:19:39.405683 | 2018-09-21T18:13:30 | 2018-09-21T18:13:30 | 149,799,442 | 0 | 0 | null | 2018-09-21T17:59:23 | 2018-09-21T17:59:23 | null | UTF-8 | Python | false | false | 6,673 | py | #import telebot
import hashlib
from enum import Enum
from . import handles
from . import render
import pickle,time
from .api.tg import telegramAPI
import pprint
pp = pprint.PrettyPrinter(indent=4)
action = handles.action
api,key = None,None
def_state = None
def_data= None
States = {}
UI = {}
Data = {}
Actions = {}
K... | [
"lkv97dn@gmail.com"
] | lkv97dn@gmail.com |
fb8634a4c603789431dd34afcdb2ed4356e85859 | f23947b7531aa2ceae3e8444edc570b845362818 | /pygamess/pygamess.py | 6ecc75bb56ba96c5ec9ad0f7751952ed3e7639c8 | [] | no_license | andrepd/gamess | 8b581ad5aae4931274a42b5006a68966be84ff55 | 9365f4caedb300b8707be72ff8b32bcc2d51a9c8 | refs/heads/master | 2018-01-08T14:41:27.540722 | 2016-03-12T03:15:54 | 2016-03-12T03:15:54 | 51,661,161 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,566 | py | import sys
import os
sys.path.append('./lib')
sys.path.append('./data')
from gamin import gamin
from basis_list import basis_list
if(len(sys.argv)!=3):
print "Usage: python "+sys.argv[0]+" infile.pygam outfile.inp"
sys.exit()
test=gamin(sys.argv[1])
#DFT
functional={}
functionaldata=open("./data/xcfunctional... | [
"marcosgouveia13@gmail.com"
] | marcosgouveia13@gmail.com |
a0cb28bad70fcd7e7477f099e1ce87cedae8050d | f33b30743110532ddae286ba1b34993e61669ab7 | /比赛/力扣杯2020春季全国编程大赛/1.py | dff7e2ce6da1326a6dd9870c6a3b18e8dfb798d9 | [] | no_license | c940606/leetcode | fe9dcee7a5daa4d52999d5f53253dd6dd33c348b | 631df2ce6892a6fbb3e435f57e90d85f8200d125 | refs/heads/master | 2021-07-10T14:01:26.164966 | 2020-08-16T10:46:16 | 2020-08-16T10:46:16 | 186,588,449 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | from typing import List
import collections
a = Solution()
print()
| [
"762307667@qq.com"
] | 762307667@qq.com |
a76cfb7955e09eef938a7627cc74429d43d652ef | 35ccd03ab2deca4802b1e5bc48408a21d06ba6a7 | /word_embed.py | ada2bf5c4bb22b8a41c937ca9119d95db5d17208 | [] | no_license | Allen-Wu/CS394N-Project | 9f328b055c8a950ffeb69c43545f6aa66cd14bec | 294c920f432a0c422c2ba9ccbfbd5d747e9c049f | refs/heads/main | 2023-01-30T07:10:29.346015 | 2020-12-12T23:42:20 | 2020-12-12T23:42:20 | 312,946,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,857 | py | import numpy as np
import csv
import transformers
import tensorflow as tf
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.model_selection import train_test_split
from transformers import BertTokenizer
import model
words_list = []
wo... | [
"shiyuwu@umich.edu"
] | shiyuwu@umich.edu |
66e384d968761a60e6fb3cf12522ac49e6c0e794 | 10e67ea36c018d0caa0e169ee5a71464d7e2ad29 | /myprojectenv/Scripts/django-admin.py | 50d8f4553aeb7c61d472cbf415d8276c53ed6764 | [] | no_license | nikharj7/iBlog | ca7d68d11b90d6cb4bea70047a5eddab48cf5c14 | 637238851932d901b8f16f2160368efc8c8fbf2c | refs/heads/main | 2023-02-06T05:04:36.884114 | 2020-12-28T19:17:55 | 2020-12-28T19:17:55 | 320,803,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | #!c:\users\nikha\desktop\blog\myprojectenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"nikharj7@gmail.com"
] | nikharj7@gmail.com |
e9c2b8cd6f09b728d9ba53ba44af92899b6be039 | 6ab13b962c99523c12f52b7b99723cf470dfd504 | /0x02-python-import_modules/2-args.py | fcfdc066e3da2eb6727ad55f2f1d3ed506948cb1 | [] | no_license | OctaveC/holbertonschool-higher_level_programming | db4522a73c39a31a29d2e8190200cd6733019e13 | 350735ec7077647a25077ad24727c7f644eaf2d7 | refs/heads/main | 2023-08-18T03:48:17.535787 | 2021-09-23T01:05:47 | 2021-09-23T01:05:47 | 361,696,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #!/usr/bin/python3
if __name__ == "__main__":
import sys
for argv in range(len(sys.argv)):
if (argv == 0):
if (len(sys.argv) == 1):
print("0 arguments.")
elif (len(sys.argv) == 2):
print("1 argument:")
else:
print("{} arguments:".format(len(sys.argv)... | [
"octavec@outlook.com"
] | octavec@outlook.com |
b993b3230a55f5fd587e1ba760952deb2b9114a7 | 73744088a38ba3938563dc57677e3c4b6814e3d6 | /commands/pause.py | e8b1b7004998c5184033bb2c8377979a8ca2be90 | [
"BSD-3-Clause"
] | permissive | roman-kachanovsky/cmd.fm-python | 76ed6a4f4da20c2ef7e6d4d9c1bee207b416f151 | 3365a9b26bc272fe7a11b404b74cd1920bd72d31 | refs/heads/master | 2021-01-19T00:29:59.902473 | 2017-05-05T13:30:21 | 2017-05-05T13:30:21 | 87,176,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from __future__ import unicode_literals, absolute_import
from .base import Command
from utils.colorize import colorize, Colors
class Pause(Command):
name = 'pause'
pattern = 'pause'
example = ('pause',)
description = 'Pause playback.'
@staticmethod
def handle(self, *args):
if self.pl... | [
"roman.kachanovsky@gmail.com"
] | roman.kachanovsky@gmail.com |
5fe4c7ed46fc6342f89f21baa980a8b8f0c9a22a | a814debee728e59a7a10d8c12b92c1f3ee97e19d | /Cadeias/Questao01.py | 5a06773ddc2a07e94da38507662ab3bf4ae50ea1 | [] | no_license | PedroVitor1995/Algoritmo-ADS-2016.1 | 0ee034d2f03b29d3c8177fb3402f7aeae08d07cf | 8e3b6dfb0db188b9f5d68dcb8619f6636883ab89 | refs/heads/master | 2021-01-01T15:51:56.636502 | 2017-07-19T13:47:36 | 2017-07-19T13:47:36 | 81,328,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #__*__ encoding:utf8 __*__
"""1. Faça a criptografia de uma frase digitada pelo usuário. Na criptografia, a frase deverá ser invertida e as
consoantes deverão ser substituídas pelo caractere #."""
def main():
frase = raw_input('Digite uma frase: ')
consoantes = 'BCDFGHJKLMNPQRSTVXYWZbcdfghjklmnpqrstvxywz'
for... | [
"noreply@github.com"
] | noreply@github.com |
f5e3ef2dd23127bdafeb35e907d3692943c20b20 | 3c5ec7efc413bcbfd930ad2fe0de2ce873d98b87 | /wordcount/urls.py | 8dea4f12cba6059907a74f29721e92012f62291e | [] | no_license | pythonstudy0708/wordcount-project | 75c0be909e3e3bbd5b5cb582c125210e3e7bdd7e | c76e9290bc15fe8cdd9e042ce87d0928cc3734ee | refs/heads/master | 2020-03-29T01:28:57.262645 | 2018-09-19T04:14:47 | 2018-09-19T04:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.homepage, name='home'),
path('count/', views.count, name='count'),
path('about/', views.about, name='about'),
]
| [
"python.study.0708@gmail.com"
] | python.study.0708@gmail.com |
f86cca745638f0ae4f6c7c24b5a49c2942f72fda | 356c2be7861c53cb058e04e983bd04ebcb0e4ef7 | /Python-100-Days-Of-Code/Python Code Exercises/main 2.py | de5aa8a49030160bbd280d2fe23408d967747197 | [] | no_license | HyperMG/Python-100-Days | 62c12dd5e5f6aca508539f9b8bd7064026817fff | 409deb295b8094b0d7b1968574a17ac2987edfdb | refs/heads/main | 2023-08-08T04:46:52.308496 | 2021-09-18T12:11:12 | 2021-09-18T12:11:12 | 392,434,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | name = 'jack'
print(name)
name = 'Mahi'
print(name)
name = input('What is your name?')
length = len(name)
print(length)
| [
"noreply@github.com"
] | noreply@github.com |
374eb12b1ec6126e692a94315444e4a7bcf0621b | 4eaab9327d25f851f9e9b2cf4e9687d5e16833f7 | /problems/search_suggestions_system/solution.py | 47a2ff3a14f8b27c1b8af6d2a0b73ebff62b06d6 | [] | no_license | kadhirash/leetcode | 42e372d5e77d7b3281e287189dcc1cd7ba820bc0 | 72aea7d43471e529ee757ff912b0267ca0ce015d | refs/heads/master | 2023-01-21T19:05:15.123012 | 2020-11-28T13:53:11 | 2020-11-28T13:53:11 | 250,115,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | class Solution:
def suggestedProducts(self, products: List[str], searchWord: str) -> List[List[str]]:
products.sort() # time O(nlogn)
array_len = len(products)
ans = []
input_char = ""
for chr in searchWord:
tmp = []
input_char += chr
inse... | [
"kadhirash@gmail.com"
] | kadhirash@gmail.com |
4ef86e3b784b706086dad83933e4de1171ce7c67 | 26cae5bfec8dd416890714e095171c86eba9b521 | /0x16-api_advanced/2-recurse.py | 7d3893c192d0f843cf6e20da8d42e340a2a476fc | [] | no_license | hugocortesmu/holberton-system_engineering-devops | 58f1359bff9b97d2546e3d80f4b809557018824b | 59557c9a2424ebb4619397e3f49d6520312fb973 | refs/heads/main | 2023-08-03T13:51:53.440376 | 2021-10-09T02:56:23 | 2021-10-09T02:56:23 | 295,881,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #!/usr/bin/python3
""" module for function to return top 10 hot posts of a given subreddit """
import requests
import sys
after = None
def recurse(subreddit, hot_list=[]):
""" Args:
subreddit: subreddit name
hot_list: list of hot titles in subreddit
after: last hot_item appended to hot... | [
"hugocortesmu@gmail.com"
] | hugocortesmu@gmail.com |
480b22b1552952509a2e4c51d2fa8303ef6314d2 | 72579ed38872d8d752fe87dce87986635758563b | /tests/base_testcase.py | 4cecbcaffcd42700dde0fd99957a17377825c8d7 | [
"Apache-2.0"
] | permissive | devhub/cardisco | 8f58c8be430f6b1a8624dc18b937bc44d66edb57 | 05449e88958740b0e698373a8fc9acd3f1b94a28 | refs/heads/master | 2020-06-01T06:47:59.337460 | 2011-12-30T19:35:29 | 2011-12-30T19:35:29 | 3,076,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | # -*- coding: utf-8 -*-
# Copyright 2010 Mark Lee
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"dlrust@gmail.com"
] | dlrust@gmail.com |
9186c018173a5b0a44c6503fb95bc790c2898d4e | f3c4509c4f2830f5429058e0f324a9876654c2a9 | /sequbot_data/errors.py | 3c51604c38597b892baeadbb59f4c3a3974f9a76 | [] | no_license | phasnox/sequbot | 2482b65b1e4dd855d6c780fe54002affc21b88b0 | 86865383246c463028e263bf3a1e5fb6ba0134da | refs/heads/master | 2022-11-27T11:59:31.382355 | 2020-04-08T19:05:18 | 2020-04-08T19:05:18 | 254,175,116 | 0 | 0 | null | 2022-11-04T19:10:09 | 2020-04-08T18:58:11 | Python | UTF-8 | Python | false | false | 50 | py | class SocialAccountAlreadyExists(Exception): pass
| [
"phasnox@gmail.com"
] | phasnox@gmail.com |
d831169e024a98da203941639f6ffb0ea1e5e70c | 2c966de9274c3d432b66b876c57f6da174266a5b | /keras/utils/generic_utils.py | 32f5b96639ae1ec1f307f4184c2dd3a3cb98aa88 | [
"MIT"
] | permissive | ruizhang-ai/GCP | 72e34a038e2adab83b89556502d57c1e4e6ade8f | 7a0f30c6c3d732627fa269ce943c62a9005cc40f | refs/heads/main | 2023-08-06T22:41:10.661786 | 2021-09-27T16:03:04 | 2021-09-27T16:03:04 | 410,938,287 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,431 | py | """Python utilities required by Keras."""
from __future__ import absolute_import
import numpy as np
import time
import sys
import six
import marshal
import types as python_types
import inspect
_GLOBAL_CUSTOM_OBJECTS = {}
class CustomObjectScope(object):
"""Provides a scope that changes to `_GLOBAL_CUSTOM_OBJEC... | [
"ubuntu@bayudt1-new.localdomain"
] | ubuntu@bayudt1-new.localdomain |
b11b73d0f6d0548f2c0f073c85bd9cb2efbb7d01 | fa43f2da570e69440ab61bd5794e32622b289177 | /apps/login_reg/migrations/0001_initial.py | 0477742a6a49c98dfd18d710299ba10e66607197 | [] | no_license | ardenzhan/travel | 14d86885289ec5eb03523233b1f2335e6ac9a3e7 | f2a7836066d4e9b472dd28c5138a711a0c0a509e | refs/heads/master | 2021-08-19T07:09:18.248365 | 2017-11-25T04:22:37 | 2017-11-25T04:22:37 | 111,597,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-21 17:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',... | [
"arden@protonmail.ch"
] | arden@protonmail.ch |
007948663d69f619005fc8e3dd55d57ac8bf414b | a6858bdf10144e95076ad8da5bf817f18dcc4ed5 | /python/08p1.py | 3a70f52f898162e9f667056ca0dbfccab79ab3cd | [
"MIT"
] | permissive | dsumike/adventofcode | cbc0183c20965fd289b80972afd857220a60c9c5 | cd5e484fa162bada67625c3779580d77e87d1daa | refs/heads/master | 2021-01-10T12:18:40.032290 | 2015-12-23T22:51:49 | 2015-12-23T22:51:49 | 47,273,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | #!/usr/bin/env python
literal = 0
inmemory = 0
with open("../input/08.txt") as fileobj:
for line in fileobj:
line = line.rstrip()
literal += len(line)
# remove the outer " "'s, and decode the rest
inmemory += len(line[1:-1].decode('string_escape'))
print "literal: %d" % literal
print "in mem : %d" % inmemor... | [
"dsumike@gmail.com"
] | dsumike@gmail.com |
55ecd3989086e450eef41364aee966a64c5e9c46 | 4ee9094152009d4bcc08fd47b9e46cdbd25eadf1 | /src/test/update.py | 73cd91c08112f28267c7e42aa7edcc525da409b3 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | slaclab/central_node_engine | a2100f398e1595b8a06b493220040076d9ed3a64 | 272a48619395f663d88d95146f4a871b10a86889 | refs/heads/master | 2023-08-17T01:30:30.578524 | 2023-08-03T15:29:12 | 2023-08-03T15:29:12 | 85,611,819 | 0 | 2 | NOASSERTION | 2023-05-15T20:56:17 | 2017-03-20T18:27:07 | C++ | UTF-8 | Python | false | false | 5,758 | py | #!/usr/bin/env python
import socket
import sys
import os
import argparse
import time
#
# Input line:
#
# Input 0 ... Input 1
# bit bit ...
# 0 1 ...
# --- --- ...
# X X X X ...
# | | | |
# | | | + wasHigh
# | | +- wasLow
# | |
# | + wasHigh
# +- wasLow
#
def readFile(f, debug):
appData = bytearray()
appC... | [
"lpiccoli@slac.stanford.edu"
] | lpiccoli@slac.stanford.edu |
c66751d12e778467d78176d59d437fc89c8bee5b | afd9185976540033ccaa7c5a2607090ec0b3c48a | /heroHealthApp/migrations/0001_initial.py | e4077d93adb6bc257017d486bf32d877f4d7b5f6 | [] | no_license | lukijan98/Simple-Django-App | 4510824e17648046ff6bb5d604ec629e726a94d5 | 26947ca0cb9a03833a351306861be28d82c65b5e | refs/heads/master | 2023-08-21T21:20:35.320535 | 2021-10-17T10:31:15 | 2021-10-17T10:31:15 | 417,804,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | # Generated by Django 3.2.8 on 2021-10-15 14:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Config',
fields=[
... | [
"jelicl@ymail.com"
] | jelicl@ymail.com |
28eb9cf5f13dc05100ba9264f00df18331a9e5ba | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04030/s999899727.py | d1c7afb12be8ed4228e960b1a6e2e0f7fc222ea5 | [] | 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 | 164 | py | s=input()
fin=""
for c in s:
if c=='1':
fin+="1"
elif c=='0':
fin+="0"
else:
if len(fin)>0:
fin=fin[:-1]
print(fin)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d864b293e38504f4a6999312151c7b67dac4710d | fc8f76fa05deca2cc504170370d69c458ed499fe | /listings/urls.py | fed6b2a0217bc5a4a1c8116aa0c05adf7b22e4fb | [] | no_license | intelligentCoding/DjangoProject1 | 3e02eb0946e328634261ee3f87d77c3bb6677326 | 989407ad5724c0297963708ad4b9f553f913d5f8 | refs/heads/master | 2021-02-09T00:48:38.641093 | 2020-03-01T20:42:01 | 2020-03-01T20:42:01 | 244,217,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from django.urls import path
from . import views
urlpatterns = [
# home page
path('', views.index, name='listings'),
path('<int:listing_id>', views.listing, name='listing'),
path('search', views.search, name='search')
] | [
"kaaf_kaaf@hotmail.com"
] | kaaf_kaaf@hotmail.com |
b05c7f2697b02781d7a365257e25e20a392ec234 | 816fcaa344334f4b582ff0936b2b225b13e9d1fe | /Other Files/test.py | c9d6be9d92eb37ef9a7d74e7b2c4ac43532aa60f | [] | no_license | sdaless/psychic-carnival | 118c6f084c6581e40d89aeda2bbfab7498e19309 | a3721f1047bd6f6911327bed84638854b10d3bfa | refs/heads/master | 2021-09-16T12:32:37.114251 | 2018-06-20T16:56:21 | 2018-06-20T16:56:21 | 113,626,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | numBitcoins = float(input("How many DANK BITCOINS do you have: "))
numDollars = numBitcoins * 4450
print("That'd be", '{0:.2f}'.format(numDollars), " GREEN AMERICAN DOLLARS.") | [
"noreply@github.com"
] | noreply@github.com |
bb63b320769286448e7c3926ae41d07edfdb0f8f | dfd73d8b6fd6e952f4f627863b8ed8604c32039c | /train_evaluate_RNN/test_LSTM.py | a48ffcbb38fee61a71f3e920550d8c3c7ed23a56 | [] | no_license | pablo-martin/PFC_Behavior | 57d23995f0ff4cf1f2429cfc21b2065c2e17d03a | 4a47ce7c890c9b3c638098069c3d99ecef96fb2c | refs/heads/master | 2020-03-25T09:18:51.523123 | 2019-02-11T00:10:16 | 2019-02-11T00:10:16 | 143,659,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,493 | py |
import itertools
import numpy as np
import multiprocessing as mp
import pandas as pd
import pickle
from behavioral_performance.utils import fileNames
from keras.models import load_model
from RNNmodule.SequenceClass import Sequences
ROOT = '/home/pablo/python/'
datatype = 'binaryOmni'
model_dir = ROOT + 'Models/LSTM/P... | [
"elektrochose@gmail.com"
] | elektrochose@gmail.com |
352ab7a70416903b7c6a9aed0e6bb43d1fe798ae | 793fd49d1f4d0f5c21c071e3ca8c32e663774241 | /common/login.py | 01a80c9e9892beedab07908e42bf2351a226d01f | [] | no_license | luoqingfu/eliteu_live_auto | ab4797fe76a9265f1b505295c630a94109b73d42 | 440d529c5bc00322e9353e4eef8e090220c56fcd | refs/heads/master | 2020-03-10T00:01:37.414258 | 2018-04-25T08:25:00 | 2018-04-25T08:25:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | import unittest as unittest
from common.drive import Driver
from page_obj.base import Page
from readYaml import yl
class tes_login():
#browser = yl['t_ed_student']['browser']
#url = yl['t_ed_student']['url']
def t_login(self,url,browser):
self.driver = Driver(self.brower).open_browser(self.url)
... | [
"qf.luo@eliteu.com.cn"
] | qf.luo@eliteu.com.cn |
115b553734b82703e35ac36ab72a8e52d72bee3c | 45a9db818c980db472bac010af8e1bdb69a230e3 | /api_tests.py | 93a8010c8e96c003fa4faf45b9508ffd501397dd | [] | no_license | bira37/desafio-sanar | db7f933be0490bbae0197dd14970fc0d22d82994 | b94f1d72105516bc5f07768e2efc2792be6575c0 | refs/heads/master | 2023-05-25T03:17:58.288779 | 2019-08-25T02:25:59 | 2019-08-25T02:25:59 | 204,233,106 | 0 | 0 | null | 2023-05-22T22:29:36 | 2019-08-25T01:49:23 | Python | UTF-8 | Python | false | false | 15,197 | py | import os
import unittest
from flask import Flask
from app import db
from api.User import User
from app import flaskApp
class FlaskAPITest(unittest.TestCase):
def setUp(self):
self.app = flaskApp.test_client()
def tearDown(self):
# elimina todos os usuarios de teste da base de dados depois de cada tes... | [
"ubiratanneto37@hotmail.com"
] | ubiratanneto37@hotmail.com |
2723e040a2d91c56676e7645fc79b32a8370686e | 9a5561080b694e96c642e990e1748162cfb6a414 | /Management/migrations/0001_initial.py | 1334c797b3d0ed5f225cd1ce01e3342bdcab0205 | [] | no_license | ArlexDu/Training_Management | a81c969e83777c4edf309e4ff39787f9c52ccb9f | f5c14f30fe82b782b7099d152545e30b6f99cc61 | refs/heads/master | 2020-12-30T13:39:45.696249 | 2018-10-20T12:17:57 | 2018-10-20T12:17:57 | 91,239,784 | 0 | 2 | null | 2018-10-20T12:17:58 | 2017-05-14T11:48:16 | JavaScript | UTF-8 | Python | false | false | 5,290 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-17 10:46
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"772773671@qq.com"
] | 772773671@qq.com |
23aa400084b7cbdf2c7d215796fe0d309501e22f | f30464842a6698ab9a61c05029b0cd246bed8829 | /env/lib/python3.5/sre_compile.py | 3e0d51477ddd328ec46aecebeba518bac711f6ad | [] | no_license | chrispdharman/unbroken-symmetry | e80ba1c02fce3b2c37a8450aeb28a089291cf925 | e9a2d3e95f63b76d17bc065588e992abd8ffc3cb | refs/heads/master | 2021-06-25T10:12:17.584167 | 2018-09-12T22:24:11 | 2018-09-12T22:24:11 | 145,339,589 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | /Users/ch392/miniconda3/lib/python3.5/sre_compile.py | [
"christopher.p.d.harman@gmail.com"
] | christopher.p.d.harman@gmail.com |
a27df39f6759523f35257c05c958641d535518dc | adcdc01294ef1563f063b26c4513825879d34262 | /koala/koala_server/app/api_1_0/api_project.py | 646bbeea5a100c2539ece28cad23593c043978ca | [] | no_license | clearloveyin/Cararote | 0312d18061fd6b23e72450d956ff2a4f07deb31a | 2d764d5d682391a8909650387e84eb735044c5ff | refs/heads/master | 2023-01-29T07:08:32.696111 | 2019-08-03T04:12:15 | 2019-08-03T04:12:15 | 200,329,856 | 0 | 0 | null | 2023-01-04T06:14:17 | 2019-08-03T04:07:49 | Python | UTF-8 | Python | false | false | 4,914 | py | # -*- coding: UTF-8 -*-
import os
from app.ctrl.ctrl_project import CtrlProject
from flask_restful import Resource, request
from token_manage import auth
class ApiProjectState(Resource):
@auth.login_required
def get(self):
result = {"result": "OK", "content": []}
res = CtrlProject().get_proj_s... | [
"1484091708@qq,com"
] | 1484091708@qq,com |
d6bb9fecfdd54bc0099de28046aacffa170065d6 | 40456139d3d3dafdf5331ff3d5a6e1ce7b1c6421 | /image_normalizer.py | bc85788aa4ef132dc925d686fd976173c05be284 | [] | no_license | nacro90/age-gender | 5a06f6374f8f31f199dfd0c290656c8bd8f52753 | 491fa10754001fc20d1ffe9694819cfb67591646 | refs/heads/master | 2020-03-19T20:04:26.161270 | 2018-06-11T07:01:13 | 2018-06-11T07:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | import os
from PIL import Image
DATASET_PATH = os.curdir + os.sep + 'data' + os.sep + 'Adience'
IMAGE_FOLDER = os.sep + 'faces'
ANNOTATION_FOLDER = os.sep + 'annotations'
JSON_FOLDER = os.sep + 'set'
def main():
path = DATASET_PATH + IMAGE_FOLDER
directories = os.listdir(DATASET_PATH + IMAGE_FOLDER)
... | [
"orcan.tiryakioglu@gmail.com"
] | orcan.tiryakioglu@gmail.com |
f78ec480786556e08f9a2cddea0271a0013e24e1 | 9ff1d0d5049dfe1c14528e098bdd8c934fb2274a | /tests/test3/test_port7_unittest.py | 6465c5d08297ccf489943439d23ab7e7aca49cfa | [] | no_license | 486dx/utility_Python | 43e06b3f74dac140396643d0e5c132fb874d2467 | 598117f7e9fd416f4bc7f1ccea931048a977a0bc | refs/heads/master | 2022-04-23T06:36:36.220406 | 2020-04-06T08:59:35 | 2020-04-06T08:59:35 | 264,519,552 | 1 | 0 | null | 2020-05-16T20:17:30 | 2020-05-16T20:17:30 | null | UTF-8 | Python | false | false | 1,690 | py | # test_port7_unittest.py
import unittest
from portfolio3 import Portfolio
class PortfolioTest(unittest.TestCase):
def test_empty(self):
p = Portfolio()
self.assertEqual(p.cost(), 0.0)
def test_buy_one_stock(self):
p = Portfolio()
p.buy("IBM", 100, 176.48)
self.assertEq... | [
"f339339@gmail.com"
] | f339339@gmail.com |
fa804a7ddde1f1ff2df71b0e7b4718e2bb101e06 | 7316069d259c7a2338ae1891bdbba6e46486b823 | /table_tree/DataLocation.py | d94cccd15896aeec68dd27161cd7cf14943ec610 | [] | no_license | GuoXi722/PyQtPractice | 07dbb77d36776d2e0e96a6aa69aeb5da8f58571d | 40ded82c2dc70864763e5e93dd0b2da57cb8dd18 | refs/heads/master | 2021-01-08T20:21:49.450035 | 2020-02-27T02:23:02 | 2020-02-27T02:23:02 | 242,132,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
class DataLocation(QWidget):
def __init__(self):
super(DataLocation, self).__init__()
self.initUi()
def initUi(self):
self.setWindowTitle('在表格中查找指定数据')
self.resize(600, 800)
... | [
"asaf227@126.com"
] | asaf227@126.com |
208e0c3629cefe2c406cecbcf1ccfcca3d306438 | a1c21b0c1b0e074060005c0714a69b4f983a237e | /TestPro/TestPro/urls.py | 018ae5eedca4a315e69f184f22637156fd34a88c | [] | no_license | Jzarecta/Django3 | e2d7f830060634e9035e72d525d93cb505824c90 | 3277d4e1831122a5cceb6767199fff7bfa0bf0a1 | refs/heads/master | 2020-12-03T20:21:54.637165 | 2020-01-04T00:13:25 | 2020-01-04T00:13:25 | 231,473,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | """TestPro URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"jza@bitcuners.org"
] | jza@bitcuners.org |
2470fdcf5635d5d8d83f280e1f1672e706801756 | f3a7ca57c3027c3ab40dc006126a71f151804d73 | /09_valor_mais_proximo_media.py | d167a1d2dafabb836533f4576ec283abf8c4fd57 | [] | no_license | evaldojr100/Python_Lista_4 | 9ff87df3fcb140bcfeffd59842a76a2b58e26bee | d5fa499d3ada2e20fbb5319928a8239d9784b366 | refs/heads/master | 2020-04-08T17:44:47.980772 | 2018-11-28T23:38:55 | 2018-11-28T23:38:55 | 159,579,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # print(int)+(min({abs(int(sum([2.5,7.5,10.0,4.0])/len([2.5,7.5,10.0,4.0]))-i) for i in [2.5,7.5,10.0,4.0]})))
'''lista,lista2=[2.5,7.5,10,4.0],[]
{lista2.append(abs(i-6.0)) for i in lista}
print(lista[lista2.index(min(lista2))])'''
print(min({abs(i-(sum([2.5,7.5,10.0,4.0])/len([2.5,7.5,10.0,])))if 6.0<i else abs(i... | [
"evaldojr_melo@hotmail.com"
] | evaldojr_melo@hotmail.com |
415094acc513de4473c05da95d87fe6a98ca7811 | e940f34521c1e15f4134e28584403abd1d2b048d | /intro_to_ml.py | 354af8a5398070a6a94369eb989505d34291f619 | [] | no_license | abdurehman12/Intro-To-ML | eaf8032ac510c6ba902bba759a6466638ee25492 | 5d8fddccc5ba38348b5effb5e3982485783d9f80 | refs/heads/main | 2023-08-02T07:19:55.583491 | 2021-10-06T16:25:12 | 2021-10-06T16:25:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,330 | py | # -*- coding: utf-8 -*-
"""Intro to ML.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1yHZysp6_Ii9SLgZhrxgXmdAf8KODHVOx
"""
import pandas as pd
import numpy as np
# save filepath to variable for easier access
melbourne_file_path = 'melb_data.cs... | [
"noreply@github.com"
] | noreply@github.com |
8cdd5f52e919892a5acf7fabc7f846d69d487956 | 5491f4b600f7ecd1d0848d60d7b017e5e407d4c7 | /inventario/migrations/0005_ventamodel.py | 79ad0c9268a28f2a5951adb94199d7fd065bfa48 | [] | no_license | GustavoPMex/web-inventario | 409456dd356bbfcadd735cc9b8e2aae7605a0e37 | d0ac36ee791ff0262f9390497da1dd990581a4fd | refs/heads/master | 2023-06-10T10:08:39.029666 | 2021-06-30T23:40:19 | 2021-06-30T23:40:19 | 296,677,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # Generated by Django 3.0.8 on 2020-09-29 03:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventario', '0004_historicalarticulomodel'),
]
operations = [
migrations.CreateModel(
name='VentaModel',
fields=[
... | [
"gustavoppymex@gmail.com"
] | gustavoppymex@gmail.com |
45334efb19f0bd14bb4fadb6ad06af11137d51fc | ea9d8a93f03291681c54e4e0af07a07200614b3b | /venv/bin/easy_install | 1884943234ec09ce04dd3afb7d3583ba101b968e | [] | no_license | arpitmohanty9/pawfect | 201310ca392fea5ead602c1a086bc42f7a4b6892 | adbc6072a737de3c6e17709d5bdc65738c7e1df9 | refs/heads/master | 2023-04-24T06:47:38.035053 | 2019-05-31T14:17:06 | 2019-05-31T14:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | #!/home/arpit/Documents/Git/pawfect/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"arpitmohanty9@gmail.com"
] | arpitmohanty9@gmail.com | |
7fbf7aa3784e3013167159849a122f698bad690e | 1eb98e1605507f7ca400f4b90d37b6124d00abc3 | /tensorflow/lib/python2.7/posixpath.py | 7d8a72347346a9bb112262497587f777180aaf82 | [] | no_license | arcoyk/ml | 4519c4ef95bb207feb642a4201bb00f035d25d0a | 9b67d799552ea854f248af311918fb30aca8d48a | refs/heads/master | 2022-10-21T22:15:34.967709 | 2017-08-25T15:29:32 | 2017-08-25T15:29:32 | 84,820,976 | 1 | 1 | null | 2022-10-12T18:44:02 | 2017-03-13T11:53:52 | Python | UTF-8 | Python | false | false | 57 | py | /Users/yui/.pyenv/versions/2.7/lib/python2.7/posixpath.py | [
"yui@racoon.local"
] | yui@racoon.local |
8bc82afe016dc0fdb0425e76358408b54d303f0f | 8e3b43774810ed73ee4797ebc8c09906359b236d | /finalnet.py | 3274130d46203b579c15b4a8455343268e231eb2 | [] | no_license | 459548764/Myself-Machine-Learning | 0fa9603b156beac810b18c0706d3e7b97e32642b | 31aa2d919443fef6d04d9d2b6545092046f7cfff | refs/heads/master | 2023-08-17T00:55:04.703546 | 2023-08-07T02:30:18 | 2023-08-07T02:30:18 | 144,861,866 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,650 | py | import numpy as np
import random
class MultiNetwork():
def __init__(self,
layer_dims):
self.parameter = {}
L = len(layer_dims)
for i in range(1,L):
self.parameter['W'+str(i)] = np.random.rand(layer_dims[i-1],
... | [
"noreply@github.com"
] | noreply@github.com |
89a6df9618831d99282c5edf2d9c150519e4502c | 0978f8e704196f94fce1768e5b0b1ed55b1fe027 | /上課用_打地鼠.py | 427d7a015534e28603c6974f4a3dfb1c8c247e63 | [] | no_license | KaiCheng026/test | 61dbd04b5eb6ae67d9886c9e26dc60bc0a63587f | c10111eda44fce31dfc23233a264e1456e0eb52a | refs/heads/main | 2023-07-03T07:38:36.410746 | 2021-08-09T10:00:48 | 2021-08-09T10:00:48 | 394,238,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,755 | py | """
引入我們會需要用到的程式庫
"""
import pygame
import time
from random import randint
"""
決定視窗大小及我們會常常用到的顏色
這樣的好處是以後我們如果要改主題顏色或視窗大小,只要對應去改這邊的資料就好
"""
# 螢幕尺寸
SCREEN_WIDTH = 400 # 寬
SCREEN_HEIGHT = 400 # 長
# 顏色
GREEN = (73, 188, 11)
YELLOW = (225, 225, 0)
WHITE = (255, 255, 255)
"""
觀察我們會需要知道的資訊
首先是老鼠會出現在某個 (x,y) 座標上(一次一隻)
... | [
"l6756071@gmail.com"
] | l6756071@gmail.com |
b75e7fe13bef3cee081fe2bc1532d67b72acfef2 | 54dca65b775a41b764afc34f1e8d9e310775985a | /catfood/experiment/experiment_case_views.py | a053536d437189634834c5df8a9512202861fdf4 | [] | no_license | Nntraveler/backend | 9a5e31b3b168701bf93b2006e83f16e95300cf1d | a3011d7e9f8caeb17340eaa85366b06dcede48af | refs/heads/main | 2023-04-16T16:09:02.827497 | 2021-04-24T13:49:03 | 2021-04-24T13:49:03 | 359,298,942 | 0 | 0 | null | 2021-04-19T01:57:55 | 2021-04-19T01:57:55 | null | UTF-8 | Python | false | false | 8,166 | py | from django.shortcuts import render
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.decorators import action
from rest_framework import status
from rest_framework.decorators import api_view, permission_classes, authentication_classes
from course_database.models... | [
"noreply@github.com"
] | noreply@github.com |
d1e598832c836550b9a4467d770645ca5e081867 | 63ccd06dc73ae23018138979d6631554c7160794 | /experiments/sl-fmri-expt/four_tasks_fmri/vsl_fmri/misc_vsl/sequence_gen.py | af7806099088bc0d6db73ee9712a3ba0f96ca41f | [] | no_license | zhenghanQ/qlab | d82b318a8c10d9a4d3ab144d029ed20ac83060c7 | aaf7dd591b77b9e611366f2bacefd2b613644c83 | refs/heads/master | 2021-06-01T17:38:51.634923 | 2021-03-23T01:15:44 | 2021-03-23T01:15:44 | 128,655,996 | 1 | 0 | null | 2018-04-08T15:37:37 | 2018-04-08T15:37:36 | null | UTF-8 | Python | false | false | 3,440 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 28 16:10:26 2016
@author: ysa
"""
import random
import itertools
import pandas as pd
perm_list_1 = list(itertools.permutations(['Alien1.BMP', 'Alien2.BMP', 'Alien3.BMP']))
perm_list_2 = list(itertools.permutations(['Alien4.BMP', 'Alien5.BMP', 'Alien6.BMP']))
perm_list_3... | [
"qlab.udel@gmail.com"
] | qlab.udel@gmail.com |
10ba71386623c722c7ac6066f207879aca699a08 | 4ce466c9362ff7bce0de3ef64e4db3c802333cf6 | /Pandas/tut5.py | 3d2d586281d4719bdc5fa9628dbab3b5f049c5d0 | [] | no_license | anandmooga/Sentdex_Tutorials | 4e57efef4d9e54dedd2f5ecf39a64dbcb9a0d561 | ada9cc520f9f7ef20ea26efc087ca7def0ce66f5 | refs/heads/master | 2021-09-01T06:23:23.863189 | 2017-12-25T15:12:39 | 2017-12-25T15:12:39 | 114,860,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | import pandas as pd
import quandl
import pickle
api_key = open('Quandl_api.txt' , 'r').read()
def state_list():
fiddy_states = pd.read_html('https://simple.wikipedia.org/wiki/List_of_U.S._states')
return fiddy_states[0][0][1:]
def grab_initial_state_data():
states = state_list()
main_df = pd.D... | [
"anandmooga2@gmail.com"
] | anandmooga2@gmail.com |
c5c570c5d072a814ff270e276deaef84ad277e35 | 56255c15702f4f4a01b7f785f956cee7290d0097 | /segmentation_pytorch/utils/train.py | ef5089b869ed248028f04a015305e45cdec34d74 | [] | no_license | devhliu/PyTorch_UNOdeMSegNet | d2561606aac34ace4664c48bc000d4c4a915699a | 3a446ca71ddd74e612bf2c2acc43e7b210366e5b | refs/heads/master | 2020-12-24T04:41:23.674029 | 2019-11-13T08:07:40 | 2019-11-13T08:07:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,142 | py | import sys
import torch
import pdb
from tqdm import tqdm as tqdm
from torchnet.meter import AverageValueMeter
# from ..models.CRF import dense_crf
class Epoch:
def __init__(self, model, loss, metrics, stage_name, device='cpu', verbose=True):
self.model = model
self.loss = loss
self.metrics = metrics
self.st... | [
"maverickers@outlook.com"
] | maverickers@outlook.com |
e4dbd79b218b3d5d6eb4ae027687f1eca532636a | f5a2f3a693fcb374d42de267c0b87c3632d037f5 | /Neumann-Final/Final2.py | 0fc211287dbd54c38576e050172aeafd7fcc10ef | [] | no_license | RyanNeumann/Artificial_Intelligence | 3b0cb9be103ce5f95199c4fe2548f9a5e146335e | fea967793f7baad1f47d06c8b0d16c48dc8c12a8 | refs/heads/master | 2021-03-22T03:31:32.887340 | 2016-12-13T21:21:57 | 2016-12-13T21:21:57 | 67,057,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | import finalGetDigits
import numpy as np
import matplotlib.pyplot as plt
from sklearn.svm import SVR
from sklearn.model_selection import KFold
# get digits data X (training input) and y (target output)
X, y, X_te, y_te = finalGetDigits.getDataSet()
#penC <- Penalty parameter C of the error term
#tubEpsilon <- the e... | [
"Ryan.Neumann1@marist.edu"
] | Ryan.Neumann1@marist.edu |
9e8e09a34fca6bb6e644f23b4638fe6a65ba5f62 | 440b6e249bed961706164b20d98fc7ba16f4323d | /testMenegottoPinto.py | dbfac51904e45f28dd3e3d217c658a3f79a9e435 | [] | no_license | pdhhiep/fiber_beam_column | 6df8a5d0e6eb736205c41952dc636b1bad353d42 | 1d6cb08494f6774fb1674ff838dc453c388a7816 | refs/heads/master | 2022-03-24T03:03:06.909542 | 2019-12-05T14:02:13 | 2019-12-05T14:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,626 | py | """
test file
"""
import numpy as np
import matplotlib.pyplot as plt
class MenegottoPinto:
def __init__(self, E, b, fy, R, a1, a2):
self._E = E
self._Et = E
self._b = b
self._R0 = R
self._R = R
self._fy = fy
self._a1 = a1
self._a2 = a2
# Lo... | [
"m.zidan@tum.de"
] | m.zidan@tum.de |
4b17c8063afbada079d284069ca1e1b3efd90dec | 971752c0a0d7aa3f6ca224be041ff100ea96ae29 | /client/app/dialognlu/models/joint_trans_bert.py | 845f499b93d58ab0a283d0fb221a14ee185af2a0 | [] | no_license | zalkikar/DB-Final | 6aec7653a2a7a24d948d06e487d146b84e226360 | a297caadc1c5af84ad430461bf6dfeb9ea52e74a | refs/heads/main | 2023-07-26T12:00:53.096585 | 2021-09-01T22:02:26 | 2021-09-01T22:02:26 | 395,816,499 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | # -*- coding: utf-8 -*-
"""
@author: mwahdan
"""
import tensorflow as tf
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Input, Dense, Multiply, TimeDistributed
from .base_joint_trans import BaseJointTransformerModel, TfliteBaseJointTransformerModel, TfliteBaseJointTransformer4inp... | [
"rayzck9@gmail.com"
] | rayzck9@gmail.com |
466772bee855a4726cd8e6ab814468db6d9c6284 | 12d9e5a5ea19674bf436298e3cf69fb0b19b18e1 | /problem1.py | 5c9a827eedd671df51d0005fad68750dcc7dbe21 | [] | no_license | sk4201/summer19py | e0f469523530b4f6e574a4fa2faa03bf19849e34 | ff244e596a599bf4936545ecee4efd2359b0224b | refs/heads/master | 2020-05-31T06:47:35.741916 | 2019-06-27T15:50:54 | 2019-06-27T15:50:54 | 190,149,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | #Create a program that asks the user to enter their name and their age.
#Print out a message that will tell them the year that they will turn 95 years old
import datetime
name=input("Enter Your Name :")
age=int(input("Enter your age :"))
now = datetime.datetime.now()
print(name," in the age of 95 year wiil be ",(95-a... | [
"16tec2cs024@vgu.ac.in"
] | 16tec2cs024@vgu.ac.in |
63b455c578e8c25aae76f9c4f1aad7074d665b95 | d945816080d2086b0fd81ab2ca3bf731591dd08b | /Graph.py | fe03d7f6d0bdd92c11f435b14bf2c0b816a1d077 | [] | no_license | orelkakon/PageRank | 576b0cee6d6f3f8a5cd59dd3ca363c5d25d31d48 | 2db06222885e291744b1322e1e25afc14dde5dfb | refs/heads/master | 2022-12-31T03:48:55.012668 | 2020-10-26T17:29:20 | 2020-10-26T17:29:20 | 307,452,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,663 | py | import csv
import operator
class Node:
def __init__(self):
self.list_neighbors = []
self.list_reverse_neighbors = []
self.r_tag_t = -1
self.r_t_previous = -1
self.r_t = -1
loaded_graph = {}
def load_graph(path):
with open(path, newline='') as file:
... | [
"orelkak@post.bgu.ac.il"
] | orelkak@post.bgu.ac.il |
de8f1e1f2f085838464375d1849719293a936020 | 0af30c2e3ddcc80a19ea9cfaad9d7e1fedf8b876 | /210311-210314/백)2579 계단 오르기/이동재.py | b27bbc2081db13195ca37f930e92c97bac44a0d8 | [] | no_license | winterash2/algorithm_study_2021_1 | d1cd6077f71f68e7fc3eb6dfae7b2cc220885e4c | c1fee62c7e5e560c3bf7ae5e6166866d0147f23f | refs/heads/master | 2023-04-02T20:11:04.169856 | 2021-04-05T11:18:22 | 2021-04-05T11:18:22 | 327,563,535 | 1 | 2 | null | 2021-01-24T14:17:40 | 2021-01-07T09:28:08 | Python | UTF-8 | Python | false | false | 512 | py | import sys
input = sys.stdin.readline
N = int(input())
scores = []
for _ in range(N):
scores.append(int(input()))
dp1 = [0 for _ in range(N)]
dp2 = [0 for _ in range(N)]
# 0번 칸 초기화
dp1[0] = scores[0]
if N == 1:
print(scores[0])
else: # N이 2보다 클 때
# 2번 칸 초기화
dp1[1] = scores[1]
dp2[1] = scores[1] ... | [
"winterash2@naver.com"
] | winterash2@naver.com |
2d17ce5376464fc9f2183a4be5ae61524b710fba | 6544d441fd25b63acdc9a18e0299db37daf45d3b | /tests/cli/test_create.py | 8b226997665595e963c5d927a28d0d6cadc4819f | [
"BSD-3-Clause"
] | permissive | benyanke/zedenv | 88c32c4d32f144bcc5c3896fa7f25255f0620250 | ca91d05fe74357b786b1a013f18351658e2a4a51 | refs/heads/master | 2020-03-22T21:07:50.090697 | 2018-07-04T20:50:44 | 2018-07-04T20:50:44 | 140,659,388 | 0 | 0 | BSD-3-Clause | 2018-07-12T04:06:21 | 2018-07-12T04:06:21 | null | UTF-8 | Python | false | false | 1,251 | py | """Test zedenv create command"""
import datetime
import pytest
import pyzfscmds.utility as zfs_utility
import zedenv.cli.create
import zedenv.lib.check
require_root_dataset = pytest.mark.require_root_dataset
@require_root_dataset
def test_boot_environment_created(root_dataset):
parent_dataset = zfs_utility.da... | [
"johnramsden@riseup.net"
] | johnramsden@riseup.net |
0ae646e5fd55b65b3f924b29c97b5843b2eca062 | bd1362c60313784c90013dfc9f0169e64389bf27 | /scripts/ingestors/soilm_ingest.py | a3a1ef7cc473f3149593d222b9f47ed4891c86b8 | [] | no_license | ForceCry/iem | 391aa9daf796591909cb9d4e60e27375adfb0eab | 4b0390d89e6570b99ca83a5fa9b042226e17c1ad | refs/heads/master | 2020-12-24T19:04:55.517409 | 2013-04-09T14:25:36 | 2013-04-09T14:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,725 | py | """
Ingest ISU SOILM data!
DailySI
"TIMESTAMP",
"RECORD",
"TAir_C_Avg",
"TAir_C_Max",
"TAir_C_TMx",
"TAir_C_Min",
"TAir_C_TMn",
"SlrMJ_Tot",
"Rain_mm_Tot",
"WS_mps_S_WVT",
"WindDir_D1_WVT",
"WindDir_SD1_WVT",
"WS_mps_Max",
"WS_mps_TMx",
"DailyET",
"TSoil_C_Avg",
"VWC_12_Avg",
"VWC_24_Avg",
"VWC_5... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
855033498433fc4b023163b8a1e030790481cc8e | 102d09ef1d6effe166ad703ba4472c45dfb03263 | /py/Unique Binary Search Trees.py | ff810735f7dccf5e13975b50685aee50ae48a74b | [] | no_license | bitcsdby/Codes-for-leetcode | 5693100d4b66de65d7f135bbdd81b32650aed7d0 | 9e24e621cfb9e7fd46f9f02dfc40a18a702d4990 | refs/heads/master | 2016-09-05T08:43:31.656437 | 2014-08-02T15:14:53 | 2014-08-02T15:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | class Solution:
# @return an integer
def numTrees(self, n):
if n == 0 or n == 1:
return 1;
l = [];
l.append(1);
l.append(1);
count = 2;
while count <= n:
c = 0;
tmp = 0;
while ... | [
"bitcsdby@gmail.com"
] | bitcsdby@gmail.com |
4c8146e1c0684bc70d7cd760d1508a41e90c6e68 | 97e0fe6c7f870e9c4ac2769f37beebc10fba91d5 | /start_processing_manager.py | 44188138edde753ebf68048c40fc7849a98648cf | [] | no_license | MadisonMHillyard/ecse414_lab | e31e8641ad788e218fdac1651ae3094aa4b33454 | 290c1eee43e3a970a63fffb58c6c028aa6cdcedb | refs/heads/main | 2023-05-01T11:48:26.490379 | 2021-05-16T03:18:44 | 2021-05-16T03:18:44 | 362,198,345 | 1 | 0 | null | 2021-05-15T21:09:48 | 2021-04-27T17:35:40 | Python | UTF-8 | Python | false | false | 4,317 | py | import sys
import os
import logging
from src.common import log_util
import json
from pathlib import Path
# pip install Pillow
# or easy install : easy_install Pillow
from PIL import Image
import numpy
import random
# logger setup
logger = log_util.get_logger("logs/aicn_log.txt")
logger.setLevel(logging.DEBUG)
from sr... | [
"Andrew Dupuis"
] | Andrew Dupuis |
fc63244cd75a39edbf500b6fa6de7db12118a2b9 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/auth/application_default/login.py | cd8f38b6c453bd00a3fae5c98e366c42c46a414a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 9,042 | py | # -*- coding: utf-8 -*- #
# Copyright 2016 Google LLC. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
3e4834d5a41bff7109121e57e288521ddeccf58f | 0987b1cff64f2e3937412c590d1a6953a224de57 | /postgres/sqlapp/migrations/0004_auto_20200623_1400.py | c4b4d0f73b325869622f48b469a5e1cb7714732f | [] | no_license | AleksanderUrbanowicz/Postgres_Django | 9d646d92a746e7df5f7869b5ea457e45bbddb36a | bf7e4466df303476726ed02998249787f17e0cbd | refs/heads/master | 2022-11-07T18:22:54.565637 | 2020-06-24T14:02:10 | 2020-06-24T14:02:10 | 274,174,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | # Generated by Django 3.0.7 on 2020-06-23 14:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sqlapp', '0003_auto_20200623_1238'),
]
operations = [
migrations.AddField(
model_name='client',
name='city',
... | [
"aleksanderurbanowicz@gmail.com"
] | aleksanderurbanowicz@gmail.com |
1af261d752a689d05277ad4f6abdac6ac6f2d056 | 52eb2cf9d42d2ecb9b997381f3ef61930f0f0aaf | /schnetpack/representation/schnet.py | 31ca8314b6b875c52dc35464cf75b92a30cff4d8 | [
"MIT"
] | permissive | YDS-Med/Transformer3D | 50e12ad4cb82ce22f77ce85d664be5cadf1c2058 | dc1257525ab4f0532f5fbc2af60bd99faa3796be | refs/heads/master | 2022-11-30T00:23:07.555865 | 2020-08-03T21:47:47 | 2020-08-03T21:47:47 | 283,867,160 | 1 | 0 | NOASSERTION | 2020-08-03T21:36:57 | 2020-07-30T20:08:09 | Python | UTF-8 | Python | false | false | 11,100 | py | import torch
import torch.nn as nn
from schnetpack.nn.base import Dense
from schnetpack import Properties
from schnetpack.nn.cfconv import CFConv
from schnetpack.nn.cutoff import CosineCutoff
from schnetpack.nn.acsf import GaussianSmearing
from schnetpack.nn.neighbors import AtomDistances
from schnetpack.nn.activation... | [
"noreply@github.com"
] | noreply@github.com |
e9ad2283c07526d1309fe86f4e458cfba45f9f76 | 9bdd741a574d32679532775627b285608bf527f9 | /visualize_utils.py | 12700e8f7d0a106d4f3c3eeee829b778915d4b9d | [] | no_license | mungsoo/CNN-with-Visualization | 96922980b122de70dd0596f8c9ceef921fd6286c | a83f47e620d0f2dcb296991e7e0e5fe77594fa4a | refs/heads/master | 2020-04-02T03:26:46.758448 | 2018-10-21T18:20:46 | 2018-10-21T18:20:46 | 153,966,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | import math
import os
import errno
import shutil
def get_grid_dim(x):
"""
Transforms x into product of two integers
:param x: int
:return: two ints
"""
factors = prime_powers(x)
if len(factors) % 2 == 0:
i = int(len(factors) / 2)
return factors[i], factors[i ... | [
"noreply@github.com"
] | noreply@github.com |
af3c13b0b6d71fc197d85e36c8e32fa818a832f2 | b72c37e3ccda507b231649cddd5c7845c6c34ba1 | /PythonBasic/Day15/exec5_enumate.py | bcde4f16b170aa836494556ff4f435dfe5176b43 | [] | no_license | ljrdemail/AID1810 | 51c61c255b5c5efc1dc642b46691a614daedd85e | b417bd831bc1550ab953ce7ca23f54e34b8b2692 | refs/heads/master | 2020-04-24T09:45:14.781612 | 2019-02-21T11:26:49 | 2019-02-21T11:26:49 | 171,866,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | # -*- coding:utf-8 -*-
def myenumerate(iterable, start=0):
i = start # 开始索引
for x in iterable:
yield (i, x) # 生成一个元组
i += 1
d = myenumerate("ABCDE", 1)
for i in d:
print(i)
| [
"root"
] | root |
fed79b9a386ddab376d7acd6d52191fc5ec5f846 | 23fb5b1fb275892b0a27657685c062360630889e | /Week 7/django/src/bookstore/settings.py | ad6bf63e9bc7c5c3b7fdb61d360525456c224875 | [
"MIT"
] | permissive | carlosal1015/python2017 | 2b596fa1e4cad4de06537ffc99fb0af0dfa4563d | c1eed0201039c6b4daf857dd1f08c47a7b1e3f45 | refs/heads/master | 2020-09-13T17:15:50.419142 | 2018-05-24T12:44:40 | 2018-05-24T12:44:40 | 222,850,901 | 1 | 2 | MIT | 2019-11-20T04:32:23 | 2019-11-20T04:30:54 | null | UTF-8 | Python | false | false | 3,161 | py | """
Django settings for bookstore project.
Generated by 'django-admin startproject' using Django 1.11.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import ... | [
"sebastinssanty@gmail.com"
] | sebastinssanty@gmail.com |
64b1ff60158655b97b826b8467eb04fc9536b67f | c264153f9188d3af187905d846fa20296a0af85d | /Python/Python3网络爬虫开发实战/《Python3网络爬虫开发实战》随书源代码/urllib/error/demo3.py | 6928b02a18d8a9762b9a281c84c97d5aa162f9c4 | [] | no_license | IS-OSCAR-YU/ebooks | 5cd3c1089a221759793524df647e231a582b19ba | b125204c4fe69b9ca9ff774c7bc166d3cb2a875b | refs/heads/master | 2023-05-23T02:46:58.718636 | 2021-06-16T12:15:13 | 2021-06-16T12:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from urllib import request, error
try:
response = request.urlopen('http://cuiqingcai.com/index.htm')
except error.HTTPError as e:
print(e.reason, e.code, e.headers, sep='\n')
except error.URLError as e:
print(e.reason)
else:
print('Request Successfully') | [
"jiangzhangha@163.com"
] | jiangzhangha@163.com |
184ebeb33592af81e788e14c06df93a03090abd8 | 5f27bc1a0460a078f6fe33a544f494a5dff7f452 | /script/old/O_0703_arm_move_jaco.py | 1fa6247e4c4c661ef79584d37b0acde343aed2be | [] | no_license | A-Why-not-fork-repositories-Good-Luck/arm_move | 3e381f0310265f47da14beaac136c358fb318f92 | e2e6182cfd93df1935bd3b8e9158134964dc44fa | refs/heads/master | 2023-03-15T18:37:17.337770 | 2020-11-18T06:46:06 | 2020-11-18T06:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,159 | py | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2013, SRI International
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code ... | [
"welovehun91@gmail.com"
] | welovehun91@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.