blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f8a13792c40fbc578b3c9e12900d02d5fe048c5f | 49f2e737393de17c5a97bdc597d3708066f984d1 | /__code/ui_registration_tool.py | 1755de1f553f2b163d4dc84eb91a7b33c45cb8d4 | [] | no_license | RicardoCarreon/Neutron_imaging | adc226f807fc41c4bba11b5156fdf72092d34942 | 84d564850ed246070ddb4586501db194210dc5a7 | refs/heads/master | 2021-05-25T19:21:23.149964 | 2020-02-25T01:27:03 | 2020-02-25T01:27:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,504 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/Volumes/my_book_thunderbolt_duo/git/IPTS/python_notebooks/ui/ui_registration_tool.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class ... | [
"bilheuxjm@ornl.gov"
] | bilheuxjm@ornl.gov |
cbdb5a9e303ebf965d38718b40330400c64a50ee | 293fc20a69f317f8360de484b9f671a5d84e93c5 | /steeb/preference.py | 986615c909d40625ca3dc4aea980b1c55b16f11c | [
"Unlicense"
] | permissive | edsoncudjoe/steeb | 641556a723901a5216c88b0bc641b1312113346e | 11b845cac2fad4e696561652509ebff76f89be3d | refs/heads/master | 2021-01-18T14:57:44.767828 | 2015-10-20T13:34:54 | 2015-10-20T13:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | import getpass
download_dir = "/home/" + getpass.getuser() + "/Music/Downloads/"
force_hq = False #TODO: implement
| [
"robertjankeizer@gmail.com"
] | robertjankeizer@gmail.com |
b8b657e5751f27c11d096fdd94bdce2298bc764f | a750c280430f15cd6f5554fe8f19032713a2b75e | /predictor/predictor.py | 967559e0ca1239057498666c4f6d9de725d4d5ac | [] | no_license | Tahiya31/Stock-Guru | 2478b9e41af9b9f45a7de6a6c525dd2b60249ecf | 0dfe9a16f75c1f9cb57099b63b0e4b13a9240384 | refs/heads/master | 2020-04-03T08:41:25.759110 | 2019-07-31T18:16:16 | 2019-07-31T18:16:16 | 155,141,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,070 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 10 18:42:01 2018
@author: giorgoschantzialexiou
"""
import os
import sys
import json
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
from subprocess import check_output
from keras.layers.cor... | [
"noreply@github.com"
] | Tahiya31.noreply@github.com |
4e983e2ce3a316265354c301224483e02e67df44 | 24be9d9e10f8e0f4fa5d222811fd1ab5831d9f28 | /flask_homework/fruits/__init__.py | 595e0ef7a15ca053cb92a2dae39ae1904356b1b7 | [] | no_license | zulteg/python-course-alphabet | 470149c3e4fd2e58bdde79a2908ffba1d7438dc1 | dd2399f6f45c42c5847cf3967441a64bdb64a4cf | refs/heads/master | 2020-05-14T21:25:02.627900 | 2019-09-17T10:19:51 | 2019-09-17T10:19:51 | 181,962,678 | 0 | 0 | null | 2019-06-20T08:39:27 | 2019-04-17T20:20:47 | Python | UTF-8 | Python | false | false | 580 | py | from flask import Blueprint, render_template
from flask_homework.utils import FileManager
fruits = Blueprint('fruits', __name__, template_folder='templates')
@fruits.route("/fruits")
def list_page():
return render_template("fruits_list.html",
items=FileManager.load_data('fruits'))
@... | [
"zulteg@gmail.com"
] | zulteg@gmail.com |
57f8563ac31d86c804a07aaf81e266e5356e7ba3 | 5a29d690a031ba75d2f6747cf321a8eef70781f7 | /mgrsconverter2.py | cb3f27885c4dd83af33dd01d25b50bc16108d6a4 | [] | no_license | J-Rigondo/MGRS_CONVERTER | 59da54b20c026284b26c1d10095ca4818e353770 | 3387c304d00d1f7ac60c4347e4f654cb1e6b7ff5 | refs/heads/master | 2020-11-28T11:08:14.430238 | 2019-12-23T17:16:13 | 2019-12-23T17:16:13 | 229,793,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,600 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mgrsconverter2.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QFileDialog
from PyQt5.QtWidgets import QMessa... | [
"futuregoing@naver.com"
] | futuregoing@naver.com |
ae2778df236dfea2d0ad68d6e05d16487079ed94 | 77ac20270aaa1e17c83c9aeaf889484b1876d050 | /specialized_scripts/compare_filtered.py | e97f473e836c340f06a32d4cd148a1a88bc1dd3d | [] | no_license | nmmsv/str-expansions | 523b5a310155d5de04dde3a93baaac77fd9efe75 | 452aa145cfdcf98bbc1031c1b2233c80f1c337a0 | refs/heads/master | 2021-01-25T05:50:33.043826 | 2019-09-03T22:45:53 | 2019-09-03T22:45:53 | 80,690,312 | 0 | 1 | null | 2017-02-02T03:37:11 | 2017-02-02T03:37:10 | null | UTF-8 | Python | false | false | 2,025 | py | import sys
sys.path.append('/storage/nmmsv/str-expansions/functions/')
from realignment import expansion_aware_realign, classify_realigned_read
from load_info import load_profile, extract_locus_info
from extract_genome import extract_pre_post_flank
read_class = 'srp'
nCopy = 70
filt_path = '/storage/nmmsv/expansion-ex... | [
"mousavi@ucsd.edu"
] | mousavi@ucsd.edu |
d81392e5431f8db292da4368dccbb0c50a21cc4e | 1e7b6b5460e66e6673be7d8acdf0109d81bb8148 | /HappyNumbers.py | b3fdf7bf4c05adfa02bfbcaa8d8eeeca8c0ad312 | [] | no_license | paulocesarcsdev/HappyNumbers | a0d5a7c9a659dc57c7ea4b38cef3408563eb18ae | 6f21552e4dd0d2aa0d410487e44280a27f18c436 | refs/heads/master | 2021-04-29T01:32:01.022418 | 2016-12-31T21:14:33 | 2016-12-31T21:14:33 | 77,750,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | def sum_of_squares(number):
return sum(int(char) ** 2 for char in str(number))
def happy(number):
next_ = sum(int(char) ** 2 for char in str(number))
return number in (1, 7) if number < 10 else happy(next_)
assert sum_of_squares(130) == 10
assert all([happy(n)for n in (1, 10, 100, 130, 97)])
as... | [
"paulocesarcs.dev@gmail.com"
] | paulocesarcs.dev@gmail.com |
700906fa49f7fb20300de817958ec2be320c619f | e2271fa026cdfb5aaf145970e1d9252b8c2dd001 | /atcoder.jp/dp/dp_g/Main.py | dd25435da4afbe84870cf509c95be35a324942ae | [] | no_license | tsuchan19991218/atcoder_achievement | 802daaae640d5157f1bd55cc5d6ef08546fc4ca2 | 15502aba97dada1809deed05ea6c349122578a01 | refs/heads/master | 2023-06-11T11:52:11.896838 | 2021-07-02T20:44:40 | 2021-07-02T20:44:40 | 290,015,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import sys
sys.setrecursionlimit(2000)
N, M = map(int, input().split())
x = [0] * M
y = [0] * M
G = [[] for _ in range(N + 1)]
for i in range(M):
X, Y = map(int, input().split())
x[i] = X
y[i] = Y
G[X] += [Y]
dp = [-1] * (N + 1)
def f(n):
if dp[n] != -1:
return dp[n]
res = 0
for ... | [
"ylwrvr.t.kogagmail.com@MacBook-Pro.local"
] | ylwrvr.t.kogagmail.com@MacBook-Pro.local |
a39b67845b740777a18f5c4f2e0e14c6291115ed | d2c4151eff768af64946ababc2e41c13d8973cd3 | /practice/ARC037_b.py | f0e197b3a9f648d1db102f36cfa6409682550efc | [] | no_license | Intel-out-side/AtCoder | 2de19b71981247135432aed2d6d9c2a16c3ab7f0 | 0c419d2df15fff02032432cb1b1323612484e16e | refs/heads/master | 2022-06-23T04:21:12.886072 | 2022-06-13T14:39:07 | 2022-06-13T14:39:07 | 235,240,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | N, M = list(map(int, input().split()))
#隣接リスト表現
connection = [[] for _ in range(N)]
for i in range(M):
u, v = list(map(int, input().split()))
connection[u-1].append(v-1)
connection[v-1].append(u-1)
#すでに訪問されたかどうか
visited = [False] * N
#木の個数のカウンター
counter = 0
def dfs(now, prev):
global flag
visit... | [
"so.eng.eng.1rou@gmail.com"
] | so.eng.eng.1rou@gmail.com |
648c857f3216d922f48b7f190574f85ba07e289b | 6640d7daa72a65184365ce623f8ead5a06d375fa | /createCloudFrequency_netCDF.py | 7522003f29c69a63bd352ea452cd1dd7ab696080 | [] | no_license | mikejwx/main-bin | 862289bca608dadb96ee7fa9b9ff756c0346920e | f1b464643f882059479eb40393ebd9a945be52c0 | refs/heads/master | 2020-04-17T04:53:19.261046 | 2019-02-26T16:10:56 | 2019-02-26T16:10:56 | 166,251,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,567 | py | #!python
#Michael Johnston:
#=========================================================================
#creates a netCDF of all the cloud frequencies for each day in my dataset.
#POR 1 May to 31 October, 2012 to 2016
#=========================================================================
import numpy as np
from net... | [
"mcjohnston2803@gmail.com"
] | mcjohnston2803@gmail.com |
f706bbd5ae13716cb9d5b0e0bded1c7510b28021 | c1533ec365dd1b43dc6b6c1c17b7d1a63557f601 | /twitterbot.py | 1d02d684f4b2a17dc9e7c95c88a3169d5e8ab9a6 | [] | no_license | sonya-irsay/phone-leak-twitter | b956337b9d101961c1c3df586f45f71e1a90b154 | ec8abe37bf1d89b3daa65e471e55e477f6047485 | refs/heads/master | 2020-03-20T11:26:10.629443 | 2018-06-15T08:51:06 | 2018-06-15T08:51:06 | 137,403,050 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,354 | py |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import tweepy, time
#Twitter credentials
CONSUMER_KEY = 'YzlS7uAWdXmhEDUhc4zDoWQL6'
CONSUMER_SECRET = 'fTPQvdgbfQ0blPdGLlZJVxvwJEwh9UG6VdpoNRX1KEEomA9zbZ'
ACCESS_KEY = '991674087721324547-hm452a50s96kJdFcSTndtqgWBKX5fw3'
ACCESS_SECRET = '2rNTYmqoPHCeVMaDgtYdsJUC9ICFUsqiU... | [
"sanie96@gmail.com"
] | sanie96@gmail.com |
19e8a2c0ff2bba71ee5e1780d86bf55c513dae39 | 84d891b6cb6e1e0d8c5f3e285933bf390e808946 | /Demo/PO_V4/Common/basepage.py | 28d4919ba894a2988f328f434b37108a302dffdf | [] | no_license | zzlzy1989/web_auto_test | 4df71a274eb781e609de1067664264402c49737e | 3e20a55836144e806496e99870f5e8e13a85bb93 | refs/heads/master | 2020-05-24T10:37:29.709375 | 2019-10-28T06:14:31 | 2019-10-28T06:14:31 | 187,230,775 | 2 | 0 | null | 2019-06-20T11:06:32 | 2019-05-17T14:29:11 | null | UTF-8 | Python | false | false | 4,954 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Name: basepage
# Author: 简
# Time: 2019/6/18
from Demo.PO_V4.Common import logger
import logging
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import dat... | [
"394845369@qq.com"
] | 394845369@qq.com |
b6d96c8b7e7483ab8e67d4d427d162850d8442c8 | 96f47ca4966969c34e2ed051f67a2492d2fbb4ef | /venv/bin/easy_install | a6f53cab5b0c6486dede829266f9574ac831bc89 | [
"MIT"
] | permissive | williamHuang5468/StockServer | d4fe9203e489aa2aa6d63c32afe6eab0beccbd10 | 9a70d0dc2f36b6f1ccb61c593334d518415e166f | refs/heads/master | 2021-01-25T05:51:07.132994 | 2017-02-16T15:03:40 | 2017-02-16T15:03:40 | 80,696,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | #!/home/william/Desktop/StockServer/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"chobits5468@gmail.com"
] | chobits5468@gmail.com | |
3068f2b6c059a9d5ede0614ea0c411a4784d3fe2 | dbd496c9405c7b6b81c49818f16c6f94f84ee0a6 | /T1038_김진현/Object_dtection/mmdet/models/necks/bifpn.py | 16bdb647ead2609488ae8b0b5c7063a0f376ec6c | [
"Apache-2.0"
] | permissive | bcaitech1/p3-ims-obd-pepsimintchocolatepineapplepizza | e40e6483c5de4fb6d2893e37d5de3266c7cde19d | ac6a29dd4b8e3edb1043c1ce491ad61983391bfd | refs/heads/master | 2023-05-02T16:20:33.033766 | 2021-05-22T13:20:37 | 2021-05-22T13:20:37 | 361,668,695 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,067 | py | """ Mission """
import functools
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import ConvModule, xavier_init
from mmcv.runner import auto_fp16
from mmcv.cnn import build_norm_layer
from torch.nn.modules.batchnorm import _BatchNorm
from mmcv.cnn import constant_init
from ..builder im... | [
"wlsgus1109@gmail.com"
] | wlsgus1109@gmail.com |
edcc6fa1b89f75d6e53dbb38c288b5217ea5e32e | 61b00ed06c3d3cee37935dbc093649f7d7bf12ff | /toeprint_seq_main.py | 7b9a1db7d15d953a5f756918b4947acd168b9247 | [
"MIT"
] | permissive | borisz264/toeprint_seq | d7b9559b723c7a329ea4769d5c4fed95a62bb6ab | 370bf91b3487b84286c42f2f7e41ab6cc41ba958 | refs/heads/master | 2021-01-19T08:23:43.010949 | 2015-07-30T21:29:34 | 2015-07-30T21:29:34 | 39,972,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,010 | py | import operator
import aColors
__author__ = 'boris'
"""
Intended for processing of toeprint-seq data from defined RNA pools
Based on Alex Robertson's original RBNS pipeline, available on github
"""
import sys
import matplotlib
import matplotlib.pyplot as plt
plt.rcParams['pdf.fonttype'] = 42 #leaves most text as actua... | [
"boris@Boriss-iMac.local"
] | boris@Boriss-iMac.local |
1417dbe6d3773f4f8c5c60ef39421cb2a9fda69c | 1db3e25d20771804923dd22c5291fb27621669f9 | /self_daily/apriori_in_actions.py | 030826c098363b67a430e84fb21cc105e800d599 | [] | no_license | tusonggao/manbing_apriori | 11d5eb4b81768bf0952ba78ce0a13f915325de13 | 5c5b188f267d6219d80177c3fe03334e2e2136a3 | refs/heads/master | 2020-04-17T17:42:07.246473 | 2019-01-25T12:58:00 | 2019-01-25T12:58:00 | 166,794,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,513 | py | from numpy import *
import pandas as pd
def loadDataSet():
# return [[1, 3, 4], [2, 3, 5], [1, 2, 3, 5], [2, 5]]
# return [[1, 3, 4],
# [2, 3, 5],
# [1, 2, 3, 5],
# [2, 5],
# [3, 4, 7, 9],
# [1, 4, 8],
# [2, 3, 4],
# [2, 5],
... | [
"tusonggao@163.com"
] | tusonggao@163.com |
67cddc681788dd8e3e3ed2cea94690b0d9fc72e6 | b99dd37ae91dd5e5ee6b0ed0cad9d5ba376a5aab | /week2/ex4/color_change_inrange.py | 02edc0239a3b279003fdf4e4ca647d94e12f73df | [] | no_license | Dave-Elec/tutorials | d7f4f6b43ff18ba200fda23d57d27b175f89e03a | a2a8d8b7a21285e8e33d1617aab9146e65ce683f | refs/heads/master | 2023-09-02T01:07:59.886897 | 2021-11-17T14:33:41 | 2021-11-17T14:33:41 | 426,303,533 | 0 | 0 | null | 2021-11-09T16:25:55 | 2021-11-09T16:25:52 | null | UTF-8 | Python | false | false | 3,002 | py | import numpy as np
import cv2 as cv
import argparse
def color_change(input_img, input_hex, input_range, output_hex, output_img):
def HEX2HSV(hex):
hd = {'0':0,'1':1,'2':2,'3':3,'4':4,'5':5,'6':6,'7':7,
'8':8,'9':9,'A':10,'a':10,'B':11,'b':11,'C':12,
'c':12,'D':13,'d':13,'E':14,'e':14,... | [
"eskenderbesrat@gmail.com"
] | eskenderbesrat@gmail.com |
b88b6165ffa7e0e3c5f8e34b06d5caa07634dbab | be9fdce8e4cb5644ee25b5de789c5990d5c71175 | /flask-chatterbot/Prueba/metro_logic.py | 228d97b542967e6e0e92535678bbf6294c46423e | [] | no_license | andrew962/finalPro_5 | 5e9c1196239d8a19c67841f9960eee48d2f98822 | e02e1d2c6bd81e3feb97344fc92e3ac094bc67f2 | refs/heads/master | 2020-03-24T05:51:22.169442 | 2018-08-12T00:29:15 | 2018-08-12T00:29:15 | 142,505,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | from __future__ import unicode_literals
from chatterbot.logic import LogicAdapter
import re
class MyLogicAdapter(LogicAdapter):
def __init__(self, **kwargs):
super(MyLogicAdapter, self).__init__(**kwargs)
def can_process(self, statement):
"""
Return true if the input statem... | [
"abadia962@gmail.com"
] | abadia962@gmail.com |
5d2c5b151d7b16f230ab8f1a7a64c307f5eea728 | 5c1cea06a57373224c09f0f8ebc03cfdc16e2ef8 | /climate_flask.py | 3cb5814ce35272fadc57a541a2b7006463cc1e92 | [] | no_license | PaulaJorgensen/sqlalchemy-challenge | 5290057b8b8fcd3097b9e9bda7b1a1dc975c12b6 | b194e8e45cd8a943720d50836b7adf19ad3c20b0 | refs/heads/master | 2020-09-11T09:39:26.922891 | 2019-11-24T00:10:26 | 2019-11-24T00:10:26 | 222,024,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,976 | py | import datetime as dt
import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
engine = create_engine("sqlite:///Resources/hawaii.sqlite")
Base = automap_base()
Base.prepare(eng... | [
"53984747+PaulaJorgensen@users.noreply.github.com"
] | 53984747+PaulaJorgensen@users.noreply.github.com |
f2c53b1a3d952b877976848f098613817402f694 | 16ec54556fe22d46aa9ec659bf63c465d9eef3dd | /myapp/models.py | 202655da7b9b208b78b2d6b5c2dbf3a5d58622f7 | [] | no_license | CzNX/Craigslist-clone-utube- | 37e273cc1dce78c352dd53428e07425514b5978b | ba9b2fecc861088be0e4b3d3916a8fd32ee2e24c | refs/heads/main | 2023-02-27T04:57:36.978472 | 2021-02-10T03:38:29 | 2021-02-10T03:38:29 | 337,607,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from django.db import models
# Create your models here.
class Search(models.Model):
search = models.CharField(max_length=500)
created = models.DateTimeField(auto_now=True)
def __str__(self):
return self.search
class Meta:
verbose_name_plural = 'Searches' | [
"sijanshres0@gmail.com"
] | sijanshres0@gmail.com |
62a21e5eed5dbc606019cbd105e6fc4445533079 | e3150323046fabc5a1c555b50e135b9a72f53302 | /doi4bib/import_dois.py | 51495dfc5a53be339898a1ff6ac520cee6b16941 | [
"MIT"
] | permissive | sharkovsky/doi4bib | f75b1b8de97e6bca199ba2065378f774fb37f417 | c83a00fbc315a0dacb6a308c690b4e4f545e9c2e | refs/heads/master | 2020-07-01T20:49:28.022253 | 2019-08-18T14:18:14 | 2019-08-18T14:18:14 | 201,296,699 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,013 | py | # -*- coding: UTF-8 -*-
"""
This file was copied from
https://github.com/OpenAPC/openapc-de/blob/master/python/import_dois.py
The only modifications I made were to remove some lines that were not
useful to me
"""
import json
from urllib.error import HTTPError
from urllib.parse import quote_plus, urlencode
from urlli... | [
"francesco.cremonesi@epfl.ch"
] | francesco.cremonesi@epfl.ch |
a917784c91af5a8fbff170296cdc0c44eddc539a | 5db00b027e7dc84cbe00a4a66a27bc759ad48b0b | /SR_no_action.py | d7532526aac747c593a8bedf11bdd3e3ddff072d | [] | no_license | idamomen/predictive_representations | 032576822c08a2d6293925ca7747b2bca0fdb94a | 93eaa8e7a43052aa9866db6d7f5a5aff263ecebd | refs/heads/master | 2020-04-28T13:33:55.441076 | 2019-03-15T23:07:00 | 2019-03-15T23:07:00 | 175,309,659 | 14 | 0 | null | 2019-03-12T23:09:40 | 2019-03-12T23:07:05 | null | UTF-8 | Python | false | false | 3,811 | py | import numpy as np
import matplotlib.pyplot as plt
import random
import math
class SR_no_action():
''' This class defines a reinforcement learning agent that
learns the state-state successor representation without taking actions.
Thus, the resulting SR matrix is in the service of prediction.
Initalization par... | [
"noreply@github.com"
] | idamomen.noreply@github.com |
d5cf10eeebc72cd06bb9ec289310d5a2326fc073 | ee1e73bbe2b9f61f019e9001ff7c48eeffba1ae2 | /configs/cascade_mask_rcnn_r50_fpn_1x.py | 80002f423143b2601b15ade9fcd308c199c41906 | [
"Apache-2.0"
] | permissive | Leo-xxx/Libra_R-CNN | f246838636983c824ea1b28b02a878038c6c8773 | 387fdb32fc35067cca3af04f720cb5078b5fa529 | refs/heads/master | 2020-06-13T12:06:09.243520 | 2019-05-07T12:00:20 | 2019-05-07T12:00:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,609 | py | # model settings
model = dict(
type='CascadeRCNN',
num_stages=3,
pretrained='modelzoo://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='pytorch'),
neck=dict(
type='FPN',
... | [
"pangjiangmiao@gmail.com"
] | pangjiangmiao@gmail.com |
0eef70b0027c2b33b256ef719347fe45d651db2a | 9054c9d94680f1228c4188fe348df183c2d3f5af | /Data Structures in python/tuples.py | a3886f87f28d0c0a73f5eb3cae4ac3fe1b7b8d70 | [] | no_license | adityasharan01/coding-interview-patterns | ad2b434a80693b087629d6e2a606b0d3f0eb2782 | 8e402dc3969c508d099465ac6bb1f8220747efa5 | refs/heads/main | 2023-07-16T02:58:37.551162 | 2021-09-04T17:34:14 | 2021-09-04T17:34:14 | 336,842,301 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 738 | py |
# How to create a Tuple?
newTuple = ('a', 'b', 'c', 'd', 'e')
newTuple1 = tuple('abcde')
print(newTuple1)
# Access Tuple elements
print(newTuple[0])
# Traverse through tuple
for i in newTuple:
print(i)
for index in range(len(newTuple)):
print(newTuple[index])
# How to search for an element in Tu... | [
"noreply@github.com"
] | adityasharan01.noreply@github.com |
b11661ce076c847699fc4abaa20da2a21283dd48 | d1aa6e7d5631d7806531660febbd1f856eaeece7 | /python/paddle/audio/__init__.py | e76a80300f5e61706374423f7f2b11265b1b2dd9 | [
"Apache-2.0"
] | permissive | gongweibao/Paddle | 510cd4bc0ef89bc6ccee7b6b8eca52c00e014b77 | 60f9c60cd8196c66c391d79c35d341e9072f8838 | refs/heads/develop | 2023-03-13T17:43:35.675875 | 2022-09-20T08:46:15 | 2022-09-20T08:46:15 | 82,279,237 | 3 | 2 | Apache-2.0 | 2021-05-26T06:17:43 | 2017-02-17T09:16:16 | Python | UTF-8 | Python | false | false | 726 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | gongweibao.noreply@github.com |
4f7ae8e0f85b6aed6c042801447335bcec8276b9 | b46be9d018a7c337ec93802171faf5126c37c1d2 | /Feb.5.Assignment.py | 09955fcf65a3ef7a237b6c868ce9801e7093181a | [] | no_license | jmoyang/DATA310 | 42d428344aa7a2b710e25efc6897f664f1d2f779 | b735ff7a8c25e414f877f7ae8e97e93f5ce00040 | refs/heads/main | 2023-04-30T00:11:17.417068 | 2021-05-18T17:34:29 | 2021-05-18T17:34:29 | 336,088,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | import tensorflow as tf
import numpy as np
from tensorflow import keras
model = tf.keras.Sequential([keras.layers.Dense(units=1,input_shape=[3])])
model.compile(optimizer='sgd',loss='mean_squared_error')
x1 = np.array([4.0,3.0,4.0,5.0,2.0,3.0],dtype=float)
x2 = np.array([3.524, 2.840, 3.680, 3.051, 1.479, 1.238... | [
"noreply@github.com"
] | jmoyang.noreply@github.com |
4b7de08551036eb064c6d636b9a71cbe82fa04d7 | e2a1a6eb081f7b8a13c3112e349436e47b5ebf6f | /main.py | 75bff8c77bd7d03f41f6d95e91590d6d1c753b52 | [] | no_license | MrStraw/labibi | 45a8589a147e109992f7632ddb96d5aff8752b97 | 8aa7894721ba31b2772678837d9f126c5e7faa39 | refs/heads/master | 2023-06-27T23:48:51.322093 | 2021-08-03T15:08:56 | 2021-08-03T15:08:56 | 391,997,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | from screen import screen_lab
screen_lab(10)
| [
"metais.simon@icloud.com"
] | metais.simon@icloud.com |
1cf6a057d9544d3689c08f37ca972b72d9bb63d0 | 991c967a3e28e4287e6b9b4600e1c72dd2513aa5 | /src/solutions/Prob47.py | 73f08564d4a3466dfd9260f96f4587016bac287e | [] | no_license | Beadsworth/ProjectEuler | 0e0f76a4ba54b3e2e7b6ee852a2003e255c259d0 | b6360ca6b7ecee514b80fe2bf04d023c74c749be | refs/heads/master | 2022-11-30T20:32:38.221316 | 2022-11-28T02:08:15 | 2022-11-28T02:08:15 | 68,401,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from EulerHelpers import find_prime_factors
num = 1
num_unique = 4
consec_num = 0
num_list = []
while consec_num < num_unique:
num_factors = find_prime_factors(num)
distinct_factors = set(num_factors)
if len(distinct_factors) == num_unique:
consec_num += 1
num_list.append(num)
else:
... | [
"jamesbeadsworth@gmail.com"
] | jamesbeadsworth@gmail.com |
7e8ab4f848c58846c0751daa634f9deed32d58ae | 9b9b935030eaaae70fcab14e15eddeb9bf4ecf2a | /main/feeds.py | b545ed253e1354eef1f531a41fa833481734bb65 | [] | no_license | camscars/blog | d296b87cb913005d32170e7bc4061c3126847430 | 120eed8432daae8894417123d91f11ca3df05fd8 | refs/heads/master | 2021-01-21T01:51:32.393172 | 2016-05-20T21:42:42 | 2016-05-20T21:42:42 | 54,678,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | from django.contrib.syndication.views import Feed
from django.template.defaultfilters import truncatewords
from .models import Post
class LatestPostsFeed(Feed):
title = 'My Blog'
link = '/blog'
description = 'New Posts of my blog'
def items(self): #retrieves the objects for the feed (last 5)
return Post.publi... | [
"camscars702@gmail.com"
] | camscars702@gmail.com |
6a745d33214b2d62947f9172a87d5c8f91a4a1c2 | 96438b993168f98ea291d22528478c90499759f9 | /nn_model.py | 7c4f23249766d83085def0112abf654e117b4115 | [] | no_license | Nerkys/Sequential-neural-network | 36fb130b37c5d839cad35ad937d1be55a38f5e81 | 62a70aadd242f2b152db93a9b458325c934f681b | refs/heads/master | 2022-07-13T15:37:26.664060 | 2020-05-13T13:53:42 | 2020-05-13T13:53:42 | 263,640,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,065 | py | import numpy as np
from time import time
import dill as pickle
#from matplotlib import pyplot as plt
#from pandas import DataFrame
#from sklearn import datasets
#from collections import Counter
#from sklearn.datasets import make_moons
#from sklearn.datasets import make_circles
def sigmoid(x):
#print(x)
r... | [
"noreply@github.com"
] | Nerkys.noreply@github.com |
097992e6ce01179fdfaf8076e396e45f16f1010a | 72715d8c393d342827f9c7fc71fd0b7e1de5d550 | /app/blog/models/post.py | 88fab0506a7e483c60d4da7e234490bc8dbdadca | [] | no_license | Chrisaor/blog_model | af204a1618158182a3917247063a6541ac74d874 | ff90bd957fe55113763469b74c422293a5c94584 | refs/heads/master | 2020-03-21T01:53:14.495547 | 2018-06-21T01:50:23 | 2018-06-21T01:50:23 | 137,967,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | from django.db import models
from blog.models import BlogUser, Base
__all__ = (
'Post',
'PostLike',
)
class Post(Base):
user = models.ForeignKey(BlogUser, on_delete=models.CASCADE)
title = models.CharField(max_length=100)
content = models.TextField()
def __str__(self):
return f'{self... | [
"pchpch0070@gmail.com"
] | pchpch0070@gmail.com |
006438b4953240d82bb232e1982630410531582a | d2c8311b1e96f9ef6d627e3844655986b2b50c7f | /dbHandle.py | 58948ef5801e9a563f3c6dbc29fc25766c73b91c | [] | no_license | snuarrow/pubgStatz | 3277b26d24a1ed41f5a76e47bd41dbb5a23c50b8 | 10951c0ab7a7b618f70cd35a1056b4fbff144bb9 | refs/heads/master | 2022-04-27T01:19:15.572286 | 2020-04-01T15:24:07 | 2020-04-01T15:24:07 | 178,664,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,014 | py | import psycopg2
import pandas as pd
import json
def getQueryString(filename: str) -> str:
fd = open(f'sqlQueries/{filename}', 'r')
sqlFile = fd.read()
fd.close()
return sqlFile
class DBHandle:
def __init__(self, host, port, dbname, user, password):
self.connection = self.getDBConnection(ho... | [
"hexvaara@hex.local"
] | hexvaara@hex.local |
bc1188c44300190c5c0aafd1cbaaae2fd4a99ed7 | 680539004a873745a2660fb99807d4d4530a25d7 | /universityData/settings.py | 8ff42d9a7c34f894aeb7595b1411abad62ee2222 | [] | no_license | raza8899/universityDetails | c04cad2b1014c608c7ae4fecbea97debcd234933 | ef026e574e449d78aa45b37a6943145884c3ad53 | refs/heads/main | 2023-04-21T01:03:01.305398 | 2021-05-11T11:38:21 | 2021-05-11T11:38:21 | 366,357,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,227 | py | # Scrapy settings for universityData project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-mid... | [
"ar678@uni-rostock.de"
] | ar678@uni-rostock.de |
67fe8d88409a4af7af4cae12257ceceb2b8b2187 | 70f1535e1f1683b16c848d97764fe50724b3e157 | /pythonProject/Curso Em Video Python/Mundo 1/ex030.py | 1218c463aff1e481795f75b0a1415d450356c228 | [] | no_license | DanielMoscardini-zz/python | f2ce0e84290a70b3be2ec804b96b3bbaf6b9f9d0 | 5be5254e8c6e701cc9bb9ffafb29f220edde99bf | refs/heads/main | 2023-01-25T04:41:53.638423 | 2020-12-08T20:14:15 | 2020-12-08T20:14:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | """
Faça um software que leia um numero e retorne se o mesmo é par ou impar
"""
numero = int(input('Digite o numero: '))
if (numero % 2 == 0):
print(f'Numero {numero} é PAR')
else :
print(f'Numero {numero} é IMPAR')
| [
"moscardinibdaniel@gmail.com"
] | moscardinibdaniel@gmail.com |
27fa20b1c7823efad0f7d9bdb7ffdfa1796019b9 | 92a622177a1c17055d6834cdbe9bbd99e41c7493 | /segregation/tests/test_entropy.py | bdded79a2684142bc3033d7ad62dc9aa30465df0 | [
"BSD-3-Clause"
] | permissive | MyrnaSastre/segregation | b6d843ffafef5d469a5ed30341629d741819e440 | 6d430f7f00dccc2cf86973f34de3d2ccc284eb9f | refs/heads/master | 2020-05-26T21:01:38.183941 | 2019-05-21T20:52:19 | 2019-05-21T20:52:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | import unittest
import libpysal
import geopandas as gpd
import numpy as np
from segregation.non_spatial_indexes import Entropy
class Entropy_Tester(unittest.TestCase):
def test_Entropy(self):
s_map = gpd.read_file(libpysal.examples.get_path("sacramentot2.shp"))
df = s_map[['geometry', 'HISP_', 'T... | [
"renanxcortes@gmail.com"
] | renanxcortes@gmail.com |
3625442af4bbc418e56b7c795dfefbe733112bd6 | 6d424b14de9c8d3ab77a8cc10be1985bbc972c08 | /sorting/quick_3_string.py | 8e2b5f503ce3e03d4b245254044c13987fb0b1b4 | [] | no_license | vporta/DataStructures | b784b0b398a1e5e16ec6f0bab6ddd10cb6156b43 | f25e73e3ad98309029158e49100ceb8f33e40376 | refs/heads/master | 2021-03-16T15:44:17.125827 | 2020-09-18T18:45:20 | 2020-09-18T18:45:20 | 246,920,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,218 | py | """
quick_3_string.py
Reads string from standard input and 3-way string quicksort them.
"""
import random
class Quick3String:
CUTOFF = 15
@classmethod
def sort(cls, a):
random.shuffle(a)
n = len(a)
cls.__sort(a, 0, n - 1, 0)
assert cls.__is_sorted(a)
@classmethod
... | [
"vporta7@gmail.com"
] | vporta7@gmail.com |
e24fca2d24902d76ff8e27ebeec1c0580313050a | 25ccaaeeb681b18eaf5a5ad60cc228a4c6a4fdca | /say/say.py | 94af79667f3d1474f4bb957f6468cc9a79b9b2e5 | [] | no_license | ign0re-me/ignorance-cogs | 04e0b1eabd4dbc96384fdb67ccf00267e1e06b76 | 85f49791ebf46c038feab48848b2ef1eb77d16ca | refs/heads/master | 2020-07-03T06:27:18.805124 | 2016-11-22T05:39:48 | 2016-11-22T05:39:48 | 74,191,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | import discord
from discord.ext import commands
from random import choice
from .utils import checks
class Say:
"""Repeats what you tell it to."""
def __init__(self, bot):
self.bot = bot
@commands.command(pass_context=True, no_pm=True)
async def emsay(self, ctx, *, text):
"""Embed ... | [
"me@calebj.io"
] | me@calebj.io |
a85175eff5a9258e69ccc1a4f8ce72f63fc3e667 | fa50e0ad91bfa00babdbcdde21fa2cea63089ce0 | /spacecraft.py | 59c3b5343318b0334f7116b2a012021574597acc | [] | no_license | Ferogle/PyGame | 5931e7338401fecd0c1308fb4b2ef88ffee3f080 | 9c3ad74d7922613c42f481608082c9c9a519d218 | refs/heads/master | 2020-09-27T15:52:08.983305 | 2019-12-07T17:37:34 | 2019-12-07T17:37:34 | 226,549,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,744 | py | import pygame
import random
pygame.init()
screen = pygame.display.set_mode((800, 600)) # creating a new window in pygame
pygame.display.set_caption("Space Invaders")
icon = pygame.image.load('ufo.png')
pygame.display.set_icon(icon)
background = pygame.image.load('background.png')
# player info
playerImg = pygame.imag... | [
"noreply@github.com"
] | Ferogle.noreply@github.com |
0fc0dcf056539984c631359a282b0b6e6e463db4 | 977cfd3762b222c2089885cdf6c1ab4ec54f3698 | /verbigsum.py | 033eb06d880b713cb519d7447a2e0db430bca429 | [] | no_license | 3797kaushik/turbo-fortnight | 82c99316e7907701bbf0b5f5e6d362d6126e41a3 | a91583ac4dbd25240ca0e817a3a1eb4976a76fb2 | refs/heads/master | 2020-04-01T23:04:25.369824 | 2018-10-20T18:45:55 | 2018-10-20T18:45:55 | 153,740,359 | 0 | 0 | null | 2018-10-19T07:03:58 | 2018-10-19T07:03:57 | null | UTF-8 | Python | false | false | 337 | py |
'''
hacker rank solve
https://www.hackerrank.com/challenges/a-very-big-sum/problem
'''
def aVeryBigSum(ar):
get_you = 0
for data in ar:
get_you += data
return get_you
if __name__ == '__main__':
list_data = [1000000001, 1000000002, 1000000003, 1000000004, 1000000005]
aVery... | [
"noerdafi@gmail.com"
] | noerdafi@gmail.com |
c472f8323f159854d61bbcbddd51cdb5ce542743 | e0904632b00d984ab02dfc00e7599ee7efda6fcb | /netfacd/interface_reader.py | 97238939327019c8152f57399b198973bf76d1e4 | [] | no_license | jdsdba/mywork | c88331b4d4955d6cd9ecb629c1966c28973c55fb | f5ec865409d8623e4224e51356cfd476b507b419 | refs/heads/main | 2023-04-25T01:28:15.418075 | 2021-05-14T20:34:18 | 2021-05-14T20:34:18 | 366,103,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | #!/usr/bin/env python3
import netifaces
import pprint
#r$print(netifaces.interfaces())
pprint.pprint(netifaces.interfaces())
for i in netifaces.interfaces():
print('\n****** details of interface - ' + i + ' ******')
try:
print('MAC: ', end='') # This print statement will always print MAC without an e... | [
"jdsdba@gmail.com"
] | jdsdba@gmail.com |
bc086dc906a59a741e83f6ac2d3481a925714071 | c5a7adbc55695ce67339a628c26a1fe3267a29b1 | /hello.py | 27dab27e703e59c599907fd0e3af012bb6b226fb | [] | no_license | BladLust/Dailyrepo | f0458a6c973a9560599271047a65b8aec8239465 | 7725ba7bab04e69abacf09d2804f0eca518d3f77 | refs/heads/master | 2020-07-22T19:04:20.617745 | 2019-09-18T03:30:29 | 2019-09-18T03:30:29 | 207,299,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | print('I am currently learning how to use github and terminal!')
| [
"timty.tsui@gmail.com"
] | timty.tsui@gmail.com |
ab78e7545456303929c5684ebb58061e93cbba9c | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /GIT-USERS/TOM-Lambda/CSEU4_DataStructures_GP/test_stack.py | 287a6543fd02f56c987fcf4cd62affe55b794cc3 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 1,395 | py | import unittest
from dll_stack import Stack
class QueueTests(unittest.TestCase):
def setUp(self):
self.s = Stack()
def test_len_returns_0_for_empty_stack(self):
self.assertEqual(self.s.len(), 0)
def test_len_returns_correct_length_after_push(self):
self.assertEqual(self.s.len(), ... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
cf357e04064d6d3e74c48dbae8311733aa712d82 | f88a576f53b594fe768f69190e282efc8436e80c | /Voting/Voting/wsgi.py | 501d61fc560a7f26229f3919da786184f903b001 | [] | no_license | CrazyEinsten/WEB-SERVERPROJECT | 016aca1f038514c86d06145509ebdc5ac9c8afca | fa4d5d594fc6b49914cc7bf1eb5be78faaca3137 | refs/heads/master | 2021-08-10T11:34:39.573931 | 2017-11-12T13:54:09 | 2017-11-12T13:54:09 | 110,434,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """
WSGI config for Voting project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"981073706@qq.com"
] | 981073706@qq.com |
0a4664aabb33ec7505fb357048897565550b91d2 | 19b223fd7858b98eecc11614ee76332b6ee599ed | /Pokemon_Game/Package_Animal/Creature.py | b2f2cbd56aba7e3eb4e429bec39c4f39eef94345 | [] | no_license | MaximeWbr/Expedia_Project | b989d3a56aee4346b67a2bb936596c98a1601fa7 | e6d0b2f84dbc194dc6f426b0ba7d04b45f32a9ee | refs/heads/master | 2020-06-24T14:51:51.854588 | 2019-07-30T19:50:45 | 2019-07-30T19:50:45 | 198,991,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,601 | py | import random
from Package_Animal.Type import TypeEnum
from Package_Animal.AllTypes import *
class Creature:
def __init__(self, levelMax, valTypeEnum):
self.experience = 0
self.type = None
typeEnum = TypeEnum[valTypeEnum]
if typeEnum == 'Grass':
self.type = Grass()
self.name = GrassCreature[random.... | [
"webermax@free.fr"
] | webermax@free.fr |
8748b47128cdf7a282f726bbab150034377a5697 | 4f9929e46b2f0a52fd0effd902d541abf9b72155 | /noxfile.py | c0216f73b78430aad4710dfbf8192bc21d25fc3b | [
"BSD-3-Clause"
] | permissive | parafoxia/sqlite2pg | 6a95ee5551d08c013b9f00e7e0a11bd78d542b98 | efbbc31e82aaac7fd470091c6a30fc1315d499c4 | refs/heads/master | 2023-07-27T17:16:52.522485 | 2021-09-09T05:07:04 | 2021-09-09T05:18:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | import nox
def install(session: nox.Session, dev: bool = False) -> nox.Session:
if dev:
session.run("poetry", "install", "-n", external=True)
else:
session.run("poetry", "install", "-n", "--no-dev", external=True)
return session
@nox.session(reuse_venv=True)
def testing(session: nox.Ses... | [
"51417989+Jonxslays@users.noreply.github.com"
] | 51417989+Jonxslays@users.noreply.github.com |
20529495e9f822e01d4c33386bf8f7a1dd7e3fb0 | e5c52142afb72300e7fb739378098db74026a8db | /hub/__init__.py | ee15bcf6a6b52f88869d4ed9a4e4da86a03c671a | [] | no_license | EdmundMartin/SelectniumGrid | dddb67c8cf2006ef1712821185d905c542939bc2 | d4f4f9b627ee7ab9c6488b5e4590c16607b87ec8 | refs/heads/master | 2020-06-08T13:05:20.398477 | 2019-06-25T18:55:15 | 2019-06-25T18:55:15 | 193,232,942 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from hub.abs_hub import AbstractHubManger
from hub.hub_managers import ApiManager
__all__ = ['AbstractHubManger', 'ApiManager'] | [
"edmartin101@googlemail.com"
] | edmartin101@googlemail.com |
5d2491f0fe42a589a5b7ae5872eafe32853efbf2 | 6f86ae7211df0a9289a0a4e3dbb603aaf863869c | /week03/E10.py | 269378d14591a53b3513ac106bdfc6cfd4a85695 | [] | no_license | mgoloshchapov/programming_practice_2020 | 5478ecb0dcf4b577a455bbca9c5e2357d9ef444f | e1bdcb64c749c082d1f7a93a5af73a0913b726eb | refs/heads/master | 2023-03-13T14:11:47.884375 | 2021-02-27T20:35:41 | 2021-02-27T20:35:41 | 294,882,718 | 0 | 0 | null | 2020-09-12T06:11:56 | 2020-09-12T06:11:56 | null | UTF-8 | Python | false | false | 70 | py | # решение съела собака, но Bonus оставила
| [
"m.goloshchapov@yandex.ru"
] | m.goloshchapov@yandex.ru |
c0abba1dbb80ba854ba98e86caf3b53f991c1c75 | 909441103f1c0ec7ebe22b61904f9a67a5d071de | /python100天/007day/007.py | df5cf33227fe8344aedf4a796cb1c18658b7770c | [] | no_license | godringchan/Python_base_GodRing | 482e23bd1479e8845a2be09f18e95c6e9c2a38af | 7eb4b33c9d03e685cd00d10b75b7218bd6f2d58e | refs/heads/master | 2020-07-10T13:51:22.917341 | 2019-12-05T05:23:24 | 2019-12-05T05:23:24 | 204,277,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | # 双色球
import random
def select_balls():
"""
抽取双色球
"""
balls = [x for x in range(1, 34)]
balls = random.sample(balls, 6)
balls.sort()
balls.append(random.randint(1, 16))
return balls
# def show_balls(balls):
# for index, ball_num in enumerate(balls):
# if index == len(ball... | [
"147848417@qq.com"
] | 147848417@qq.com |
70039f5b41697cbb009784884a46f721fea2fcd9 | 3450b0513e3996a22b26ebc3d189a629d4cae487 | /Problem_3.py | cec12b3d5ee25611109d64c4b2d8206be2f7aa80 | [] | no_license | MattiooFR/project-euler | f3ce2472ed1dbf371387704bf5265afedb046444 | 1f9ac3fd1a508e7d815c670e83a2ab29a63efee9 | refs/heads/master | 2023-02-27T01:25:46.620755 | 2021-02-02T16:11:39 | 2021-02-02T16:11:39 | 294,355,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | # The prime factors of 13195 are 5, 7, 13 and 29.
# What is the largest prime factor of the number 600851475143 ?
# def isPrime(number):
# for i in range(2, number-1):
# if number % i == 0:
# return False
# return True
n = 2
e = 600851475143
while e != 1:
if e % n == 0:
e = e ... | [
"dugue.mathieu@gmail.com"
] | dugue.mathieu@gmail.com |
5a39f8c50ac88c63beadb7aca1dffdcf60311f99 | d1c56a1f5caa0dea4cbc071b781b108245a9ba8b | /docs/conf.py | c2bc81bc782d7da3fd58dff6eeaadeef6428e330 | [
"BSD-3-Clause"
] | permissive | dangom/unyt | efe2b6bd2133a4c3371f4cf5b1b93dd6f9b99a01 | 2b2aafee57917c96582a41e8294894ef372f5017 | refs/heads/master | 2020-03-26T12:34:21.343043 | 2018-08-15T17:20:42 | 2018-08-15T17:20:42 | 144,898,976 | 1 | 0 | null | 2018-08-15T20:14:04 | 2018-08-15T20:14:03 | null | UTF-8 | Python | false | false | 5,663 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# unyt documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 9 13:47:02 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autoge... | [
"ngoldbau@illinois.edu"
] | ngoldbau@illinois.edu |
8c3ed6ebe4e04ee6ca55a7c2359db085bf1ea750 | 27ffb93bb7211720fa49a1814b3da524db57aba6 | /ClickMon/manage.py | c3ba63dc9403162b5bde8929dcd8e4767a20f105 | [] | no_license | DonCuicui/Clickmon | 4c9a86cad222b88db17f1b6fc98fce688f4d4a46 | 0636edfcfb21fa99eb7c3cc67ea1e99c536de3f2 | refs/heads/master | 2020-03-28T01:32:22.009862 | 2018-09-07T13:18:01 | 2018-09-07T13:18:01 | 147,511,868 | 1 | 1 | null | 2018-09-06T15:27:50 | 2018-09-05T12:08:59 | Python | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ClickMon.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are... | [
"alexandre.Quilan@gmail.com"
] | alexandre.Quilan@gmail.com |
cf29ba25a81cc601cdc2034e1fcd0afc5bf6f81e | c8f29eab274a635a7c49540440dccaa330317ebf | /test.py | 244a7f45dc4dc40d3a24f11f6d60040eea2b59ea | [] | no_license | bipindevops2017/DOCKER_SCRIPT_ | 558ff5ddcf06eb61440c029f9843c449bed45aa2 | 76ef8a5731ba1ed586d693be7abf22c649901703 | refs/heads/master | 2021-01-13T16:06:50.595745 | 2017-11-13T05:59:50 | 2017-11-13T05:59:50 | 81,720,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | print"Hello docker script"
print"how r u "; | [
"tiwaribipin77@gmail.com"
] | tiwaribipin77@gmail.com |
ff7043af5aff8fb0b582532559de3e70fbbb5e16 | ec5bb20549e793222ac6a1208f3661e31f6aa28a | /method_NMTF.py | 6ed6df38ba1604f126721a9ebde00a426672b730 | [
"Apache-2.0"
] | permissive | DEIB-GECO/NMTF-DrugRepositioning | 65bd55946ba47cf1a10a1555db53e6026c27ae18 | b359c6daddb4f9cfa9a3f3978c897bbd38e43354 | refs/heads/master | 2021-06-24T13:17:03.430125 | 2020-12-29T14:09:45 | 2020-12-29T14:09:45 | 189,968,720 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,180 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed May 29 12:37:37 2019
@author: gaetandissez
"""
import numpy as np
import sklearn.metrics as metrics
from spherecluster import SphericalKMeans
from sklearn.cluster import KMeans
from scipy import sparse
class NMTF:
#First load and convert to numpy... | [
"gaetan.dissez@gmail.com"
] | gaetan.dissez@gmail.com |
70a1783faa266a94822f942f9448e980f466238f | f05b7e086b08786b875a961ab52eeb50979064ec | /Demo/MDV2/Multicast.py | 66fefc9b9526886e053c4062a169bc41367a55f2 | [] | no_license | JasonLeao/Demo-for-Self-defined-Multicast-Services | 74fbc21bc35d1bc0155145565eb453fc9aca4f9d | 1bdcd4e11b37a1f1772b4f0fc6cae2f727430363 | refs/heads/master | 2020-12-24T14:44:46.131947 | 2014-07-04T05:14:19 | 2014-07-04T05:14:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | __author__ = 'mkuai'
from Fileoperation import Fileoperation
from Paths import Paths
from Distancegraph import Distancegraph
from Determinepaths import Determinepaths
from Generaterouting import Generaterouting
#from Arppath import Arppath
#Organize all the processes, and transfer the port result to the ryu controlle... | [
"shengquan-liao@163.com"
] | shengquan-liao@163.com |
9f875b46aab7f80a0998a7c07417a2e32f34b420 | 2b73bd11a6d777b03620a170f65650cd658b29d2 | /pts/modules/feature.py | a4aae50b9a260652bf09b3ac94d791d447e38486 | [
"Apache-2.0",
"MIT"
] | permissive | StatMixedML/pytorch-ts | 33e018140571d5f7f80f6c402115c3aa90d09ec1 | 4bc2d247c70c59479d359d13d2db5739227307e8 | refs/heads/master | 2021-03-27T03:04:27.849280 | 2020-03-13T13:51:29 | 2020-03-13T13:51:29 | 247,779,634 | 1 | 0 | NOASSERTION | 2020-03-16T17:39:45 | 2020-03-16T17:39:44 | null | UTF-8 | Python | false | false | 2,838 | py | from typing import Callable, List, Optional
import torch
import torch.nn as nn
class FeatureEmbedder(nn.Module):
def __init__(self, cardinalities: List[int], embedding_dims: List[int],) -> None:
super().__init__()
self.__num_features = len(cardinalities)
def create_embedding(c: int, d: ... | [
"kashif.rasul@gmail.com"
] | kashif.rasul@gmail.com |
8d4a626e0834e092e43b51bebfccde69f6d4cc28 | d36e1d6f39cce857bbb7783565a8e968136f1926 | /apiTest/Service_Summary/test_addClass.py | 834b0e69d197de9bf49166e40fc5e90f54765f27 | [] | no_license | qiquan1011/test_customerApi | ffc14568e2c175ee19a4c325e7aca200134fe2ae | 65ba1f5d6092b2a36b3043656d95c1f42de97b7f | refs/heads/master | 2023-04-07T04:32:23.033724 | 2021-04-14T01:54:56 | 2021-04-14T01:54:56 | 355,849,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | import json
import unittest
import paramunittest
from common import commom, configHTTP
local_config_http=configHTTP.Config_Http()
addclass_excel=commom.get_excel("testCase.xlsx","newAddClass")
@paramunittest.parametrized(*addclass_excel)
class addClass(unittest.TestCase):
def setUp(self):
pass
def ... | [
"1477742998@qq.com"
] | 1477742998@qq.com |
24944475437eb47219018ccc93c5c251b3d64d11 | b7ff8811358c29121d6f60d96c3d05fdf2466ac5 | /Array/SortArrayByParity.py | db0d42d5d49e708d212934499a1116bdb8a9b43e | [] | no_license | kevinvud/leet_code_python | e4882c5cf7dd6d7dec54462f3707b9c6dad493ce | 34f92f5b64d56fa4f8f1ff85d746b09725e23621 | refs/heads/master | 2020-07-15T07:38:03.249607 | 2019-09-08T23:03:32 | 2019-09-08T23:03:32 | 205,513,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | """
Input: [3,1,2,4]
Output: [2,4,3,1]
The outputs [4,2,3,1], [2,4,1,3], and [4,2,1,3] would also be accepted.
Note:
1 <= A.length <= 5000
0 <= A[i] <= 5000
"""
def sortArrayByParity(input):
even_array = []
odd_array = []
for index in input:
if index % 2 == 0:
even_array.append(in... | [
"kevinvud@gmail.com"
] | kevinvud@gmail.com |
4c0803d7b8621c6a3c4e105aa299f8c7d9551bb5 | c8a3638dbb74b4281e99ebc32f7a42b2c61a160f | /mysql/spiders/6_Malaysia_miti.py | 0d5f23ae110cabee9b2f93de8576dafeb6e343af | [] | no_license | HaoDong96/sea_news_crawler | 392fc374409078f13ff09dbaf553c5d1df8f2ab1 | 807e7963831728d537c82143472fd3392ca09460 | refs/heads/master | 2020-03-26T21:58:29.966921 | 2018-08-20T13:35:09 | 2018-08-20T13:35:09 | 145,422,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,575 | py | # # coding:utf-8
#
# from scrapy.spiders import CrawlSpider, Rule
# from scrapy.linkextractors import LinkExtractor
# from mysql.items import NewsItem
# from scrapy import log
# import urllib
# import scrapy
# import re
# import string
# import time
#
#
# class test_crawler(CrawlSpider):
# name = '6_Malaysia_miti'... | [
"spdonghao@gmail.com"
] | spdonghao@gmail.com |
dee1ba0c22c12de661c27b665f872a986aa38a7e | 0fce260d9c73e2966dd12025b01bf1763666c3b1 | /mandelbrot/management/commands/loadslack.py | 9edd01f193f88821ba0d2b45b945b78f7dbb42d2 | [] | no_license | paultag/mandelbrot | 0b15810969413a0afebe3220cf9965aa4f5027d8 | 60880cdb6f020ff9ec765e393311a11d03d8d678 | refs/heads/master | 2021-01-19T03:04:01.743770 | 2016-06-07T00:15:37 | 2016-06-07T00:15:37 | 45,364,430 | 4 | 3 | null | 2016-04-11T03:13:54 | 2015-11-02T00:59:07 | CSS | UTF-8 | Python | false | false | 1,855 | py | from django.core.management.base import BaseCommand, CommandError
from django.db.models import Q
from mandelbrot.models import Expert, ContactDetail
import requests
import os
KEY = os.environ['SLACK_ACCESS_TOKEN']
class Command(BaseCommand):
help = 'Load experts from GitHub'
CACHE = {}
def add_argum... | [
"tag@pault.ag"
] | tag@pault.ag |
21d6881c4e2c1086a73635b9efb49ce6a17dad32 | 16cf959acf8746bf65e1a74672209aa36645ab9d | /basicsort.py | 308bdd53a75bb08f216b367fbf67a0168ef3de47 | [] | no_license | tlavr/typesnalgos | 5a504092f664b5af50cf74768b0de0a38fbf7179 | 5282b660ac44466ef6998bad5fc1ffa8353b26e3 | refs/heads/master | 2020-08-07T23:55:22.439841 | 2020-03-11T11:55:28 | 2020-03-11T11:55:28 | 213,630,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | def swap(arr, idx1, idx2):
tmp = arr[idx2]
arr[idx2] = arr[idx1]
arr[idx1] = tmp
def SelectionSortStep(arr, el):
idx = el
for ii in range(el, arr.__len__()):
if arr[ii] < arr[idx]:
idx = ii
if idx != el:
swap(arr,idx,el)
def BubbleSortStep(arr):
is... | [
"noreply@github.com"
] | tlavr.noreply@github.com |
0aef74dc74ea50b71eb777b7be2ae2d69042d61b | 2c1ec51f98991987179ccb5c79ceadd98a127cbd | /virtual/bin/sqlformat | 7e6978542a25ebc9d42cf05d14ccf16c5dd9f28e | [
"MIT"
] | permissive | monicaoyugi/djangoGallery | af1715c9fe5effbad5097132a6e83a6f2aee6d1d | 43661d0ed37d10e8870afc1130ea0c05467dcdec | refs/heads/master | 2021-11-27T03:13:10.733683 | 2020-03-03T08:03:13 | 2020-03-03T08:03:13 | 243,685,426 | 1 | 2 | MIT | 2021-09-22T18:40:46 | 2020-02-28T05:26:14 | Python | UTF-8 | Python | false | false | 273 | #!/home/moringaschool/Documents/Core/Week1/Pictures/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"monicaoyugi@gmail.com"
] | monicaoyugi@gmail.com | |
e81364b97e81046d756cd7779b9a8cdacc1a7cdd | 8b6105703dd5e86e106cc3f80e49f1ed9790b002 | /Homeworks/day_3.py | 5043c4c78b61696955bf6ef8a81654c86e977d9d | [] | no_license | ratnadeeppal/gaih-students-repo-example | a72aba524cd96ab5d670130bd95714d46f08c573 | 000f1bba6097d0a75234102b63466cfae32772d6 | refs/heads/main | 2023-02-26T21:52:49.757914 | 2021-02-06T12:06:37 | 2021-02-06T12:06:37 | 335,695,054 | 0 | 0 | null | 2021-02-03T17:00:17 | 2021-02-03T17:00:16 | null | UTF-8 | Python | false | false | 1,036 | py | # -*- coding: utf-8 -*-
"""day_3.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1ot_-j3hVF9E_l5XwKL9HZ0yqO3OQeO7h
# Question 1
"""
username = 'ratnadeep'
password = 'india'
ip_username = input("Username: ")
ip_password = input("Password: ")
if ... | [
"noreply@github.com"
] | ratnadeeppal.noreply@github.com |
64575c4a1e64b4f1b339eebd86e9d527a3b29a3a | f16146c1184f2621dda6c66c9c36092313e26919 | /shell_cmd/run_state.py | c4dcdc5a03e8fcc35a6d31384af3ab2eb6b5aab5 | [] | no_license | kowaraj/scriptsCERN | 3b4222516e399f5c3fe9ae3d2f64ed63fdc9f97e | 53bf7bc6222116bde85fdc4b776f0e07faef4e86 | refs/heads/master | 2020-05-22T01:04:28.717354 | 2017-01-26T12:07:57 | 2017-01-26T12:07:57 | 33,919,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | #!/usr/bin/python
from subprocess import Popen, PIPE
import os
import shell_cmd as sc
# processes
sc.pid('ALLVTULHC_DU_R')
sc.pid('ALLVTULHC_DU_S')
sc.pid('ALLSpsRephasingIntfc_DU_R')
sc.pid('ALLSpsRephasingIntfc_DU_S')
# shared mem
sc.shmexist('ALLVTULHC_DU.cfv-864-agsps')
sc.shmexist('sem.ALLVTULHC_DU.cfv-864-a... | [
"kowaraj@gmail.com"
] | kowaraj@gmail.com |
e1f5018ed53d43cede8b0037e0a69109b758aa24 | e42adbfe85ebf7bc4b6936e8d003d988f3e681c0 | /svea_starter/src/svea/src/localizers/qualysis_localizers.py | cde090b38291db363320a93da4ced23c9c8cf258 | [] | no_license | emmaj7/sml_summerproject | f0c6924cee428fd6de64ecdb45fc58bfb7bb27f1 | 1151267d10c3b37fde53045b494c3f7494322099 | refs/heads/master | 2022-12-24T08:06:23.516464 | 2019-09-23T15:02:28 | 2019-09-23T15:02:28 | 191,755,042 | 1 | 0 | null | 2022-12-10T19:00:08 | 2019-06-13T12:03:14 | C++ | UTF-8 | Python | false | false | 3,880 | py | #!/usr/bin/env python
"""
ROS interface object for localization with qualysis odom.
This module simply contains the implementations of the ROS interface
code wrapped in objects. The launch files for each interfaced ROS node
still needs to be run BEFORE initializing these objects. In particular
roslaunch files:
qu... | [
"tranbarsjuice@gmail.com"
] | tranbarsjuice@gmail.com |
7c796737367705100b0ddc61ce403b8d9e93b8db | 902e2f5fab3c61ca02c0ba2b54a3564d5dec6912 | /dice.py | cc667cd7c0be54179b9d3944866df91e1c0a6b2a | [] | no_license | lantone/colloquium_scripts | 51515a08511044a16be75e87e20cb77eef72c82d | 19a051b4378d00a86784624c9f5f66eccd0d7714 | refs/heads/master | 2021-01-13T16:00:56.963540 | 2017-02-23T02:14:05 | 2017-02-23T02:14:05 | 79,591,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,483 | py | #!/usr/bin/env python
import sys
#import glob
#import re
#import os
#from array import *
import matplotlib
matplotlib.use('QT4Agg')
import numpy as np
import matplotlib.pyplot as plt
plt.xkcd()
matplotlib.rcParams.update({'font.size': 28})
fig_size = plt.rcParams["figure.figsize"]
fig_size[0] = 13
fig_size[1] = 10... | [
"lantone@gmail.com"
] | lantone@gmail.com |
dc73c4de221e3699efcae9d229a2059d59e042f8 | b14b816ed5d733c3eda445114a307fb021aced56 | /rango/views.py | b363af611e17619a39627eba310931fc87c4d210 | [] | no_license | mishraprags/tango_with_django_project | 679225da6f57d9bad7040a50f0d133d267a40125 | ae092a5a294b7e01f5db990557ea434fe71d8b80 | refs/heads/master | 2023-01-19T03:16:07.365867 | 2020-11-22T19:32:42 | 2020-11-22T19:32:42 | 256,175,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,186 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, HttpResponse
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required
from datetime import d... | [
"2506109m@student.gla.ac.uk"
] | 2506109m@student.gla.ac.uk |
ae89368f6894952ab87cdf181f423665bc8b5238 | 3112f5833646f33fc731cd56be052db74c96697a | /L16/nmt/utils/nmt_utils.py | 9f43f897005538b1e5e65862476bd16b063da3d1 | [
"Apache-2.0",
"MIT"
] | permissive | busyyang/DL_21tensorflow | 4ec33c7396f16607c940de94fd2878ef8d2fc15a | ccac457b66a80f3de80d14d503e6cec8681537eb | refs/heads/master | 2020-05-05T06:10:03.467053 | 2020-04-24T09:40:30 | 2020-04-24T09:40:30 | 179,778,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | # Copyright 2017 Google Inc. 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 applicable law or a... | [
"jzhm_4@hotmail.com"
] | jzhm_4@hotmail.com |
03716fe5734eed034ca142d91437b67b07de10f6 | 7874d87ae790c92900e42c9a5b41eb07f2da82c8 | /app/admin.py | a08ffa254b4aec6c18de9d67c16fff57ccb85350 | [
"MIT"
] | permissive | PatrickRudgeri/financial-mngt | 9a751b1112cff4a3d5bb3013d192d397dca8a334 | 42754e7ade89805a2297c1783f86a0451dec4674 | refs/heads/main | 2023-07-14T20:32:30.135553 | 2021-08-31T22:33:05 | 2021-08-31T22:33:05 | 375,134,656 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from django.contrib import admin
# Register your models here.
from .models import Receita, Despesa, CategoriaReceita, CategoriaDespesa
admin.site.register(Despesa)
admin.site.register(Receita)
admin.site.register(CategoriaReceita)
admin.site.register(CategoriaDespesa)
| [
"patrick.rudgeri@ice.ufjf.br"
] | patrick.rudgeri@ice.ufjf.br |
b5268837c074ea67f5075ad15b1200f4da8176f3 | 2cbe5fca293b975801feb50527091f4c7df6fb50 | /Carpool Report.py | ecb4365539eeccebd9704cab81baa01ed33bcb13 | [] | no_license | Devtlv-classroom/carpool-report-shaul615 | 947fcb52156372ada6b23947d680c4d765ad50c2 | 3f0d892c5486433b1729bd4492ac7b8fce07af8b | refs/heads/master | 2020-08-29T13:34:46.853546 | 2019-10-28T14:13:42 | 2019-10-28T14:13:42 | 218,047,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | cars_available = 100
max_passengers_per_car = 4
days_drivers = 30
days_passengers_waiting = 90
# always be more cars than drivers
if (cars_available < days_drivers):
cars_available = days_drivers+1
empty_cars_today = cars_available-(days_passengers_waiting /max_passengers_per_car)
print("The number of cars ava... | [
"noreply@github.com"
] | Devtlv-classroom.noreply@github.com |
ecc44c0dc3c2b5e543449e9a4f7a77c968e58bc6 | b431eaf4281c494892461ca8ff0021a1d64d2cc1 | /savant/web/migrations/0011_auto_20161003_2203.py | 01c2b029fc83625648f7e13476d31fc20a8eba1f | [] | no_license | elston/savantrend | 7716f8f28775f17ebe231bddb6b9765530fbacbd | 91d4603a18003c99a9313e033d6a09733737f155 | refs/heads/master | 2021-01-11T01:47:02.973465 | 2016-10-25T08:01:53 | 2016-10-25T08:01:53 | 70,667,707 | 0 | 0 | null | 2016-10-12T05:57:32 | 2016-10-12T05:57:30 | null | UTF-8 | Python | false | false | 694 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.contrib.postgres.fields
class Migration(migrations.Migration):
dependencies = [
('web', '0010_auto_20160522_2323'),
]
operations = [
mi... | [
"vitaliysvyatuk@VITALIYs-MacBook.local"
] | vitaliysvyatuk@VITALIYs-MacBook.local |
50118fd8db82a5f4ac248eaa74a26f8e05463712 | 26d3ea26c53851baa406fd411e0815c7de5921a1 | /split_to_utterances.py | 8697b5ede93eef78780f3de00d6feeecf30a42ce | [
"MIT"
] | permissive | megseekosh/ALICE | 2a877de4ea618a68e14050cb35b82699b5ee98fc | 3cbd142437cb7f21b5ffe1e91bbf8e290bf301d9 | refs/heads/master | 2023-02-11T08:01:58.271246 | 2020-06-11T13:47:18 | 2020-06-11T13:47:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | # Loads diarization outputs (.rttms) and splits long audio files to utterance-sized
# wav-files based on the diarization results. Short files are temporarily stored
# to ALICE/tmo_data/short/
import csv,sys
from scipy.io import wavfile
import numpy as np
curdir = sys.argv[1]
valid_speakers = ['FEM','MAL']
DATA = []... | [
"okko.rasanen@tuni.fi"
] | okko.rasanen@tuni.fi |
e031cbcb202dd5a172d82084fe7d561a5868b525 | cce1a4bef3d160368041e94c6cf5c19b4d1b052a | /doc/source/conf.py | aa7a1801ebd820d87817e4112cdc27b91437d780 | [] | no_license | arattinger/block | f6cdd26f42aefdded202e5874f5ad6220d1e7735 | f2f6fe74b9383b47ee56612cb7e9517193a6769e | refs/heads/master | 2020-04-09T23:40:01.660115 | 2016-11-01T20:37:20 | 2016-11-01T20:37:20 | 9,770,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,202 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# block documentation build configuration file, created by
# sphinx-quickstart on Sun Feb 28 21:19:42 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# auto... | [
"andre.rattinger@saltwatersolutions.com.au"
] | andre.rattinger@saltwatersolutions.com.au |
da211cd2b9db393ee96655c9a0883c6285b6e7b0 | 840580a596ae3ae37ecbfba16ebe8da6baf3f282 | /test_autolens/integration/tests/imaging/lens__source_inversion/rectangular/lens_mass__source__hyper.py | acf116cba8ca402c93e2f50d8b945e775c955a47 | [
"MIT"
] | permissive | SanchiMittal/PyAutoLens | 3e4c7f949a6963891342c14535903dcb8ef978b1 | f1d3f08f12a61f6634e1b7a0ccf8f5cfe0252035 | refs/heads/master | 2021-01-08T14:28:32.850616 | 2020-02-20T16:40:21 | 2020-02-20T16:40:21 | 242,053,578 | 1 | 0 | MIT | 2020-02-21T04:25:27 | 2020-02-21T04:25:26 | null | UTF-8 | Python | false | false | 2,193 | py | import autofit as af
import autolens as al
from test_autolens.integration.tests.imaging import runner
test_type = "lens__source_inversion"
test_name = "lens_mass__source_rectangular__hyper"
data_type = "lens_sie__source_smooth"
data_resolution = "lsst"
def make_pipeline(name, phase_folders, optimizer_class=af.MultiN... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
7bf97086e896dd70e7474c0d7b9263220a1afcb6 | d806dc8232a89537ff4e1238f5dfad498312df49 | /main.py | 61766fc4933ec9b8fbe9ddcf7d5fd3fd6df7f3c3 | [] | no_license | abhay-venkatesh/ml-template | 3e0ab7181486f41c21a5915469d00dff82841cc5 | fb85a2a0274891584c8a73c6cc5e2d7c7136fb7b | refs/heads/master | 2020-06-16T12:27:04.565453 | 2019-07-07T00:38:29 | 2019-07-07T00:38:29 | 195,573,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from inflection import underscore
import argparse
import importlib
if __name__ == "__main__":
# Get agent
parser = argparse.ArgumentParser()
parser.add_argument("agent")
args = parser.parse_args()
# Make the agent run!
agent_module = importlib.import_module(("agents.{}").format(underscore(args... | [
"abhay.venkatesh@gmail.com"
] | abhay.venkatesh@gmail.com |
18b65a38efed11ffc8280c7e042495755f31814e | dfb7cea1a1875b36f9689d781fe2cf866957cc5c | /soldajustica/soldajustica/wsgi.py | e29b379a6c94693b458b924404ca3b9d695dd8de | [
"MIT",
"Apache-2.0"
] | permissive | patrickporto/soldajustica | e1c84dfe636278109812dd5022c5787c94f437b3 | 191299012a8142c8d1c073f025a2ff2d1a2d267c | refs/heads/master | 2021-01-10T05:25:33.810919 | 2015-06-19T04:31:11 | 2015-06-19T04:31:11 | 36,825,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | """
WSGI config for soldajustica 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_APPLICATI... | [
"patrick.porto@concretesolutions.com.br"
] | patrick.porto@concretesolutions.com.br |
98295db78c9952a00b429c7193e8b2799f35ff30 | 93bcfe04cde85254fc5854000442dcada1c2dcbb | /deps/lib/python3.4/site-packages/pywink/devices/lock.py | 5e288ac702d4bb198681ed3c3738cae2560f7be1 | [
"Apache-2.0"
] | permissive | marknestor261/jarvis | 042f80718a2abc9ebaf1716768c847cdfe01ed6b | 062f20303b3e1d46a20a68e8ed8337b3d05f84dd | refs/heads/master | 2023-08-28T03:25:10.850283 | 2021-11-09T20:30:37 | 2021-11-09T20:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,214 | py | from pywink.devices.base import WinkDevice
class WinkLock(WinkDevice):
"""
Represents a Wink lock.
"""
def state(self):
return self._last_reading.get('locked', False)
def alarm_enabled(self):
return self._last_reading.get('alarm_enabled', False)
def alarm_mode(self):
... | [
"lance@hayniemail.com"
] | lance@hayniemail.com |
4776637162cb0a3dccd00395d5446b5f26a201b0 | a83e4e6a5a09a0a170dc57d8a153f9ee3f2c855c | /prime_numbers.py | c1719d3b832e59e24736af84efb362d702024395 | [] | no_license | markhebing/python-scripts | 501562cb487bc3ecf501052e46ace79ff83d7b6c | c49f8d6a98e7bc8dfdad27d67b321e1c27e2584e | refs/heads/master | 2022-11-11T23:44:17.124652 | 2020-06-28T17:23:19 | 2020-06-28T17:23:19 | 275,632,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | x = input("Enter a number: ")
y = 1
count = 0
while y <= int(x):
if int(x) % y == 0:
print("Divisible by " + str(y) + "...")
count = count + 1
y = y + 1
if count == 2:
print("Otherwise indivisible...this IS a prime number!")
elif count > 2:
print("As you can see...this is NOT a prime n... | [
"noreply@github.com"
] | markhebing.noreply@github.com |
2883768972372e258eea39a8fcd8fd34acbd3403 | 0c962db0d657de6a9a9444633666a0455154d5dd | /mmdet/core/bbox/iou_calculators/obb/obbiou_calculator.py | 42f9a417ecbd5fad95ee16423765f8bbf0956282 | [
"Apache-2.0"
] | permissive | Dustone-Mu/OBBDetection | be5e486f0676817220c01af47430b59c8a374610 | a7c9539ffe63b54e4d79932b809ec80b2ff1f5bb | refs/heads/master | 2023-08-15T03:21:31.064998 | 2021-09-26T12:35:58 | 2021-09-26T12:35:58 | 411,566,302 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,665 | py | import torch
import BboxToolkit as bt
from mmdet.ops import obb_overlaps
from ..builder import IOU_CALCULATORS
@IOU_CALCULATORS.register_module()
class OBBOverlaps(object):
"""2D IoU Calculator"""
def __call__(self, bboxes1, bboxes2, mode='iou', is_aligned=False):
"""Calculate IoU between 2D bboxes
... | [
"709370615@qq.com"
] | 709370615@qq.com |
62a302b657ce8c8d1a2a978eb3620007967c6d1f | d806fdb47893956d3d5b79a14345a744420beac5 | /gameapp/migrations/0003_gameapp_status.py | 9a2a4522f3ef6034a771a9043b1029010a2b286d | [] | no_license | bbrastogi/hangman | 047d800520b995bef8d1f1204e5df0c458c99ed8 | a375210190600575a744497704aa6a38211b23d7 | refs/heads/master | 2020-05-20T02:26:23.780100 | 2019-05-21T06:18:07 | 2019-05-21T06:18:07 | 185,331,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-04-26 10:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gameapp', '0002_auto_20190423_1416'),
]
operations = [
migrations.AddField... | [
"rastogi.barkha6@gmail.com"
] | rastogi.barkha6@gmail.com |
487eb7e5f5bbdfbedc795b4fdfa8bb6748e9d912 | 82f1b4c0bccd66933f93d02703a3948f08ebc1a9 | /tests/pytests/unit/states/test_smartos.py | 69d4dc75ee95b402f03f7f1f54ecc66f4347cc89 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | waynew/salt | ddb71301944b64f5429e0dbfeccb0ea873cdb62d | ac9f139f795295de11be3fb1490ab8cec29611e5 | refs/heads/master | 2023-01-24T10:43:53.104284 | 2022-03-29T04:27:22 | 2022-03-29T13:45:09 | 163,890,509 | 1 | 0 | Apache-2.0 | 2019-01-02T21:17:12 | 2019-01-02T21:17:11 | null | UTF-8 | Python | false | false | 2,991 | py | import pytest
import salt.states.smartos as smartos
from salt.utils.odict import OrderedDict
from tests.support.mock import patch
@pytest.fixture
def configure_loader_modules():
return {smartos: {"__opts__": {"test": False}}}
def test_config_present_does_not_exist():
"""
Test salt.states.smartos.config_... | [
"pedro@algarvio.me"
] | pedro@algarvio.me |
bd7860a9b0e76452fb3b1c3611913391e02eb453 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/01_netCDF_extraction/erafive902TG/539-tideGauge.py | e40ac93605236ebb7b7d014f6aac8cfe04e252b0 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,595 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 01 10:00:00 2020
ERA5 netCDF extraction script
@author: Michael Tadesse
"""
import time as tt
import os
import pandas as pd
from d_define_grid import Coordinate, findPixels, findindx
from c_read_netcdf import readnetcdf
from f_era5_subsetV2 import subsetter
def extrac... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
bda59c3fdeefa65d0333289409e03069373c37f1 | 641fa8341d8c436ad24945bcbf8e7d7d1dd7dbb2 | /net/data/verify_certificate_chain_unittest/common.py | c5bcd9729986c1011f2062033565531500e24809 | [
"BSD-3-Clause"
] | permissive | massnetwork/mass-browser | 7de0dfc541cbac00ffa7308541394bac1e945b76 | 67526da9358734698c067b7775be491423884339 | refs/heads/master | 2022-12-07T09:01:31.027715 | 2017-01-19T14:29:18 | 2017-01-19T14:29:18 | 73,799,690 | 4 | 4 | BSD-3-Clause | 2022-11-26T11:53:23 | 2016-11-15T09:49:29 | null | UTF-8 | Python | false | false | 16,486 | py | #!/usr/bin/python
# Copyright (c) 2015 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.
"""Set of helpers to generate signed X.509v3 certificates.
This works by shelling out calls to the 'openssl req' and 'openssl ca'
comm... | [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com |
c657f336a4f642a5b71465cc5a3ee23fb52d87c0 | 19585a907ab1e1dafb00e53cce4f1803e805f4a6 | /src/camera/calibration.py | 606e5c555ea23dd9a8e3856957e036d241351ecc | [] | no_license | Angeall/pyConnect4NAO | 00ad27370746f36480b42cb49690ce6d3dadfece | 700d84b0cde2cb8e3e7d5ff2c5ca7858679b4e8d | refs/heads/master | 2020-12-01T11:38:46.776337 | 2018-09-02T12:41:57 | 2018-09-02T12:41:57 | 43,453,113 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,927 | py | import time
from connect4.connect4handler import *
from connect4.detector import front_holes as c4
from nao import data
from nao.controller.motion import MotionController
from nao.controller.video import VideoController
from utils import latex_generator
__author__ = 'Anthony Rouneau'
def get_nao_image(camera_num=0)... | [
"angeal1105@gmail.com"
] | angeal1105@gmail.com |
02227982cc2b018d86216d14543fac9f959ed702 | 950be9cb9c532f297481306981e8b1c8febbed9a | /Volume 12/src/Wedding.py | 39b8f225cc071e88a111b4fae66fb0f6dd279b4f | [] | no_license | MyCatWantsToKillYou/TimusTasks | 9b075b19d54cf048517c0f6e08b509fd51e8a8a5 | 8064e0ca6671ec4cfa5c1d588d6d714562afa69a | refs/heads/master | 2023-07-07T19:20:46.508301 | 2023-06-29T10:54:30 | 2023-06-29T10:54:30 | 132,224,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | # task #2100
# Difficulty 34
guests = 2
for i in range(int(input())):
if input().endswith('+one'):
guests += 2
else:
guests += 1
if guests == 13:
print(1400)
else:
print(guests*100)
| [
"mycatwantstokill@gmail.com"
] | mycatwantstokill@gmail.com |
bdb208604c15f266ea799f75d839c733e3a8fddc | 3504013035e71eb9a745b0e5ba1d5ce0a2167f47 | /REST/uriReverser.py | 2f61da4ab298a3684dc615d186a2765eedb1bbbe | [] | no_license | P79N6A/ProgrammingForIot | 7f5eea3e90090b5610380d715cc5d33b45acbed6 | 9c938b87793a768dd62aea67535fbdaa34ba0d26 | refs/heads/master | 2020-07-07T00:45:05.653567 | 2019-08-19T14:15:03 | 2019-08-19T14:15:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import cherrypy
class UriReverser(object):
"""docstring for Reverser"""
exposed=True
def __init__(self):
pass
def GET(self, *uri):
reversed=uri[0]
return reversed[::-1]
if __name__ == '__main__':
conf={
'/':{
'request.dispatch':cherrypy.dispatch.MethodDispatcher(),
'tool.session.on':True
}
} ... | [
"matteo.orlando.1993@gmail.com"
] | matteo.orlando.1993@gmail.com |
f590886afbe3de74837afb0a874c140e34a89032 | b512a6107ef3f8dfd8d88a76f0fad1f3a555c8d6 | /ui.py | 692f8fac949d6d09d79011e3ad9ae46782e95ed5 | [
"MIT"
] | permissive | wang1ang/slide-transition-detector | 3bfddd40c6b1f272506d738efaead6fef3a2f4e5 | 180673fe8f864afb514859558a951c57021dc757 | refs/heads/master | 2020-12-11T01:06:53.675008 | 2020-01-16T13:33:31 | 2020-01-16T13:37:24 | 233,761,289 | 0 | 0 | MIT | 2020-01-14T05:09:30 | 2020-01-14T05:09:30 | null | UTF-8 | Python | false | false | 1,386 | py | import progressbar as pb
class ProgressController(object):
"""
Controlls the ProgressBar UI to indicate the progress
of a process.
"""
def __init__(self, title, total=100):
"""
The default initializer.
:param title: the title of the progress bar
:param total: the ma... | [
"renebrandel@outlook.com"
] | renebrandel@outlook.com |
f1c840d19445eeef090245ac4f85f288343f1713 | f5863cf378bce80d3aa459941dff79ea3c8adf5d | /SWEA/D1/SWEA_2027.py | 5de36054728c8fc928830a79f90ad47491c04482 | [] | no_license | Taeg92/Problem_solving | 815c13ae7895708948482eeb05411322be00ac12 | 15c0fe0eda4f77d974451777cb01d10882d8aaa9 | refs/heads/master | 2021-11-18T22:03:21.727840 | 2021-09-06T14:21:09 | 2021-09-06T14:21:09 | 235,335,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # Problem [2027] : 주어진 텍스트를 그대로 출력하세요.
# <출력>
# #++++
# +#+++
# ++#++
# +++#+
# ++++#
string = '++++'
string_list = list(string)
for i in range(len(string)) :
string_list.insert(i,'#')
print(''.join(map(str,string_list)))
string_list = list(string)
| [
"gtg92t@gmail.com"
] | gtg92t@gmail.com |
92e5c5dbd4af7ce474e5516560051834dfd86205 | 1eafc296c07e78d327f46e8ea58913ce4416940e | /test/test_optim.py | 10f2e7fee03a135914df5f59ff29a78307be760a | [
"MIT"
] | permissive | colinmatthewgeorge87/CrypTen | 9dd4a15e0b4ea4700aaa6c0a91b1acfc6f3465ef | 85db37fe555f5fde6117a67081bf7ee7fac67d97 | refs/heads/master | 2022-12-20T00:41:24.787004 | 2020-10-08T16:18:43 | 2020-10-08T16:20:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,942 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import itertools
import logging
from test.multiprocess_test_case import MultiProcessTestCase, get_random_test_tensor
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e3c911c87b6481f89317a10962201331564467a5 | c92ba7451cc124995810be4a4dc2c381ca224431 | /python/isogram/isogram.py | ae4bc079aa6a659cd7d779ed48a754a6ff91e9bb | [] | no_license | gavinhenderson/exercism.io | 5fc72d1d2b7e51825101ad9f73a499f98523fc09 | 97e4c5ff8c45b5e950ed90ca5598fa00f19988ec | refs/heads/master | 2021-06-04T17:25:49.845826 | 2020-08-01T21:33:52 | 2020-08-01T21:33:52 | 112,458,049 | 1 | 1 | null | 2020-07-17T11:31:41 | 2017-11-29T09:58:53 | JavaScript | UTF-8 | Python | false | false | 366 | py | def is_isogram(string):
occurrences = {'a': 0 }
for c in string:
occurrences[c.lower()] = 0;
for c in string:
occurrences[c.lower()] += 1;
for key, value in occurrences.items():
if(key==" " or key=="-"):
continue
else:
if(value>1):
... | [
"gavin.henderson@hotmail.co.uk"
] | gavin.henderson@hotmail.co.uk |
41291e89a856816efc62d9bc82a751e9a275a097 | 51e683018a817037dcd7d8eae048cd9e363fb906 | /MachineLearning/venv/Scripts/pip3-script.py | c5e6cec4e06abe66e7cb887b34519cd9c66e0901 | [] | no_license | alexmurat/PycharmProjects | 25b0c20da52faa891afa6a44fdc0b3ae2774628e | 5f0873ba38fe2e0e9d165b3aecdf075885fd3e62 | refs/heads/master | 2020-03-27T05:05:04.979118 | 2018-08-24T13:21:12 | 2018-08-24T13:21:12 | 145,991,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | #!C:\Users\alex\PycharmProjects\MachineLearning\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy... | [
"alexmurat@outlook.com"
] | alexmurat@outlook.com |
2b5e762b1efab72f9836ba910d087261611860df | 7b502435a9a3cab0b0ab2c3233a4bdde69b0b97a | /pdfreader.py | fc7216b0f93683c0b87c36e2abdc26f933b9e2d6 | [] | no_license | narendranani/python-utilities | e1e91d765c5498418f30fb0573ba0129f18a0f18 | 1664b58a208aa3e67a3f1be3ba65a8e91a310c20 | refs/heads/master | 2020-05-17T10:16:46.742433 | 2019-05-20T09:40:51 | 2019-05-20T09:40:51 | 183,653,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # importing required modules
import PyPDF2
# creating a pdf file object
pdfFileObj = open(r'E:/Downloads/pygrametl.pdf', 'rb')
# creating a pdf reader object
pdfReader = PyPDF2.PdfFileReader(pdfFileObj)
# printing number of pages in pdf file
# print(pdfReader.numPages)
# creating a page object
pageObj = pdfReader.g... | [
"34296972+Narendrak1154@users.noreply.github.com"
] | 34296972+Narendrak1154@users.noreply.github.com |
9df450e2dba5385146d847a6cc0301e2c3b6550d | 9ada76eea19ec3a7a74b6e41a5945674bd9b6037 | /Strategies/ma_cross_strategy.py | 665ed9efdb73fe7de3dddd10cc03a00cf6965815 | [] | no_license | cove9988/PyTrader-python-mt4-mt5-trading-api-connector-drag-n-drop | b1f8df2d3408d177d9321cb31e8affa1aac5cc71 | 4212cd520918814e80c668de9f948277872d50e9 | refs/heads/master | 2023-08-19T18:22:47.488284 | 2021-10-11T15:53:50 | 2021-10-11T15:53:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,512 | py | # -*- coding: utf-8 -*-
'''
This script is ment as example how to use the Pytrader_API in live trading.
The logic is a simple crossing of two sma averages.
'''
import time
import pandas as pd
#import talib as ta
from utils.Pytrader_API_V1_06a import Pytrader_API
from utils.LogHelper import Logger ... | [
"noreply@github.com"
] | cove9988.noreply@github.com |
8691ac1cb08a2fc78e360882aa4bf300a67e2efc | 4d78f5a3db4bb9622eafaa32c3ad6bf3f54f6aa7 | /pylib/Tools/Fetch/Pip.py | 7337b47408ec3edd397b8d782c76a02e709fd3f7 | [
"BSD-3-Clause",
"Artistic-1.0",
"BSD-3-Clause-Open-MPI"
] | permissive | DebRez/mtt | da0ac7663f98dea5a12a2c983ccb896a93fa3007 | 3eafe8661c94d4f6c51b5f3b7462250b465d3799 | refs/heads/master | 2020-04-05T23:01:08.434722 | 2019-07-24T19:48:37 | 2019-07-24T19:53:53 | 60,280,533 | 1 | 0 | null | 2016-09-17T14:19:02 | 2016-06-02T16:38:04 | Perl | UTF-8 | Python | false | false | 5,320 | py | # -*- coding: utf-8; tab-width: 4; indent-tabs-mode: f; python-indent: 4 -*-
#
# Copyright (c) 2015-2019 Intel, Inc. All rights reserved.
# Copyright (c) 2017-2018 Los Alamos National Security, LLC. All rights
# reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
from _... | [
"rhc@pmix.org"
] | rhc@pmix.org |
4f92e4070900f0a4426bda18222ab588b9ba2d05 | 8fd17106d80f12df907b91943de174a970c65ffc | /venv/bin/chardetect | a72a30c54121a60436c07d6982a54dc8ea89529e | [] | no_license | atanuc073/django-Stock-Market-App | fd320184e21011b9b74fadcd8162c0da16db2049 | db870be89ccf85df8d02a0c54c6991549c63d9b9 | refs/heads/master | 2020-12-20T18:50:47.862423 | 2020-03-25T13:50:02 | 2020-03-25T13:50:02 | 236,175,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | #!/home/atanuc73/python/djangoStock/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"atanuc073@gmail.com"
] | atanuc073@gmail.com | |
ae184e104a6ab27de8dee8a0135f956161e447a3 | 55510973cd284b8f4977757fb8a5d425e5c6ca61 | /HW04/HW04.py | 40910ed7c04d1f008a11657bb4969fe9a10fbb58 | [] | no_license | KirillKonovalov/hse_python_hw | 9206eb4328bec622d57020bbb00cee440e0f3181 | a9213535c545f2c8943e805841229f1cbda8b6b8 | refs/heads/master | 2022-11-07T07:01:16.472874 | 2020-05-11T16:28:08 | 2020-05-11T16:28:08 | 211,169,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,635 | py | import re
def professors(filename):
with open(filename, 'r', encoding='utf-8') as file:
text = file.read()
result = re.findall('<th class="plainlist">Преподавател.+</th>\n<td class="plainlist">\n(\d+)', text)
with open('professors.tsv', 'a', encoding='utf-8') as rslt:
data = rs... | [
"noreply@github.com"
] | KirillKonovalov.noreply@github.com |
e385ead310d3106ca430aff52eb1493207305ae2 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/SSD_for_PyTorch/mmdet/models/necks/yolox_pafpn.py | c56aa6f53df1a46417ab15014670f24816906d99 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 6,238 | py | # Copyright 2022 Huawei Technologies Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
a7a08117a64e3b9d0fee04e06d8a238517283597 | 80cb184cd05cc447da741a976527e9329bcd9f05 | /maiden/config.py | f073e1ac179f68c5476b2de22632a448526a1061 | [
"Apache-2.0"
] | permissive | oozappa/maiden | 9ef0f09f3d8f115f69ffe26f88d02e34b48d0d89 | 456d3bfe9d05ac4ab1680fafc8ef8a7477ff018f | refs/heads/master | 2022-05-28T14:25:57.608191 | 2022-04-17T02:29:06 | 2022-04-17T02:29:06 | 57,427,320 | 0 | 1 | Apache-2.0 | 2022-04-17T02:29:07 | 2016-04-30T04:39:51 | Python | UTF-8 | Python | false | false | 1,380 | py | import collections
import logging
logger = logging.getLogger('oozappa')
def _update(org, opt):
for k, v in opt.items():
if isinstance(v, collections.Mapping):
r = _update(org.get(k, OozappaSetting()), v)
org[k] = r
else:
org[k] = opt[k]
return org
class O... | [
"mtsuyuki@gmail.com"
] | mtsuyuki@gmail.com |
97a04619215b62b994dec14b5a445a7ec7f4c2d0 | 0b16b491709ff01407f4a77c7a66fa8a060a81f8 | /mysite/department/admin.py | 09cadeca94805250296293b9a22ba4bde5021775 | [] | no_license | kokkondaspandana/pollsapp | 1813b6c81f866878e41ff6a1d57513fc7e5ff151 | 22605e7cad16150253fb38f57c3d9f531cd48562 | refs/heads/master | 2021-01-19T02:24:14.590908 | 2017-04-05T06:27:21 | 2017-04-05T06:27:21 | 87,273,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from django.contrib import admin
# Register your models here.
from . import models
admin.site.register(models.Department) | [
"spandanak.sosio@gmail.com"
] | spandanak.sosio@gmail.com |
1aa67886a5fbeb91ad7eb625be22e604d137222b | c3f6b9f4b850046d5c12c9a69803c66d18b975e3 | /clip.py | 80bfadd82ca1e1b9b50260bb361f0e0fb735e35d | [
"MIT"
] | permissive | JimReno/pytorch-video-recognition | 75b3307dbe5328fc79f8fa42a601bb33bc08a37a | 8eceef090924e892bd2cdc1c875fc820e8699aba | refs/heads/master | 2020-04-30T07:06:17.022438 | 2019-03-20T07:10:46 | 2019-03-20T07:10:46 | 176,674,477 | 0 | 0 | MIT | 2019-03-20T07:14:42 | 2019-03-20T07:03:39 | Python | UTF-8 | Python | false | false | 3,746 | py | # 数据集制作
# 2018/12/18
import glob
import cv2
def resize_img(img_dir, save_dir):
# 批量修改图片大小
resize_factor = (224, 224)
img_paths = glob.glob(img_dir)
for img_path in img_paths:
img_name = img_path.split('\\')[-1]
img = cv2.imread(img_path)
resized_img = cv2.resize(... | [
"noreply@github.com"
] | JimReno.noreply@github.com |
8e565e33761a803e5727e5d53561cce980caa560 | d572728c0322e85b7e6421ee29e069016d622f88 | /Estrutura sequencial/area_terreno.py | f8a028c1f7da1b37860934255d42d4587e7b52a7 | [] | no_license | brunolomba/exercicios_logica | 60bc50576f5b9bd388458953597eae1eb8be7cda | 31a5c7bb00adc47e8bc082285c9e5001b5b166db | refs/heads/main | 2023-05-08T11:05:52.573121 | 2021-05-31T17:07:00 | 2021-05-31T17:07:00 | 368,974,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | largura = int(input('Digite um a largura do terreno'))
comprimento = int(input('Digite o comprimento do terreno'))
valor_metro = int(input('Digite o valor do metro quadrado'))
area = largura * comprimento
preco = area * valor_metro
print(f' o valor do terreno é: {preco}') | [
"brunolomba@gmail.com"
] | brunolomba@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.