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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
06b5c58d9ad0cb17cf0ba76d39d551040997dd6d | e59b939d0cf51783fabf750034cc926cd1830ac7 | /blender/nodes/output/__init__.py | db10ea1183e37c196fd7d1981634e73dc11d93cc | [
"MIT"
] | permissive | taichi-dev/taichi_elements | cf96e66fd1207d5389709da0c6148e19c990db06 | 2451c9843a7058a1edcd10e448460f4ba509ecc4 | refs/heads/master | 2023-08-19T09:07:36.709483 | 2023-02-09T19:39:25 | 2023-02-09T19:39:25 | 231,448,642 | 400 | 71 | MIT | 2023-07-25T21:29:52 | 2020-01-02T19:46:31 | Python | UTF-8 | Python | false | false | 20 | py | from .mesh import *
| [
"stalkermodkytia@yandex.ru"
] | stalkermodkytia@yandex.ru |
289e97211637cfe7a0756c10320768fac5de8148 | f72a0878225776c4c51d6201aeda705c99e197a4 | /rna_transcription.py | bcfda4eba6b499420d1d3f1835135fcf076d0162 | [] | no_license | pnadolny13/exercism_python | f9dbb8ec0df809ef428a9c3141cc7a9539934698 | 26726fb8d1f732dae8b04e61bb6c99df00abbc2c | refs/heads/master | 2021-01-19T20:50:35.160506 | 2017-09-21T16:07:46 | 2017-09-21T16:07:46 | 88,566,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 20 22:42:11 2017
@author: pnadolny
"""
def to_rna(dna):
dna = str.upper(dna);
rna = [];
for i in dna:
if i == "G":
rna.append("C");
elif i == "C":
rna.append("G");
elif i == "T":
rna.... | [
"noreply@github.com"
] | noreply@github.com |
833cbc14fd0605506b60d0d63c541f6e3bccb68b | 6641090f2715a19503139f9c0c2440d2059a58b4 | /main.py | 6a045a75813d49a80f20bb02a64696fb6e5c8c05 | [] | no_license | JakobJBauer/snake-game | 85e06c4b52b043c8e5d08adc10aee033da03dce9 | ffac318a71a5088e9e41719db1a9206610235ad4 | refs/heads/master | 2021-05-27T10:32:30.594714 | 2020-04-11T06:42:29 | 2020-04-11T06:42:29 | 254,254,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,628 | py | import pygame
import time
import random
from frame import Frame
from snake import Snake
from food import Food
# region define constants
FRAME_WIDTH = 500
FRAME_HEIGHT = 500
COLOR = 'red3'
FPS = 30
PIXEL_SIZE = 10
COMIC_SANS_MS_KEY = "Comic Sans MS"
# endregion
pygame.init()
start = True
while start:
start = Fals... | [
"private@jakobjbauer.com"
] | private@jakobjbauer.com |
e9d996c78e8dc4c50310a0589b6b1b7b6d6ebe3e | d58ead50a17e0dc4fd8aa737c7ea02c6566b488a | /gostuff/chapter_7_sgf/test_model.py | 10ca30cd0095069e116daa52de070cb9a5df6595 | [] | no_license | ThaddKara/GoStuff3 | 571ae5c71fcd812625659904381a76b8e28fd117 | def71eba0e312b06fa9244994d9a8929c2c33a1a | refs/heads/master | 2020-09-06T03:10:51.351595 | 2019-11-14T19:03:31 | 2019-11-14T19:03:31 | 220,299,930 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | from dlgo.data.parallel_processor import GoDataProcessor
from dlgo.encoders.oneplane import OnePlaneEncoder
from dlgo.networks import small
from keras.models import Sequential
from keras.layers.core import Dense
from keras.callbacks import ModelCheckpoint
if __name__ == '__main__':
go_board_rows, go_board_cols = ... | [
"asangar94@outlook.com"
] | asangar94@outlook.com |
61ff05ae1f2ff962b13358a66b366ac5c612e540 | 46355d9f1155bc7c0c2480a7c53fcb71e3347569 | /data_norm.py | 5c3742f459e029c09162241225c57701dfd55b7a | [] | no_license | digitaltxtlab/filterbubble_fb | f28c2d7ba53668ba4452d595772d254443f0d4fd | 44005f5639b2924de00e28d043f4017470f537f6 | refs/heads/master | 2021-06-16T06:27:15.065368 | 2017-05-23T16:27:09 | 2017-05-23T16:27:09 | 80,649,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
normalization of data from data_import
"""
__author__ = 'KLN'
import os, re
from unidecode import unidecode
from nltk.stem.snowball import SnowballStemmer
def normstatus(df, stem = 1):
""" Danish language normalization for status updates from data_import.get_sta... | [
"kln@cas.au.dk"
] | kln@cas.au.dk |
616522b64c32d6f1f50b3960b866d5a6dac86f00 | 348f6801fdffb2a7706794d19f06738cf445e2ae | /Backup.py | 6a97772fb21cf78773985c3ff0ce5b77f0ada3ce | [] | no_license | darpan92/SAPHANABackupAutomation | c4c85bac690ae0ecdc0795bb0c5a1b0a6f6f0bd1 | c15b64d744bb657cce84c757e5d99840bc90c7df | refs/heads/main | 2023-05-05T06:06:50.286371 | 2021-05-24T14:59:08 | 2021-05-24T14:59:08 | 370,388,100 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,000 | py | from hdbcli import dbapi
import sys
import shutil
import time
class Backup:
config = None
def __init__(self, config_instance):
self.config = config_instance
'''
Check the size of the backup
'''
def backup_size(self):
# Function backupsize() returns the estimated backup size of... | [
"darpan.patel@sap.com"
] | darpan.patel@sap.com |
91858d79d83f7ba3165e67901f878bb4ebd5d2dd | a701db10bbdfe8f22b7a9d0672584f7af731e0ab | /url_shortener_service/clients/bitly_client.py | 411cebe5aa2442531af2245ffd2f90e8908783e8 | [] | no_license | iamkhaya/url-shortener-service | b906d1d57b117735509b6e9ec18235cc99509393 | d2d6512049905469277534be1b2259dd8b8fcbf2 | refs/heads/master | 2022-12-19T01:30:36.773708 | 2020-09-21T23:13:40 | 2020-09-21T23:13:40 | 297,461,166 | 2 | 0 | null | 2020-09-21T23:16:04 | 2020-09-21T21:05:41 | Python | UTF-8 | Python | false | false | 2,346 | py | import logging
from typing import List
import requests
from url_shortener_service.adapters.bitly_adapter import BitlyAdapter
from url_shortener_service.clients.abstract_client import AbstractClient
from url_shortener_service.dtos.short_url_dto import ShortUrlDto
from url_shortener_service.dtos.short_url_metric_dto im... | [
"khayelihle.tshuma@gmail.com"
] | khayelihle.tshuma@gmail.com |
937f68177d0fecd5743188bb0990ceb0772ad8fa | 212522b02391cfe1d7873747c21d5fabdfd5e35d | /app/models.py | ae71f7a4207600f0c9df6622b4970770e9039702 | [] | no_license | graydenshand/flask_app_template | 9e5460875461f25d544f5575cf91b3d0dc5fa29d | 12c9db046fd12fd88c92dc5ff13c76906199c4a4 | refs/heads/master | 2022-12-12T00:14:29.862095 | 2018-07-11T20:15:26 | 2018-07-11T20:15:26 | 140,622,018 | 1 | 0 | null | 2022-09-16T17:48:03 | 2018-07-11T19:56:35 | Python | UTF-8 | Python | false | false | 1,595 | py | from datetime import datetime
from hashlib import md5
from time import time
from flask import current_app
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
import jwt
from app import db, login
class User(UserMixin, db.Model):
id = db.Column(db.Integer, pri... | [
"grayden@Graydens-MacBook-Pro.local"
] | grayden@Graydens-MacBook-Pro.local |
40e1fc945c26115dd87171bd13379d5ca5c0a6b4 | cf5ea5fb21960be9d0dd8438a1f7712c7ec2ccdb | /Programming/Math/excelColumnNumber.py | 0835bacd817ab4c91b94803df33604689fb3bfc1 | [] | no_license | anku255/Interviewbit | 1010546199d626eddbdd30d6ba42d1c7e8a42d50 | e42dfa10855b00934d39dcadce5fa527b4a96895 | refs/heads/master | 2020-06-28T20:27:44.774348 | 2019-09-20T17:17:01 | 2019-09-20T17:17:01 | 200,333,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from __future__ import print_function
class Solution:
# returns 1 for A, 2 for B and so on
def getSingleColNum(self, col):
return ord(col) - 64
def titleToNumber(self, col):
columnNumber = 0
colList = list(col)
colList.reverse()
for position, char in enumerate(colList) :
columnNum... | [
"ankitt255@gmail.com"
] | ankitt255@gmail.com |
749ebd1fc73831af5d53749d304aa4f0729f1cf8 | 0ca0fc2c2aad412d9e2936d5d01fb1abc1539ee4 | /apps/cart/forms.py | bead7dbbce173bcc6584e87b86d1c9a91dad31e7 | [
"MIT"
] | permissive | yeboahd24/python202 | 1f399426a1f46d72da041ab3d138c582c695462d | 35963db9a4ad5fcd567ce1e98c673f1a2ed2abef | refs/heads/master | 2023-05-06T04:14:19.336839 | 2021-06-02T01:22:44 | 2021-06-02T01:22:44 | 309,841,303 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from django import forms
class CheckoutForm(forms.Form):
first_name = forms.CharField(max_length=255)
last_name = forms.CharField(max_length=255)
email = forms.EmailField(max_length=255)
phone = forms.CharField(max_length=255)
address = forms.CharField(max_length=255)
zipcode = forms.CharField(... | [
"yeboahd24@gmail.com"
] | yeboahd24@gmail.com |
ba9216a59c2b13e1304cc23a6f7ab5f03cb1bc79 | 4738be75b3c4f8b98bbf8c2ab970a32ac0bdc2bf | /home/snobots/unified-ros-platform/src/events/src/iros2019/inverse_kinematics.py | 080a6b4038ae6be26128f4e692a271487bd9e02a | [
"BSD-2-Clause"
] | permissive | chris-mega/PianoPlayer | eaf75a2b067d08284fe8abf0f4f664fde93e75a5 | 555268fbc9220817afb26de728024a3223e89f1f | refs/heads/master | 2022-03-27T04:55:20.300585 | 2019-12-08T05:03:27 | 2019-12-08T05:03:27 | 213,043,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,177 | py | #!/usr/bin/env python
# Author: Christian Melendez
# Inverse Kinematics program for a ROBOTIS-OP3 robot
from enum import Enum
from time import sleep
import rosnode
import rospy
from std_msgs.msg import String
from control_modules.control_module import ControlModule
from iros_vision.msg import ObjectCoords
from keys... | [
"32151767+chris-mega@users.noreply.github.com"
] | 32151767+chris-mega@users.noreply.github.com |
919c233e7bdb36d3f70e3650491f482e24733d42 | 5b4835aeda881f6784d7836801056d001023eff5 | /2021/day-02/part2.py | 14315142011e6bbbfd62dd9dbd63d1b0072ec4fc | [] | no_license | xNaCly/advent-of-code | 852cc53aef15b96aa537170e14cfa41bbf4078c5 | 3e02706bcd37bc2250e9580aa6418fc696e68338 | refs/heads/master | 2023-06-11T06:22:01.662727 | 2023-05-31T05:56:46 | 2023-05-31T05:56:46 | 317,822,846 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | n = "i.txt"
with open(n, "r") as f:
c = [x.strip() for x in f.readlines()]
h = 0
d = 0
a = 0
for l in c:
i,v = l.split(" ")
i = i[0]
v = int(v)
match i:
case "f":
h += v
d += a * v
case "d":
a += v
case "u":
a -= v
print(h*d)... | [
"47723417+xNaCly@users.noreply.github.com"
] | 47723417+xNaCly@users.noreply.github.com |
490ef3f5be6348257d27d3d533195e69d91777d2 | ebec5b460e0e5c901bd9bd155d341421be892a00 | /linear_regression.py | 431d39a487631ff0394013c562dd52577f1d3e7a | [] | no_license | fredster9/thinkful-data-course | d0c9d746c4948da0ee8e936f20c3c9ef3c3fe11e | 8aa4e9eaf4eecd04a8477284ce1e273dea344a5a | refs/heads/master | 2021-01-22T22:21:21.439948 | 2015-06-06T19:38:15 | 2015-06-06T19:38:15 | 32,560,107 | 0 | 0 | null | 2015-04-14T03:10:13 | 2015-03-20T03:22:45 | Python | UTF-8 | Python | false | false | 2,087 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 27 20:36:39 2015
@author: fred
"""
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import statsmodels.api as sm
ld = pd.read_csv('https://spark-public.s3.amazonaws.com/dataanalysis/loansData.csv')
## Strip % signs from Interest.Rate
ld['Interest... | [
"10tonfred@gmail.com"
] | 10tonfred@gmail.com |
ed6dc456eab11ab5052cb302c87cfbb2ebce405a | e53009b7543a6dff5019dd8f21c9e7488d9daf72 | /2019/ISITDTU Quals/iz_heap.py | 3ec97d74aafa5b1c64c985d868e9f9bc378e27a5 | [] | no_license | hOwD4yS/CTF | ca8546cd0715ce4a3c2ebe5bf3939cc19932d38f | 0ff3de58513cbeb602a475f6add97b51c5574e28 | refs/heads/master | 2021-06-06T18:14:00.884142 | 2021-05-06T08:33:00 | 2021-05-06T08:33:00 | 144,465,413 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | from pwn import *
#p = process("./iz_heap_lv1")
p = remote("165.22.110.249",3333)
def add(size , data):
p.sendlineafter(":","1")
p.sendlineafter(":",str(size))
p.sendafter(":",data)
def edit(idx , size , data):
p.sendlineafter(":","2")
p.sendlineafter(":",str(idx))
p.sendlineafter(":",str(size))
p.sendafter("... | [
"noreply@github.com"
] | noreply@github.com |
5c4708a3dc80cafe963aa64187ed32d51dfc890f | 40f9febe33ab1b2aaf8e7b9a965dc4966476ab52 | /models/vision/detection/awsdet/utils/runner/hooks/logger/__init__.py | 2ace40536b0692bc9f7c12b192f427ae1b06c7ac | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | johnbensnyder/deep-learning-models | 770a9257eadb8f1b5bc250f277a45ac8c0eba2e7 | 5b1194a862c026a30d5dfff46979cb7e80869e81 | refs/heads/master | 2022-11-28T11:51:20.326742 | 2020-08-07T22:36:46 | 2020-08-07T22:36:46 | 262,207,411 | 0 | 1 | Apache-2.0 | 2020-05-08T02:26:16 | 2020-05-08T02:26:16 | null | UTF-8 | Python | false | false | 233 | py | # Copyright (c) Open-MMLab. All rights reserved.
from .base import LoggerHook
from .text import TextLoggerHook
from .tensorboard import TensorboardLoggerHook
__all__ = [
'LoggerHook', 'TextLoggerHook', 'TensorboardLoggerHook'
]
| [
"noreply@github.com"
] | noreply@github.com |
6b7c195eb0414b4a3705b64a56edf4b9fe4a9c26 | 615bdda10d9473c1c76fbfc28ed6cb378fa4a741 | /techgig_solutions/30_days_challenge/day_28.py | 56c2e9288b27671cfede645a60adc1e887b10f72 | [] | no_license | Soluspero/coding_practice | 08de2796ec2cec1c96185e7affe567b3bc90c935 | 175ce97530404724dd040cd7d0ce15a368a3ffa1 | refs/heads/master | 2020-04-19T16:27:23.250675 | 2019-05-22T02:03:04 | 2019-05-22T02:03:04 | 168,305,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | '''
Compare two numbers (100 Marks)
For this challenge, you will take two integers input from stdin, sum the digits of a number and same is to be done with another number. Then compare the sum of the digits of two numbers and if one sum found to be greater then print that number to the stdout. If found both sum to be ... | [
"soluspero@gmail.com"
] | soluspero@gmail.com |
a9db9d36ada768fb305ce1f861cf4a50ac70729a | fe8142632f381654a0b7073664c534dfbebb7851 | /ADJUSTABLE2.py | 282adb18887b73f074490de0080b3602609799f9 | [] | no_license | edgelore/Testing_development_over_time_for_creation_of_a_language | 2b4f248fbfed3c20207ff8ae11596073fd216066 | 1ad3ccbd37cc5831ecf1c7a55776592c4cae03f9 | refs/heads/master | 2020-04-13T22:28:07.528334 | 2018-12-29T06:02:11 | 2018-12-29T06:02:11 | 163,480,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | ADJUSTABLE2 = "CAPABILITY TO ADJUST"
| [
"noreply@github.com"
] | noreply@github.com |
e8493a1b631c82cd20a805041411a0ddabce63d0 | 5e5b8a66d35be6b86d3754069613fe49108a700d | /scripts/webquestions-preprocessing/paraphrase_rules.py | b8ff50290c2c4c922205a06b3aa5feddffdd7d10 | [
"CC-BY-4.0"
] | permissive | saraswat/graph-parser | e77f9880f38d1d23cf5aebb149be997d9c715745 | da8800503174dce0590a55b817cd024354e41d9e | refs/heads/master | 2021-01-11T09:01:50.414615 | 2016-12-23T13:17:59 | 2016-12-23T13:17:59 | 77,409,845 | 1 | 0 | null | 2016-12-26T22:26:28 | 2016-12-26T22:26:28 | null | UTF-8 | Python | false | false | 3,122 | py | '''
Created on 26 May 2014
@author: siva
'''
import json
import re
import sys
for line in sys.stdin:
line = json.loads(line)
# print line
# sentence = line['sentence']
sentence = " ".join([word["word"] for word in line["words"]])
if re.search(" do \?$", sentence):
# what did Einstein... | [
"siva@sivareddy.in"
] | siva@sivareddy.in |
e0f9e0cc67afaf29f291926c9c6aa95c05deb166 | 5792baf9e18ad91816cc42f4725b099a4dce7b7b | /HackerRank/Strings/Python sWap cASE.py | 9e524564145bac64f1ed70970b832d5b588f495a | [] | no_license | deepakorantak/Python | 83b6782db0b5428d47fbc29193076e8ed5f5e285 | 9781133ce5a5c6f87efb5d4aa132a63ba1290f76 | refs/heads/master | 2020-03-23T19:55:30.075700 | 2019-02-19T06:24:42 | 2019-02-19T06:24:42 | 142,010,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | def swap_case(s):
return str.swapcase(s)
if __name__ == '__main__':
s = input()
if len(s) > 0 and len(s) <= 1000:
result = swap_case(s)
print(result) | [
"DeepaNKorantak@Gmail.com"
] | DeepaNKorantak@Gmail.com |
6ea5d6604909fba4dae2f6fa379bf3062b294799 | f78d8aae7c2e3c5c705b445d252822dffa5d2141 | /app/parse.py | 0399dbeed21272ffe777ee82458b17cb5c44a121 | [
"MIT"
] | permissive | o-alexandre-felipe/verilog-structural-manipulation | bc832ec2e061121ceb82b3441bd410806c785cc5 | d210b415cfa2ef732ba1099c8934b4b4354f2526 | refs/heads/master | 2021-09-08T03:57:14.697822 | 2021-09-03T08:22:07 | 2021-09-03T08:22:07 | 95,001,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,841 | py | import re;
module_re = re.compile('\\bmodule\\b.*?\\bendmodule\\b', re.MULTILINE | re.DOTALL);
module_parts_re = re.compile("""
\\bmodule\\b\s*
([a-zA-Z_][a-zA-Z0-9_]*) # module name
\s*(\#\s*\(.*?\))? # parameters are serparated by commas,
# the port list is separated with spaces
\s*\((... | [
"noreply@github.com"
] | noreply@github.com |
ddffbaff4759c5ede7ce9da994b1bf6934ba88ea | 05ebbebf973feb97c4a4a2f36ae84527d41cac26 | /plot_cap.py | 1e610517385e48d9f901ff05e51b52b488cdf9d3 | [] | no_license | noaa-oar-arl/hysplit_gmm | 4a3b24870fbdcb224f530bb13b6810d7bb068f56 | a71cf17e91c44efb8a64c67d12ce2fa36b7ccf79 | refs/heads/master | 2023-02-05T10:20:07.258913 | 2020-12-18T16:15:40 | 2020-12-18T16:15:40 | 300,342,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,393 | py | import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
def readstat(fname):
"""
fname : str
read output of statmain program.
"""
dhash = {}
#print('opening ', fname)
with open(fname, 'r', encoding="ISO-8859-1") as fid:
for line in fid:
if "Correlation... | [
"alicec@umd.edu"
] | alicec@umd.edu |
9b9d7095b47314c16a5bb2eb07d9b53a29be7d85 | e7d464c201a195cb8cbe277d9bb329955f9c6c8a | /main.py | 00e776fab18a8ed59bc5268af85e6720f651b79f | [] | no_license | OmarSadigli/Pomodoro-Timer- | 2548f3c82b96205fa70567ace32a6534c64a399d | f613a8fd5a17e07504b0040399c60b333f9634c6 | refs/heads/main | 2023-03-06T03:08:49.210071 | 2021-02-15T10:05:53 | 2021-02-15T10:05:53 | 339,034,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,629 | py | from tkinter import *
import math
# ---------------------------- CONSTANTS ------------------------------- #
PINK = "#e2979c"
RED = "#e7305b"
GREEN = "#9bdeac"
YELLOW = "#f7f5dd"
FONT_NAME = "Courier"
WORK_MIN = 25
SHORT_BREAK_MIN = 5
LONG_BREAK_MIN = 20
reps = 0
timer = None
# ---------------------------- TIMER RES... | [
"noreply@github.com"
] | noreply@github.com |
be9cf6de41337a706ff9fa46d7816b99d1f552a0 | b306aab9dcea2dd83dda700bc9f7b9f1a32cff3a | /CAIL2021/slsb/main.py | f67c06674df00f1d0948662b5528d9c5174dd6c3 | [
"Apache-2.0"
] | permissive | Tulpen/CAIL | d6ca9981c7ea2603ae61675ba330a9614cd9398d | c4cfa98ab4ecedbce34a7a5a186830486047540c | refs/heads/master | 2023-04-23T20:07:56.774530 | 2021-04-16T13:18:36 | 2021-04-16T13:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,066 | py | """Test model for SMP-CAIL2020-Argmine.
Author: Tsinghuaboy tsinghua9boy@sina.com
Usage:
python main.py --model_config 'config/bert_config.json' \
--in_file 'data/SMP-CAIL2020-test1.csv' \
--out_file 'bert-submission-test-1.csv'
python main.py --model_config 'config/rnn_c... | [
"bangtech@sina.com"
] | bangtech@sina.com |
de94817af1da26dc86379aaeed8e0352d2b54a29 | 89d674ef6ea9f6cceb7c58dda8da524b8b2aa944 | /flaskblog/main/routes.py | b2b67c9bf7673099a9f427859a670da435383448 | [] | no_license | vinodhrathanam/flashblog | 004ceb19e8fe8611f9acf336ee210a40615a987a | b5ae533d36bcb64414c79adfa0e3b30e90b145bc | refs/heads/master | 2020-05-09T14:32:44.173794 | 2019-04-13T16:25:32 | 2019-04-13T16:25:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from flask import render_template, request, Blueprint
from flaskblog.models import Post
main = Blueprint('main',__name__)
@main.route('/')
@main.route('/home')
def home():
page = request.args.get('page',1,type=int)
posts = Post.query.order_by(Post.date_posted.desc()).paginate(page=page, per_page=5)
retu... | [
"rathanamvinodh@gmail.com"
] | rathanamvinodh@gmail.com |
d226826efc7925a38771ffa80e803b71f8684253 | 288a00d2ab34cba6c389b8c2444455aee55a8a95 | /tests/test_overwrites.py | 6be0434f5d59a65c73dba6e837e5662c22636de7 | [
"BSD-2-Clause"
] | permissive | JohannesBuchner/pystrict3 | ffd77b7bbc378bd4d8f21b5c6bd69a0d64a52ddb | 18b0dd369082422f9bf0f89c72e7acb53a49849c | refs/heads/master | 2023-08-14T06:37:37.954880 | 2023-07-13T11:16:38 | 2023-07-13T11:16:38 | 268,571,175 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | import ast
from hypothesis import given
from hypothesis.strategies import text
from pystrict3lib import assert_unknown, preknown
def test_assert_unknown():
node = ast.parse("print('hello world')").body[0]
known = {}
assert_unknown("name", known, node, "filename")
def test_assert_known():
node = ast.parse("print(... | [
"johannes.buchner.acad@gmx.com"
] | johannes.buchner.acad@gmx.com |
d7d3b5dd82cf367f319361397028ffae52993332 | 29903a2ef2dce59ecf1c680bb7096cbe5f36a43f | /BL_plot.py | 7a7ccb5918c8513bdc0801e001a99585ce4b95a4 | [] | no_license | mkindree/Python_Code | 1af4e5e05166f3ba55052330983ef08103e30b91 | 6ae03b570085bb8c1b73fbe226806fa6914a0f38 | refs/heads/master | 2021-03-30T20:46:48.128659 | 2018-03-13T18:26:24 | 2018-03-13T18:26:24 | 125,081,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,811 | py | from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
#%%
# These options make the figure text match the default LaTex font
plt.rc('text', usetex=True)
plt.rc('font', **{'family': 'serif', 'serif': ['Computer Modern'], 'size': 10})
#%% Boundary Layer data from spreadsheet
y ... | [
"noreply@github.com"
] | noreply@github.com |
a75cf2c5ccb67a5597a9c6f2f53b6994acad99ad | 29db1aec3519a22f01ef01a9eac783f0609dae4c | /Maximumposterior.py | dd480e3c77425e2f40fbfc99b846d6f87bd74f80 | [] | no_license | anirudhjack/Machine-Learning | 7ebefc52cd2326c8736fc2cb0d76ae1a7f8bde37 | c4f58a08826cb35b51ce9b0f246b6379494e64a3 | refs/heads/master | 2020-05-01T11:45:31.510779 | 2019-03-24T18:24:59 | 2019-03-24T18:24:59 | 177,450,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | import numpy as np
print(" Enter the No of training samples")
N=int(input())
x_g=np.linspace(0,2*np.pi,N)
y=np.sin(x_g)
mean=0
std=0.05
y+=np.random.normal(mean,std,N)
import matplotlib.pyplot as plt
#creating x-matrix using vstack function i.e arrange the data row wise
x=np.vstack((np.ones(N),x_g))
print("Enter ... | [
"noreply@github.com"
] | noreply@github.com |
30612cf5dfad62cf5a0a6782eac0b94e52925ce5 | 26cc17706223a5f307d5b2a578620b436ce2eb69 | /cnn/linear_model.py | 6b8b70c74ac2649da865907d9fc859f736cc2c20 | [] | no_license | tanimutomo/webapp_mnist | 6d3bbca2d32cd565d39e925ec200534b78bde0a1 | 7f9a8a2788b8c394aa318d5b0441b313c50a7b48 | refs/heads/master | 2020-03-17T07:31:40.724322 | 2019-02-11T05:30:29 | 2019-02-11T05:30:29 | 133,393,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class Linear_mnist(nn.Module):
def __init__(self):
super(Linear_mnist, self).__init__()
self.fc = nn.Linear(784, 10)
def forward(self, x):
x = x.view(-1, 28 * 28)
x = self.fc(x)
x = F.softmax(x, 1)
... | [
"tanimu@ht.sfc.keio.ac.jp"
] | tanimu@ht.sfc.keio.ac.jp |
fb94fc1597debf5a7a51e313349f8349d6bfb26d | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/_codecs.pyi | cc46a5a2b0b4513b177439dd5c53dfa3f3058b1e | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | pyi | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/py-jedi-0.17.0-zugnvpgjfmuk5x4rfhhxlsknl2g226yt/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/_codecs.pyi | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
db75e1888c9f05e37ce8b679dcb3e6804cadf62f | bef617e43198b5acd5f019f58fcef9a6b3bcf77a | /choreo/scheduler/scripts/rqscheduler.py | 745b1972d9a5353c62bf9ffe794549cb68a2b982 | [
"MIT"
] | permissive | Mizzlr/choreo | c60dc9f39dd03a5ba3b3492bca64149bc4df177a | e8487b87d26640ea8826a42ef42514160decc373 | refs/heads/master | 2020-05-17T02:27:29.022357 | 2019-05-06T09:01:00 | 2019-05-06T09:10:17 | 183,454,970 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | #!/usr/bin/env python
import argparse
import sys
import os
from redis import Redis
from choreo.scheduler.scheduler import Scheduler
from choreo.scheduler.utils import setup_loghandlers
from choreo.multirq.cli.cli import main as multirq
@multirq.command()
def scheduler():
parser = argparse.ArgumentParser(descri... | [
"mushtaquethegeek@gmail.com"
] | mushtaquethegeek@gmail.com |
e4ae7195bcb012b25bf0ef8fa2bb76dc9bcedafa | af5a48ef76dd701f888f3884ceb5e39aced63edf | /bert_predict_new.py | e14188b764c01f28de8bf056a27961f829ed16a1 | [] | no_license | 240648795/nlp_test | 87bae9352d741463525d1dfcc05c0f1860bb75dc | 667b7a3a41024319aae377c00f2618d907dcd3e1 | refs/heads/master | 2023-02-03T23:44:26.631170 | 2020-12-16T03:08:56 | 2020-12-16T03:08:56 | 321,285,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | import joblib
from keras_bert import get_custom_objects
from keras.models import load_model
import numpy as np
from bert_train import acc_top2, data_generator
from keras.utils import to_categorical
import gc
import keras.backend as K
def load_model_encoder_details(model_path, encoder_path, details_path):
custom_ob... | [
"240648795@qq.com"
] | 240648795@qq.com |
e1a70889e373ca860d381781148acddcf9e13a57 | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/googlecloudsdk/third_party/apis/cloudiot/v1beta1/cloudiot_v1beta1_client.py | b2ff82c30ed6816f1ea9058a0ee4fe9536f38a48 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 21,034 | py | """Generated client library for cloudiot version v1beta1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.cloudiot.v1beta1 import cloudiot_v1beta1_messages as messages
class CloudiotV1beta1(base_api.BaseApiClient):
""... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
adce83a22777b2ebe8fe30f555671f0d10599045 | 580a43c9bc8cc5cd5db745155e0721b5ba1664f6 | /S3-Notifications-Lambda/output.py | 8df38b8094739a3b3654a3327667dd092c71eb2e | [
"Apache-2.0"
] | permissive | Jardo72/AWS-Sandbox | e10e750a955701cb341b4133544f9e081378f37f | b0402295e9097027c12b1954df967a0ac4d5163d | refs/heads/master | 2023-07-08T21:02:30.360536 | 2023-06-30T09:07:23 | 2023-06-30T09:07:23 | 216,329,685 | 1 | 1 | Apache-2.0 | 2023-05-23T04:57:47 | 2019-10-20T08:21:58 | HCL | UTF-8 | Python | false | false | 1,983 | py | #
# Copyright 2021 Jaroslav Chmurny
#
# This file is part of AWS Sandbox.
#
# AWS Sandbox is free software developed for educational purposes. It
# is 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... | [
"noreply@github.com"
] | noreply@github.com |
77f88b6cb7d386f11e85007e8f911227e7ffdaa8 | dea9f25321014fb3a374846d4d5491175d0b09f6 | /assignment14/ass14_1.py | 4690479dbd447aa9498b90131144d516f7ce8e9e | [] | no_license | malay190/Assignment_Solutions | 9a994a510ab7ba61d1d8d8c059c1ecafd3a7e049 | 48ec569e40fa4094a88739407f9fbe4f6dae1e77 | refs/heads/master | 2020-03-20T03:50:27.583251 | 2018-07-09T15:53:54 | 2018-07-09T15:53:54 | 137,161,356 | 0 | 3 | null | 2019-10-15T04:44:26 | 2018-06-13T04:10:36 | Jupyter Notebook | UTF-8 | Python | false | false | 196 | py | #Q.1- Write a Python program to read last n lines of a file
n=int(input("enter the last n lines you want to read:"))
f=open('test.txt')
content=f.readlines()
while n>0:
print(content[-n])
n-=1
| [
"malaykumar089@gmail.com"
] | malaykumar089@gmail.com |
ae06705854bfb94e12685e6ba2471012f9fd8daf | fa075e513471921afc02cf6b3ca39dfe4e73527c | /data/datasets/image/dukemtmcreid.py | be51ab0bda286a3be2c4d26ff9623e0c99f2af27 | [
"MIT"
] | permissive | Yinsongxu/MVMP_MFFN | 99bbcadbea6a76ccd177ff94aa102f041cc8134e | 2024197ca1f1d7f2f52ccbce08eb85dd282de70d | refs/heads/main | 2023-05-05T20:29:00.041869 | 2021-05-30T09:23:58 | 2021-05-30T09:23:58 | 372,161,994 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,530 | py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import sys
import os
import os.path as osp
import glob
import re
from data.datasets import ImageDataset
class DukeMTMCreID(ImageDataset):
"""DukeMTMC-reID.
Reference:
- Ristani et al. Perfor... | [
"xuyinsong@bupt.edu.cn"
] | xuyinsong@bupt.edu.cn |
62d885e2dfc1f0c0f22c2711cb0bcfabeb0641b3 | 0942ec9cdda81f754d05ae9893605769ed5c1111 | /flask-video-streaming/camera_pi.py | f94a07a7875d2c5f6778403d01ea02da3986608e | [
"MIT"
] | permissive | sourceperl/rpi.webcam.pi3 | f9fa061bc05bab9720c9e372c96f65e431ad5673 | ea8559ca93f771250961a63fbe0f7acc3a7a2338 | refs/heads/master | 2020-12-25T14:38:24.234521 | 2016-07-21T14:56:01 | 2016-07-21T14:56:01 | 63,687,773 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | import time
import io
import threading
import picamera
class Camera(object):
thread = None # background thread that reads frames from camera
frame = None # current frame is stored here by background thread
last_access = 0 # time of last client access to the camera
def initialize(self):
if ... | [
"loic.celine@free.fr"
] | loic.celine@free.fr |
50509f1fcaee6a8db649657d24ee5a29044b19e6 | 6932a9ae700a623f16a3aef417d0598cf6d4f389 | /karasu_speak.py | c8c028b30786e6c5b67abc979a0d40f60e63f06a | [
"MIT"
] | permissive | MuAuan/hirakegoma | 9f1a252d913749a2c16ae5bd7a8870550048d26d | 861879af1016c25b7a14bcabe543bfba47fd57f3 | refs/heads/master | 2020-04-27T20:12:25.315594 | 2019-03-24T12:38:30 | 2019-03-24T12:38:30 | 174,649,241 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | # -*- coding: utf-8 -*-
import cv2
import pyaudio
import sys
import time
import wave
import pydub
from pydub import AudioSegment
import moviepy.editor as mp
import datetime
import os
from vgg16_like import model_family_cnn
from keras.preprocessing import image
import matplotlib.pyplot as plt
import keras
import numpy a... | [
"noreply@github.com"
] | noreply@github.com |
c05ac1332910c7ae7901500da72f4923b5fc4770 | 15646d66d4452a4efa927d53dc687d78c5201ece | /code/datasets.py | e8528356752b7f77b481e2a75d2d9e7a9ea82620 | [] | no_license | wjtoth/co759-project | 0461ba86c7e76fa90af5fb3a08af2128189de06b | aae54cd76a2c4c3cb84cc607625d94036a45b1a5 | refs/heads/master | 2021-01-25T10:06:21.818503 | 2018-11-26T20:12:18 | 2018-11-26T20:12:18 | 123,339,356 | 1 | 0 | null | 2018-04-24T19:57:57 | 2018-02-28T20:35:20 | Python | UTF-8 | Python | false | false | 11,924 | py | import os
import logging
from functools import partial
from copy import deepcopy
import torch
from torch.utils.data import DataLoader
from torchvision import datasets, transforms
from util.partialdataset import validation_split
from util.concatdataset import ConcatDataset
from util.datasetindexingwrapper import Datas... | [
"lnabergall@mail.usf.edu"
] | lnabergall@mail.usf.edu |
b78e6bea6c9302563091f707c926e77f8c3a6ec1 | 7737fd9eacc1a8b8d8b14a3ebca4e86c174ff8b4 | /gist/cuatro.py | 54ec61ec1642f72076b989fa7e82c510f366d92c | [] | no_license | davidgjordan/gym_tensorflow | e82a021ee329e8f6430ff52e6ec36444e842dcec | d97070cfd8079356c77f079d821c0ba5aebcaabc | refs/heads/master | 2018-09-23T17:16:20.968122 | 2018-06-27T18:55:00 | 2018-06-27T18:55:00 | 117,039,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,149 | py | #! /usr/bin/python3
# -*- coding: utf-8 -*-
import numpy as np
import gym
from keras.models import Model
from keras.layers import Input, Dense, BatchNormalization, PReLU, Dropout
from keras.regularizers import l2
from keras.optimizers import RMSprop
from keras.engine import Layer
from keras import backend as K
env_na... | [
"davidgjordancbba@gmail.com"
] | davidgjordancbba@gmail.com |
34179ff136b9b68223fd42cb9f5fbe54e95a88de | af0dcf80a36da4ac6894dc517ad1870f702c3122 | /azure-mgmt-web/azure/mgmt/web/models/csm_publishing_profile_options.py | 99b9542ab7d50b0a1d29b9d31f8743561ff5afa3 | [
"Apache-2.0"
] | permissive | FlavioAlexander/azure-sdk-for-python | 4c6151ca17886f9e4d47e1ccc469859abdedca5a | 8c7416749f9a5697e0311bc9af8fe5c0d524ca03 | refs/heads/master | 2021-01-24T02:34:37.194767 | 2016-07-03T23:47:23 | 2016-07-03T23:47:23 | 62,738,173 | 0 | 1 | null | 2016-07-06T16:54:12 | 2016-07-06T16:54:10 | null | UTF-8 | Python | false | false | 1,346 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
d0bbe41af3a825c8397a6ae8f3261c2be29c4625 | 15960f0aa40915ddc93cd5c8a840a4abfb167cf1 | /groups/models.py | 0fae1fa57df655ee1187afa7e7aea983641ef30c | [] | no_license | phouse512/piper | 74d815fd443482abc80418dbed678b1431e17eb9 | 70f651db8af4edb625f6ba249556d3c2d04a350b | refs/heads/master | 2022-05-04T20:36:56.354336 | 2018-12-19T04:28:23 | 2018-12-19T04:28:23 | 40,972,739 | 0 | 0 | null | 2018-11-17T16:56:21 | 2015-08-18T13:13:15 | Python | UTF-8 | Python | false | false | 399 | py | from django.db import models
from users.models import User
class Group(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=30)
class Meta:
db_table = 'groups'
class GroupMembership(models.Model):
id = models.AutoField(primary_key=True)
user = models.ForeignKey(User)
g... | [
"philiphouse2015@u.northwestern.edu"
] | philiphouse2015@u.northwestern.edu |
ff394e97747dd634f04822bfb6ae50e11a289760 | ecf33e849afc7379070b7e088f957536b5736b50 | /models/user.py | 66c53ddc7b45c5ffa7d234b27b28b5e87340f616 | [] | no_license | AhmedKaramDev/FlaskRESTful_API | e5eeb7af05ca5b75937b577959f9f0e5262e92b4 | cde3fb9178382d56da4bcec38414489209f9e171 | refs/heads/master | 2020-06-01T22:15:00.477844 | 2019-06-09T14:22:15 | 2019-06-09T14:22:15 | 190,947,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | import sqlite3
from db import db
class UserModel(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80))
password = db.Column(db.String(80))
def __init__(self, username,password):
self.username = username
self.password =... | [
"mesta.mr@gmail.com"
] | mesta.mr@gmail.com |
14deabd526b83ff7e8fd5d52399cd3b61b61d267 | dbce052f7322614fd4766e77139df5b7ca5c2908 | /Previous OpenCV projects/border_opencv_logo.py | 8883a3d238541486c85dda8f78e79d795c72e0e8 | [
"MIT"
] | permissive | dmiruke/Python-Pyimagesearch-IP | d0afb8930f1469f594bef885cbdef96a08d34f1f | e590bc7959cd062f9fe670f4249373f175c321b9 | refs/heads/master | 2022-02-19T17:22:29.246188 | 2019-09-30T21:05:58 | 2019-09-30T21:05:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 19 16:29:26 2017
# Successful
@author: Rukayat Ariori
"""
import cv2
import numpy as np
from matplotlib import pyplot as plt
BLUE = [255,0,0]
img1 = cv2.imread('opencv_logo.jpg')
replicate = cv2.copyMakeBorder(img1,10,10,10,10,cv2.BORDER_REPLICATE)
reflect = cv2.copyMakeBo... | [
"josedixon16@gmail.com"
] | josedixon16@gmail.com |
45c337f0ce82f23dcbacf2c49c590c23ac755887 | 789807122804d53b6855634ce86514f39c9bee13 | /Remove_Duplicates_from_Sorted_List,py.py | bc4082922948f0f36630aa14039d8b4454dafc04 | [] | no_license | LRegan666/Athene_Leetcode | 0da1490823b59f6ec59884f169709f376ea2c9ee | f621842bc8ce3c068b3279302e6de6ce484610a6 | refs/heads/master | 2020-04-15T02:07:05.574524 | 2019-02-23T11:13:20 | 2019-02-23T11:13:20 | 164,303,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | class Solution:
def deleteDuplicates(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
if not head:
return head
phead = head
prev_val = phead.val
while phead.next:
next_node = phead.next
next_val = next_node... | [
"snz521@126.com"
] | snz521@126.com |
e153ba4d070ed7888466798b57dcc853f7ee5ee9 | c8580191b571a4081fd2b1df9a73a890640a9778 | /report_generator/__main__.py | 80645c2de9f0b394bbb7cfa0841b729536e946f0 | [] | no_license | yanivfgl/UBCHelios | b0f08b99a505e79a800c56e9809768832cb71498 | 9f56765c199340959ba3ec81b81e16b811435af4 | refs/heads/master | 2020-07-14T01:56:49.320669 | 2019-08-29T00:56:59 | 2019-08-29T00:56:59 | 205,206,643 | 1 | 0 | null | 2019-08-29T16:34:11 | 2019-08-29T16:34:10 | null | UTF-8 | Python | false | false | 1,696 | py | import constants_rev as cs
import functions as fn
import si_formatter as si
print("Welcome to Mars Colony::Project HELIOS Calculations")
def print_report(revenue_desired=cs.REVENUE_DESIRED):
"""
generates report
:param revenue_desired: revenue desired
:return: prints the report
"""
# Prints i... | [
"benjamin.wong@alumni.ubc.ca"
] | benjamin.wong@alumni.ubc.ca |
448647d2a2227132ad85b2902a4bbbd3b2d42474 | 399b69613df1700d19a0e803fe47fd8cbad365f7 | /myansible/ansicfg/dhosts.py | a7030278867a479925cdec27a62abed9fd9ecd6c | [] | no_license | hraa0101/python | 13d05e6fc6ab40185d317f05e5ff520647437b59 | 5d16ff9b1599d3cba4386ef0cc7bea9a9de5c58f | refs/heads/master | 2020-03-26T15:37:31.038126 | 2018-10-05T01:53:19 | 2018-10-05T01:53:19 | 145,054,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
#from __future__ import unicode_literals
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, Date, ForeignKey
from sqlalchemy.orm import sessionmaker
import json
engine = create_engin... | [
"hraa0101@163.com"
] | hraa0101@163.com |
4aad67a6a71395c673ae5f5856acede9f780ea61 | ba268419a2d14261cec3dc5ef3aed325ec464f40 | /Week5/Money in the bank/start.py | 9e143450c57aea958af5d7dae3eec9d0ccc2844d | [] | no_license | Hristiyan-Andreev/HackBuglaria | a12063cabb3f25f85d35b387eed4af6b521aeb99 | 64c362a135386b577d4a860e5f13fbbb506268b4 | refs/heads/master | 2021-01-19T07:43:52.987409 | 2014-12-07T12:49:08 | 2014-12-07T12:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,078 | py | import sql_manager
import hashlib
import getpass
import datetime
def main_menu():
faillogin = 0
print("Welcome to our bank service. You are not logged in. \nPlease register or login")
while True:
command = input("$$$>")
if command == 'register':
username = input("Enter your us... | [
"hrvalandreev@gmail.com"
] | hrvalandreev@gmail.com |
c308ae66daa33b8c226cc21d524b24a164a41d1d | abbc40722942a449e1f1fcb802d573228cc4b64c | /prototype.py | d6ed8d6c82dae80e5b84450487e12ff5da9da0fe | [] | no_license | dwaard/pylogger | 6176d177b2d7b77d1aaab30a5c4497c30d65298b | ca9d9b0421fd09dadd5b499afae345b03d39b194 | refs/heads/master | 2021-01-17T17:31:53.916167 | 2017-02-23T19:31:40 | 2017-02-23T19:31:40 | 82,963,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | import matplotlib.pyplot as plt
from receiver import Receiver
from serialreader import Reader
from logger import Logger
from plotter import Plotter
# setup the reader, logger and plotter
fig, axes = plt.subplots()
r = Receiver(Reader(), Logger(), Plotter(axes))
r.start()
plt.legend()
plt.show()
| [
"daanwaard@gmail.com"
] | daanwaard@gmail.com |
c5420358fb87484239026919e290e881a7b4c6c4 | 2ce0c37ac7d9beeac23db688f97a1f502b92d13a | /store/models/store.py | 878b20d11d588de233e55c8908f1c894374734b0 | [] | no_license | AmrElsayedEG/inventory-system | 0cdb0634b33117b13bfcae8642f979448d831369 | d4bc483612c3b721918d75f24ab0d7fa29b78ce3 | refs/heads/main | 2023-08-20T22:32:25.113740 | 2021-10-04T08:55:44 | 2021-10-04T08:55:44 | 413,344,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from django.db import models
class Store(models.Model):
name = models.CharField(max_length=100)
address = models.CharField(max_length=200)
coordinates = models.JSONField(blank=True, null=True)
def __str__(self) -> str:
return self.name | [
"elsayed.amr50@gmail.com"
] | elsayed.amr50@gmail.com |
a560d10713bc976b978431314f53a75111c1555a | 3aa8222bb2edc93c9202ccbcf6f331cdf73cd5a2 | /FundRatingNSDL/nsdl_extraction/setup.py | ac0e1546b51b54b85c28ad5f48c2c3952b296cc5 | [] | no_license | pavithra-ft/ft-automation | a977809823e587efd596b02e3a8286f887d12116 | 946e1c35b785bfc3ea31d5903e021d4bc99fe302 | refs/heads/main | 2023-04-24T19:54:28.478577 | 2021-05-11T17:53:08 | 2021-05-11T17:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | # Automatically created by: scrapyd-deploy
from setuptools import setup, find_packages
setup(
name='project',
version='1.0',
packages=find_packages(),
entry_points={'scrapy': ['settings = nsdl_extraction.settings']},
)
| [
"64137264+pavithra-ft@users.noreply.github.com"
] | 64137264+pavithra-ft@users.noreply.github.com |
a25d41807d5e355c5a7487c2a5485d6b49d1dbdb | 331897b7af41f719edba54587b01407d20b5fc07 | /backend/models.py | 9c52d2e988b0fa6018b1beec112ff1dbe070c076 | [] | no_license | JaysesS/Hackathon | 8ceb023e753479ef8eb64a2b4d4302f784df82ed | dff2afa5db9163e2f14a26013156c9fe80af3255 | refs/heads/master | 2023-07-26T06:23:11.445218 | 2021-08-29T12:00:42 | 2021-08-29T12:00:42 | 400,645,929 | 0 | 0 | null | 2021-08-29T12:00:43 | 2021-08-27T22:10:38 | Jupyter Notebook | UTF-8 | Python | false | false | 6,593 | py | from typing import List, Optional
from flask import g
from datetime import datetime
from sqlalchemy import Column, ForeignKey, Integer, String, Boolean, Sequence, Index, func, create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import backref, relationship, remote, foreign, session... | [
"softelele@mail.ru"
] | softelele@mail.ru |
55449c7a1ec4597c4f9f4692300b0cefdab77ba4 | ad8590e6049d88ef0829f80c0ce427f299a1c719 | /backend/models/ProjectModels.py | 77bddc490f223b6622b28e0c17a4915f955d1ffc | [] | no_license | liujue520/VotingManagement | 33ccca02039b7de0f3fb3aa7c5392b0afdde3918 | 8c5b812e68514062d2f34963917d7679309abdca | refs/heads/master | 2022-12-23T03:39:45.929603 | 2020-09-18T01:23:37 | 2020-09-18T01:23:37 | 292,767,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | from django.db import models
import uuid
class Project(models.Model):
ProjectId = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
ProjectName = models.CharField(max_length=32, verbose_name="项目名称", default="输入项目名")
Created = models.DateTimeField(auto_now_add=True,verbose_name='创建时间')
... | [
"liujue212@gmail.com"
] | liujue212@gmail.com |
d46378b10661fadbaff034e5e9e9071f4bb301b6 | 88c4be065cb3b6904994b1718a75736c87241633 | /web/app.py | ff37699e91caa6afb592a37b5597b54886c5cd7d | [] | no_license | RomUriy/Animation-Creator | b0d82710e21c7c01efc6863c086f9a8bb54e501a | 98cdb2af014925c2fe99bb8805b76c3b12d1fcd9 | refs/heads/master | 2022-08-10T15:58:17.322825 | 2018-06-14T15:01:51 | 2018-06-14T15:01:51 | 137,210,209 | 0 | 0 | null | 2022-07-07T22:58:54 | 2018-06-13T12:06:43 | Python | UTF-8 | Python | false | false | 1,524 | py | import boto3
import os
import json
from flask import Flask
from flask import render_template, request, flash
from media.s3_storage import S3MediaStorage
from media.name_generator import generate_name
from flask_bootstrap import Bootstrap
app = Flask(__name__)
Bootstrap(app)
s3 = boto3.resource('s3')
media_storage = S3... | [
"romuriy@gmail.com"
] | romuriy@gmail.com |
c097371ef72a1eee6842648f528eab90ff75039d | 60b76b2904b3f38d5f12e07c007fd2902e34d599 | /importdf_backup.py | 249083b97ee3994828022ab004744fdc9abbea4d | [] | no_license | nzminki0621/diveroid | a53485674a255dbd8fb7dae68ec78ce7b2097cff | 3fb7cbed2b3f621f98318f8518681253a0a9ce6c | refs/heads/master | 2023-02-04T06:28:12.782823 | 2020-12-26T16:47:34 | 2020-12-26T16:47:34 | 313,373,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | import pandas as pd
import numpy as np
from datetime import datetime as dt
import datetime
import timezone as tz
def timeplus(row):
try:
return row.datetime64 + datetime.timedelta(hours=tz.us_time[row.geo_region])
except:
return row.human_time
def timeplus_world(row):
try:
return ... | [
"pz324250@snu.ac.kr"
] | pz324250@snu.ac.kr |
89ff61bb886405458fa3dfd861415c75323119ed | d25590632c1c6873c871b75d9ab7ee6a6b06abec | /Lab 8/linkedQFile.py | b200bbda86445cd7dde60c2a700a29baa5c2fccd | [] | no_license | karolinvalaszkai/sjnl | 384f941427f099e24e3514a094c060f3c6ffd647 | 442fbf485c3521c7f74dacc80d1e0b0b8a5e56d2 | refs/heads/master | 2020-08-24T15:50:53.911101 | 2019-11-14T11:15:31 | 2019-11-14T11:15:31 | 216,858,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | """värdet=None, dvs pekar inte på någonting."""
"""En kö kan implementeras likadant som en stack. Nu vill man ha en pekare i var ände på kön.
Den som hette top i stacken kallar vi first och så har vi last som pekar på sista noden. Där ska nämligen nya noder stoppas in."""
"""single linked"""
"""OBS gör dequeue o sen en... | [
"karolinv@kth.se"
] | karolinv@kth.se |
460f676c069089996fb607db849fb892c0b4ab8a | c2e16633921d1efe584d93d769eaa7892a2fd8f3 | /list,advanced/Messaging.py | aa33649a6ed9732f8fa8110516c633e59d131daa | [] | no_license | yosifnandrov/softuni-stuff | bd53d418fe143ea4633a5488c1f80648da0b9ef7 | 2a76e5aee2029edf901634750d28cf153d73ece3 | refs/heads/main | 2023-04-17T19:53:30.254790 | 2021-05-06T11:33:39 | 2021-05-06T11:33:39 | 364,884,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | number = input().split()
message = input()
def get_sum(n):
sum = 0
for i in n:
sum += int(i)
return sum
for i in number:
summary = get_sum(i)
for l in range(len(message)):
if l == summary:
print(message[l], end="")
message = message[0:l:] + message[l + 1::]
... | [
"yosif1993@abv.bg"
] | yosif1993@abv.bg |
415a144beeaa3c13258e2a371ca7213ee2725062 | 9489ec26c3a727dcac117d751f7f27244c6e5399 | /chat/models.py | 6ba68d798c2ad91ccf9a37dc5685d170d4b95aea | [] | no_license | Vkotl/Message-board | 4e8c97233c0996f939a78761b97d2b0c998d2c4c | 001557be91a8f0835fb4dd657a00af79ed7626d1 | refs/heads/master | 2021-04-09T11:44:06.680561 | 2018-03-17T07:32:05 | 2018-03-17T07:32:05 | 125,601,988 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from django.db import models
from django.contrib.auth.models import User
class Message (models.Model):
sender = models.ForeignKey(User, related_name='Sender', on_delete=models.CASCADE)
mess_receiver = models.ForeignKey(User, related_name='Receiver', on_delete=models.CASCADE)
content = models.CharField('M... | [
"vadimkotl88@gmail.com"
] | vadimkotl88@gmail.com |
3d146d8f05f7cdc1a43b00c4fc38aba49bc611ba | 5afbf2c62dbd7ca41b3b1d791371cb720575b2a8 | /supervised/preprocess/prepro_train.py | 6fdeb4e79e130ae457589589964ea95365fc373e | [] | no_license | andy-wagner/kb2vec | 4a92a405940efb6c26d122f21f95686f1690fe8f | a91d4c84cedb0f890442d1e776562c3d4212000a | refs/heads/master | 2022-02-06T17:16:49.450411 | 2019-05-29T07:39:15 | 2019-05-29T07:39:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,972 | py | import supervised.preprocess.prepro_util as prepro_util
import numpy as np
from gensim.models import Doc2Vec
from sqlitedict import SqliteDict
from nltk.tokenize import word_tokenize
from random import shuffle
def load_chunkid2contextid(path=None):
if path is None:
path='/Users/sevgili/PycharmProjects/gro... | [
"ozgeesevgili@gmail.com"
] | ozgeesevgili@gmail.com |
10c5cd8101cff8672ef60125ceffa4769b4d7c27 | 21682f70ff130169d8800a06b1a6d8bf7f46e45a | /functions/decoraters/variablelengthargument/demo.py | 15d8a2f86e7c77c3241c3e719adc2bc1555f7f55 | [] | no_license | Aravind2595/MarchPythonProject | 03c3aeee40f5ff2c635861ac29f31a7633499d51 | 9aa9241632b7f96e7e1cb33b3adb7b8def36f1f8 | refs/heads/master | 2023-05-05T04:16:45.556737 | 2021-05-20T08:43:52 | 2021-05-20T08:43:52 | 368,791,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | def add(*args): #muttiple argument passing ;it will also accept 0 argument
res=0 #* is important not 'args' eg: *hai or *arg=
for num in args:#argument will be stored in tuple format
res+=num
return res
print(add(10,20,30,40)) | [
"nairaravind95@gmail.com"
] | nairaravind95@gmail.com |
a55a5dbb88d327f149accfe6b902a079dd80d019 | fe43d0dcab4ae34321ba6139bf113cf0519cd037 | /cursos/migrations/0004_auto_20200603_2017.py | a913f986879023196703b626704ff3b8b86b635d | [] | no_license | clecio-sousa/projeto-market-place | 3ab23608db01dd3a07bfafe24a45a342e7e40730 | af3cdb13708eca771b3abdb402613d4c850c4dae | refs/heads/master | 2023-03-29T19:59:41.693098 | 2021-04-06T02:40:45 | 2021-04-06T02:40:45 | 355,030,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # Generated by Django 3.0.6 on 2020-06-03 23:17
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cursos', '0003_auto_20200603_1842'),
]
operations = [
migrations.AddField(
model_name='curso',
name=... | [
"clecio1201@hotmail.com"
] | clecio1201@hotmail.com |
1e4fc17bed5f3bca085566203de7580dbe427874 | b5187b5ffd53a2cdc8ec6ed94effc39702c1ea31 | /loyalty_app/loyalty/doctype/sales_list/sales_list.py | 3f630555c69f95a1f081ba33f89e1bac9d77c915 | [
"MIT"
] | permissive | vignesharumainayagam/engagex-loyalty_app-backup- | 946a7f75c5ae5cce33313142a0b4e6ba29d67cb6 | 4c326c5f7b22572146f0b946d6498e85ac22a143 | refs/heads/master | 2020-03-11T18:00:14.106005 | 2018-04-19T05:36:06 | 2018-04-19T05:36:06 | 130,163,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Loyalty and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Sales_list(Document):
pass
| [
"vigneshwaran@valiantsystems.com"
] | vigneshwaran@valiantsystems.com |
9713d01cfa2fe2619b7f1a674adc7200e8760e05 | c5f0b15b4e03cbf29092d1c05bc8361490df76e4 | /run_vehicle.py | 76803862b6148fffc8a0d929556730642e602fe7 | [] | no_license | e-harris/vehicle_classes | 3fa152ec9757f313851d448b4ab1dd78b0d9b8fe | c17d3b109cafc1a9be0a2a9280654dcfcf0d8c47 | refs/heads/master | 2021-03-03T22:48:59.242550 | 2020-03-09T09:16:24 | 2020-03-09T09:16:24 | 245,991,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from vehicle_class import *
from plane_class import *
from car_class import *
car1 = car(2, "none", "Ferrari", 680, 185)
car2 = car(5, "small", "Vauxhall", 120, 135)
plane1 = plane(100, "passengers and luggage", "40,000", 10, 2)
plane2 = plane(10,"passengers", "55,000", 4, 2)
| [
"elliotharris@tcadmins-MacBook-Air.local"
] | elliotharris@tcadmins-MacBook-Air.local |
ea02622ccae8492548b091136b268bf259b5cebd | 23ec6adce704bff40d04cd6fc0ba446375405b68 | /Non Leetcode Solutions/linked_list_py.py | 378d3a34b439b5b394c573f968a35ed1cc2897d6 | [] | no_license | amoghrajesh/Coding | 1845be9ea8df2d13d2a21ebef9ee6de750c8831d | a7dc41a4963f97dfb62ee4b1cab5ed80043cfdef | refs/heads/master | 2023-08-31T10:10:48.948129 | 2023-08-30T15:04:02 | 2023-08-30T15:04:02 | 267,779,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | class Node(object):
def __init__(self,data,next_node=None):
self.data=data
self.next_node=next_node
def get_next(self):
return self.next_node
def set_next(self,next_node):
self.next_node=next_node
def get_data(self):
return self.data
def set_data(self,data):
... | [
"amoghrajesh1999@gmail.com"
] | amoghrajesh1999@gmail.com |
ecadfa08af60d3d184ece78cbecf7ec9acff06ae | 82e330917892cdd1c1c2b3885bf319172635a7dc | /01_get_name.py | 75ba9c6dd4da6831f3be4803a7581b693f0323b1 | [] | no_license | harada0510/LDA_topic_model | 0b0f00f049a96b37473a1bee02e76aaf83a1a8af | 8a47780114a3993ed37d9e25e821def47a5d5566 | refs/heads/master | 2022-08-10T11:27:05.405925 | 2020-05-17T16:02:21 | 2020-05-17T16:02:21 | 255,925,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | # coding: utf-8
import requests
from bs4 import BeautifulSoup
r = requests.get("https://ja.wikipedia.org/wiki/%E6%97%A5%E6%9C%AC%E3%81%AE%E5%A4%A7%E5%AD%A6%E4%B8%80%E8%A6%A7")
soup = BeautifulSoup(r.text, "html.parser")
b=open("university.txt","w")
flg = 0
for a in soup.find_all("a"):
if "愛国学園大学" == a.text:
... | [
"shinoda014@gmail.com"
] | shinoda014@gmail.com |
320687db2d1fc6caf127a9b4f5b1f96927e80f57 | 2acd3d3616ab6ae6a56602f8c28c9cb2d6fd6db0 | /config/settings.py | 13c13dee96727b13a815724aa918b12547a4d6e4 | [] | no_license | EgorovM/hb_maker | 45f3d7375d3aa5c06127f5bfc7cab2bff88192da | d0524cc81e5c5cb85b4de1a397219876d44daf42 | refs/heads/main | 2023-09-03T05:09:39.297948 | 2021-11-11T20:43:47 | 2021-11-11T20:43:47 | 352,812,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,274 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"EgorovM@bitbucket.org"
] | EgorovM@bitbucket.org |
4d4a2cd8c7b880f58d88cf2c676256acdae1c32c | e789ea3fd9a6ff64f89f90388e4999bf32183e25 | /Simple/loop2.py | 2a335f0bbc32e9710aaf40aee71af5012933b25e | [
"MIT"
] | permissive | Nahalius/PythonBasics | dfe6978de290b26d4bab2d1775c42b2abc53cb17 | f59f167cb7c3edf962cb381ee7d66394da500a11 | refs/heads/master | 2020-12-30T15:30:40.417782 | 2017-05-28T07:33:17 | 2017-05-28T07:33:17 | 91,152,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # -*- coding: utf-8 -*-
#WhileLoop
counter = 5;
while counter > 0:
print ("Broiach = ", counter)
counter = counter - 1
#Break and continue
j = 0;
for i in range(5): #range (start, end, step)
j = j + 2
print ('i = ', i, ', j = ', j)
if j == 4:
continue
print("I will be skipped over i... | [
"ivan.v.petkov@gmail.com"
] | ivan.v.petkov@gmail.com |
f2f6849f452be00fd78a4d71ef94cbd1d111f88a | f8be36a49d9cd0c5ad4c4e9ab0958bca76d27976 | /sources/python/genscript/calculate.py | e407037cf9c1b886ef6a209dcddc2eb4d2990a85 | [] | no_license | demlanide/psytestgen | 156197e175053bb324ebc8a67b1bc168df0848f0 | b3530882d790e7e99738c121d23f38425552a690 | refs/heads/master | 2023-06-24T06:07:46.301591 | 2021-07-21T20:39:25 | 2021-07-21T20:39:25 | 388,239,664 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py | import sqlite3
from openpyxl import load_workbook
import sys
id_user = str(sys.argv[1])
connection = sqlite3.connect("/Users/dameli/Desktop/diploma/generator/sources/gendb.db")
crsr = connection.cursor()
sql_command = "SELECT count(*) FROM traits"
crsr.execute(sql_command)
ans = crsr.fetchall()
n = ans[0][0]
sql_co... | [
"damelechka@gmail.com"
] | damelechka@gmail.com |
b1df1327d79b654f1819f0289b69a4ab8c88928c | ee052bcf1a0836156c5d97a6a0aa4ed45dc19716 | /currencyConverter.py | 8d73a79f044e27d75dfad40f3bd5cdf6c483e90e | [] | no_license | JATIN-RATHI/CurrencyConverter | 194f88166cece1f30a97cf0bc1ef6f4884d3c5a1 | ca15cdb3ab6f87180460d8bf572a7816d7928015 | refs/heads/master | 2022-11-21T03:04:57.031541 | 2020-07-23T09:43:43 | 2020-07-23T09:43:43 | 281,911,713 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | # Link :---> https://www.x-rates.com/table/?from=INR&amount=1
if __name__ == '__main__':
with open('currencyDATA') as f:
lines = f.readlines()
dict = {}
for line in lines:
parsed = line.split("\t")
dict[parsed[0]] = parsed[1]
print("Choose any one to convert Indian cu... | [
"noreply@github.com"
] | noreply@github.com |
feaa839db358be617d5064a1b3db799632606b49 | 2dce8d098f5f3c93abdfc388e6dac319bfb6450d | /Projetos/des087.py | fac0cbacecf04db47728a64caac0a77cf6046304 | [
"MIT"
] | permissive | LucasDeAndradeMarin/Marin-python-training | 9fe27c5ae04755e8bbcc6609ca3d60ab9f4bfbaf | 9537f6ff26fa1f93e20aee306f35a71765d7fdd1 | refs/heads/main | 2023-04-28T01:28:15.084559 | 2021-05-18T13:32:04 | 2021-05-18T13:32:04 | 368,541,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | matriz = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
for l in range(0, 3):
for c in range(0, 3):
matriz[l][c] = int(input(f'Digite um valor para [{l}, {c}]: '))
princ = (matriz[0][0]*matriz[1][1]*matriz[2][2]) + (matriz[0][1]*matriz[1][2]*matriz[2][0]) + (matriz[0][2]*matriz[1][0]*matriz[2][1])
sec = (matriz[2][0]*ma... | [
"lucasandrade.marin@gmail.com"
] | lucasandrade.marin@gmail.com |
a43de45d509562e3a2e9e6e97acf12b91554dfdf | b6a4059b31448f47ecf641fbdee7a6b13aec0933 | /MDP Solving Algorithms/ValueIteration.py | abb414b495aab01f617bb390cb84b666a86669c7 | [] | no_license | Calman102/BMath--Hons.--Thesis-Code | 57bbb49483480ae91338ed15cbd8cfab05167054 | 0115ae76e2476b4c40c5c8e58455c5496d455ceb | refs/heads/master | 2023-01-13T07:06:17.820966 | 2020-10-23T11:31:41 | 2020-10-23T11:31:41 | 296,011,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | import numpy as np
def VI(S, A, P, R, ε, γ):
""" Value Iteration Algorithm. """
# Initialization
π = np.zeros(len(S))
V = np.max(R, 1)
# Value Improvement
while True:
V_dash = V.copy()
for s in S:
V[s] = np.max(R[s] + γ*(P @ V)[s])
if np.max(np.abs(V - ... | [
"cgray95@gmail.com"
] | cgray95@gmail.com |
ed13a2f82e64a2a0f974e4a2f874097a01dc0b63 | c75061046131f369f05b86fc9c73c6bc5274435c | /main.py | 8d7b83aece0845b1924d206b14a8093a1da8b007 | [] | no_license | YK2006/Elite-Qualifier | 8b294cae417def9e9e7c6d5be54ca09b0b572012 | a333515e97edbf36fc3813d8ffe61595fa28b379 | refs/heads/master | 2023-08-02T07:21:26.695343 | 2021-09-21T21:57:32 | 2021-09-21T21:57:32 | 329,127,428 | 0 | 0 | null | 2021-09-21T21:57:33 | 2021-01-12T22:21:13 | Python | UTF-8 | Python | false | false | 792 | py | import nltk
from nltk.corpus import words
from nltk.metrics.distance import (
edit_distance,
jaccard_distance,
)
from nltk.util import ngrams
nltk.download('words')
import pandas
correct_spellings = words.words()
spellings_series = pandas.Series(correct_spellings)
spellings_series
def editreco(entries=['c... | [
"yusufkerimkoroglu@gmail.com"
] | yusufkerimkoroglu@gmail.com |
f9d8e67a72e3fb01d707f24b28952f2af2b0fcb1 | 84a0e064213834247f8e66da868c6c132038dd47 | /main.py | a1bbd119205233134637d1373f93c5655663c4ff | [] | no_license | AlexJS6/Python_bot | ee2ae97afc3af8b24b3831d1bd7485f16a0c007b | c253a5fac2971e545455d0f07a8e45777d70d4d2 | refs/heads/main | 2023-02-09T20:43:02.932155 | 2020-12-30T16:39:50 | 2020-12-30T16:39:50 | 323,345,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,216 | py | import discord
import os
import random
import time
client = discord.Client() # Connection to discord
possibilities = ['stone', 'paper', 'scissors']
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
@client.event
async def on_message(message):
if message.author ==... | [
"alex.spiesberger@gmail.com"
] | alex.spiesberger@gmail.com |
c4be81c83c88067b9cf207fdeb2ab275f44e2c08 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /F4iemEeFfsaFoMpAF_4.py | 786cba909da3a937ac21071a5cc1d90693d4e336 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | """
This is a list of single characters with an unwanted character at the end:
["H", "e", "l", "l", "o", "!", "\0"]
You could also just type "Hello!" when initializing a variable, creating the
string "Hello!"
Create a function that will return a string by combining the given character
list, not including the ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
13d3c21576b08012b57d0ca3bc3f2ba7deda7096 | e84e67f95ca406cc3bb95253f8d7903185848cef | /templates/raw_methods.py | 07947722b7c1806cffda9c17ee3bebbac471b107 | [
"MIT"
] | permissive | OSUKED/ElexonDataPortal | 5aca48285a49f6b3ae81fd130d5c5e14672dba15 | d8be59c56dda41bd8f2a9efbb3620b4b563710da | refs/heads/master | 2023-04-08T05:06:42.193628 | 2023-04-01T18:55:39 | 2023-04-01T18:55:39 | 189,842,391 | 46 | 13 | MIT | 2023-09-02T23:03:23 | 2019-06-02T12:14:48 | Jupyter Notebook | UTF-8 | Python | false | false | 508 | py | import requests
{% for function in functions %}
def {{ function['name'] }}({% for parameter in function['parameters'] %}
{{ parameter['name'] }}='{{ parameter['example'] }}',{% endfor %}
endpoint='{{ function['endpoint'] }}'
):
"""{{ function['description'] }}
"""
params = { {% for parameter i... | [
"AyrtonBourn@Outlook.com"
] | AyrtonBourn@Outlook.com |
53b2af0868849bff57dbd8b705257e3f2690e172 | a88d9c0176f5e4c0d0bd9664270e000ebb5edbd9 | /component/tile/sensor_tile.py | 9b549723c7bbb0854467b7bcc1072e972e246aa2 | [
"MIT"
] | permissive | sandroklippel/fcdm | fb81c73fc6bd1cf296f9301272923c3627474d3f | 5a54e6352bb574ba409be38882ff0d13b3473b7a | refs/heads/master | 2023-08-19T22:05:52.055545 | 2021-08-24T11:23:40 | 2021-08-24T11:23:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,828 | py | from datetime import datetime as dt
from sepal_ui import sepalwidgets as sw
import ipyvuetify as v
from component import parameter as cp
from component.message import cm
class SensorTile(sw.Tile):
def __init__(self, model):
# create adjustable variables end and start
self.end = dt.n... | [
"pierrick.rambaud49@gmail.com"
] | pierrick.rambaud49@gmail.com |
f649e05cb3c2513dbd63376cb0fe10827d696e1d | f137ceab2fd55f79777974a624119001457e0cb9 | /blackjack/core/irc.py | a88346a8ed59c8835fb9a0c5c469c804f88decaf | [
"ISC"
] | permissive | dingopride/blackjack | bbd97a0b34d57dd40056540d5ad2fac674b9b586 | 64bbe82172ee24662b9830bf5fc4111a41362272 | refs/heads/master | 2021-09-16T00:23:15.082583 | 2018-06-13T17:09:28 | 2018-06-13T17:09:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,529 | py | #!/usr/bin/env python
# BlackJack IRC Bot
# Developed by acidvegas in Python
# https://git.acid.vegas/blackjack
# blackjack.py
import inspect
import os
import random
import socket
import ssl
import threading
import time
import config
import debug
# Data Directories & Files (DO NOT EDIT)
data_dir = os.path.join(os.... | [
"acid.vegas@acid.vegas"
] | acid.vegas@acid.vegas |
f18fd140c8e9bfd602bdbefe8fa44a0b679217f3 | e16f312c9a7c1fc8d977d8d5c33cd95cf7178c15 | /www/conoha/src/lib/cmd.py | ac0d56e47d1465f505e42b8cb21f8559a94b6507 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | user340/tools | c871ce7c916c89f2b03502d28baee6b0e98a1401 | e743708013a4068d20904eeb89aa664957ede980 | refs/heads/master | 2023-02-03T08:45:21.040773 | 2023-01-28T05:43:22 | 2023-01-28T05:43:22 | 124,639,827 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,223 | py | #!/usr/bin/env python
import texttable
import time
import re
from lib import api
from lib import exceptions
class ConoHaCmd:
def __init__(self, confname='conf/conohactl.conf'):
self.__api = api.ConoHaAPI(confname=confname)
def check_id_or_tag(self, string):
""" If given string is UUID, retur... | [
"uki@e-yuuki.org"
] | uki@e-yuuki.org |
83fda4a0cc40d780c4a71958ee5387a34a1c76ea | 298b3c9e4920f1e897dae501c5e958d5a70c81ff | /grpcontest.py | 60d60f51c294c9b12bdb5b27dd944895f03243c3 | [] | no_license | rapidhere/rpcontest | f0a57df25af75358d07f1670b03ba0865cd452c0 | 717b26b01299aea50d04e0b9d2c28c956aa44d5b | refs/heads/master | 2021-01-01T06:11:12.462919 | 2013-04-12T08:28:20 | 2013-04-12T08:28:20 | 9,389,931 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 42,292 | py | #!/usr/bin/python
import wx,os,sys,copy,thread,shutil
import rpc
import wx.aui,wx.gizmos
app_name = "gui-rpcontest"
version = "1.0.0.1"
def CreateLabelItem(parent,label,item):
bsizer = wx.StaticBoxSizer(
wx.StaticBox(parent,-1,label=label),
wx.VERTICAL
)
bsizer.Add(item,1,wx.E... | [
"rapidhere@gmail.com"
] | rapidhere@gmail.com |
86b41f04464f6255cf2d2a8cd880398100d011ba | 0f7d51a3253a958e8f0c9dbab3f1afe1fbfeca1e | /db_repository/versions/025_migration.py | 219650371a39505472b3fad4345d5dd985aa80a0 | [] | no_license | Baakel/KastelEditor | d71f7ec69341f629d2be89a2cd374a132677bb47 | d6af90fbc666877c866fcdfe5877ae730d3cd99c | refs/heads/master | 2023-05-26T02:37:21.234627 | 2020-10-30T17:40:17 | 2020-10-30T17:40:17 | 114,881,347 | 0 | 0 | null | 2023-05-22T23:19:55 | 2017-12-20T11:49:30 | Python | UTF-8 | Python | false | false | 1,049 | py | from sqlalchemy import *
from migrate import *
from migrate.changeset import schema
pre_meta = MetaData()
post_meta = MetaData()
hard_goal_storage = Table('hard_goal_storage', post_meta,
Column('id', Integer, primary_key=True, nullable=False),
Column('authenticity', Boolean, default=ColumnDefault(False)),
... | [
"thrauglor@hotmail.com"
] | thrauglor@hotmail.com |
6706701293cdbce507bac30e11f9f774657847a1 | 3bc910f6f2537e8da5756ec0bc09f8bdf8e20957 | /status/management/commands/rlm_beat.py | 9b28d729a43851b3e3b49aa8fad449d4298cc23f | [] | no_license | harry-bridge/vectorworks-status | 179bebb77246166a61e0f71e9d45b04e0d04f909 | 8900e6abc7283a21dec8f8f79731db8dc172c328 | refs/heads/main | 2023-05-31T04:29:01.021017 | 2021-06-22T08:54:55 | 2021-06-22T08:54:55 | 375,836,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | from django.core.management.base import BaseCommand, CommandError
from django.core import exceptions
from django.conf import settings
from status.rlm_scraper import RLMScrape
class Command(BaseCommand):
help = "Runs the RLM beat task from rlm scraper, this task is usually ran via a cron job"
def handle(self... | [
"harry@harrybridge.co.uk"
] | harry@harrybridge.co.uk |
6068e0dfbaa8b3e02df630a1f8f2d8551b444403 | 2eaecdb1ed42170463993b8b2285296c5ef2231d | /apps/ciudad/admin.py | d7e080b95887458bf100d3a8e00e6edfdc8c6041 | [] | no_license | ivanfdaza/tribunaleclesiasticoIIS | 9639fc66a2c99baa45b8276f4a1e035bdf294e2e | acb164ab8464b71d0461acf03bdd5e3386b57893 | refs/heads/master | 2022-11-21T10:32:14.925326 | 2020-07-23T16:21:26 | 2020-07-23T16:21:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django.contrib import admin
# Register your models here.
from apps.ciudad.models import Ciudad, Departamento
admin.site.register(Ciudad)
admin.site.register(Departamento) | [
"you@example.com"
] | you@example.com |
550f47bd84b8cb4db7e6a30a771dc7247e09d969 | 1be1433af91877966ec17343571252be3807d115 | /plotters/spars-time-error.py | a93bf2f567a2fe21a2f9bc27e92bec44bf0ffd87 | [] | no_license | beginner1010/script-triangle | e298c50db2b5cc476ffe66865417a61b6de135a1 | 88b83980afe7d1d23b76120d17f991282ea29bad | refs/heads/master | 2023-08-22T21:24:35.187888 | 2021-09-26T05:35:27 | 2021-09-26T05:35:27 | 406,838,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | from settings import *
def exp_range(start, stop, step):
while (start < stop):
yield start
start *= step
return
folder_path = '../output'
output_folder_path = '../plots'
graph_names = ['Journal']
colors = ['teal', 'purple']
alpha= 0.6
width = 1 # size of bars in the plot
lw =... | [
"vahid.sanei@gmail.com"
] | vahid.sanei@gmail.com |
d1dc906d5d4c502b2a273b95d457c4b8d5bbb228 | dd100eb3fb4302d0269bc20e351fb8b668fe2f0b | /PyBank/main.py | 07f7051db289cc12fa04a8ab291f911e2cc6a13b | [] | no_license | emieeb/python-challenge | 1f1f7ad4017860edc9e0225dc54a81207b37698a | 4913c9c1378245e7155d7e6bac3f6a81a1e760e8 | refs/heads/master | 2020-04-03T01:03:17.822701 | 2018-10-27T06:31:35 | 2018-10-27T06:31:35 | 154,917,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # Module for reading CSV files
import os
import csv
# Set path for file
pybank_csv = os.path.join("..", "Resources", "budget_data.csv")
# Total of months
def months()
pybank_csv = sum("month")
# Total net amount of "Profit/Losses"
pybank_csv = sum("profit", "losses")
# The Average change in "Profit/Losses" between... | [
"ameliaberumen@amelias-mbp.attlocal.net"
] | ameliaberumen@amelias-mbp.attlocal.net |
f67f8da1dbcd1d8e7b3087e0c2f1e56c14757ab9 | 6fc350b28a535e23c6bdbb079dfec8fe405bfbc7 | /test_label_speed.py | 0bb0c15a5749413196d2a0fd9d4bdcb1b311bdca | [] | no_license | dieuwkehupkes/Thesis | ab43ae4382fdbaae6f95f05cbf06b9c38861e86d | 6702f65aa2249285824aa5102ae24a0508e0bce2 | refs/heads/master | 2016-09-05T21:08:09.736730 | 2013-11-28T08:11:27 | 2013-11-28T08:11:27 | 10,358,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | from labelling import *
from file_processing import *
import sys
import time
alignments =sys.argv[1]
sentences = sys.argv[2]
dependencies = sys.argv[3]
f = ProcessDependencies(alignments, sentences, dependencies)
new = f.next()
total = 0
while new:
sentence = new[1].split()
if len(sentence) < 40:
dependencies = D... | [
"dieuwkehupkes@gmail.com"
] | dieuwkehupkes@gmail.com |
8b7e8df6bfc87e759bc5f3ade6411eea745c6f08 | 6ada628cc386b6aed52c0f25ca27c459f4c70e5d | /src/unittest/python/picasadb_tests.py | dd022929a94b9f8e17fc349bf415621de8ea9c22 | [] | no_license | arnehilmann/photolib | dca92d6382395673214d042481e57e79a2e5d88a | 0712b631eaeedcd3dd71e6c84beacaeb24bd88a5 | refs/heads/master | 2021-01-22T11:55:17.203982 | 2016-10-04T13:21:16 | 2016-10-04T13:21:16 | 15,698,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | import unittest
from mock import patch, mock_open
from photolib.picasadb import PicasaDb
class PicasaDbTest(unittest.TestCase):
def test_find_contacts_file(self):
with patch("os.path.expanduser", return_value="src/resources"):
pdb = PicasaDb(["src/resources/testsamples"])
self.as... | [
"arne@hilmann.de"
] | arne@hilmann.de |
5e65abbff3ad4964ee18fe22613c1cd4d21515d3 | e6ff4e3cf5c3959b168e19bf069bbdd6b2e49fcb | /CORE/fSandController.py | 37f5f78e66dbb7d80d0ea16cb8cfa3cec38c30e4 | [] | no_license | spaceuniverse/QLSD | 0b14a4e323457b9e1a4e8bd75f0afd486687b351 | 2953623d331cb5d4567a2b01bece9a0aba482166 | refs/heads/master | 2016-08-08T15:05:51.170426 | 2015-05-08T21:14:26 | 2015-05-08T21:14:26 | 22,347,324 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,831 | py | # ---------------------------------------------------------------------# IMPORTS
import numpy as np
from fSandFun import *
# ---------------------------------------------------------------------# MAIN
class Controll(object):
def __init__(self, actions, features, report=False, rms=False):
self.report =... | [
"neverdraw@gmail.com"
] | neverdraw@gmail.com |
3b7426c9a1fc2f829c0acca4d6fd0e9403929b17 | 7eba4f112761d625ff56b4c1270f18fc8534818b | /mysite/west/views.py | a014c3ed49cb3ea6424f1f8a898c3f52a2320ed3 | [] | no_license | KillerManK/my_project | eb1dd1589b6b8e22144f183014bd435d21d348e3 | f6ac88e65586ba5a0fdd59f6187b4eb2da1e831a | refs/heads/master | 2021-01-10T16:45:50.894096 | 2016-01-05T02:12:00 | 2016-01-05T02:12:00 | 48,828,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | # -*- coding: utf-8 -*-
from django.http import HttpResponse
def first_page(request):
return HttpResponse("<p>西餐</p>")
| [
"1428085756@qq.com"
] | 1428085756@qq.com |
83d156ab9ebb07eab0942d0dca9e2aceddcd96cb | fbc1455b474e3e8ad6c16bcc9d44ed0dcfc480a7 | /grading/usermanage/management/commands/oauth_setup.py | e92f80e7f6bf81fbe915fca8ce4e43848d342021 | [] | no_license | AlbanyCompSci/grading | c2c6affc2609c0e30d135a80f2f1aab5b750ab0e | 2bf82ffb7f5ce416f166ad74ce4b16891221f1d5 | refs/heads/master | 2021-07-13T12:23:26.743195 | 2014-09-12T17:02:33 | 2014-09-12T17:02:33 | 19,794,798 | 0 | 0 | null | 2021-06-29T19:45:04 | 2014-05-14T20:20:21 | CSS | UTF-8 | Python | false | false | 870 | py | from django.core.management.base import NoArgsCommand
from django.contrib.sites.models import get_current_site
from allauth.socialaccount.models import SocialApp
import webbrowser
class Command(NoArgsCommand):
help = 'Set up google login'
def handle(self, **options):
webbrowser.open_new_tab('https://... | [
"randall@randallma.com"
] | randall@randallma.com |
88be1a8dbca36a3704310ed5d08336575231773d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_pragma263.py | bc6b11402b4ca6da63e2f0bf7495b508300d9153 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,624 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=15
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
class Opty(cirq.PointOptimizer):
def optimization_at(
... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
951d40fc9470783bafcf2b1649073d604e0c09c7 | 567b912ef9e0075b44cd531499ed96e4e58d7638 | /ini/experiment_binary_left_random.py | 364b82f2a75ec3a6ca1b11e8c64ac6e29fcc9db6 | [] | no_license | atpcurr/atpcurr | 3dbf9f49568c279a789ba0fc9478fa3fb28d83e8 | 0e1c9dcf408718097476d7aa599d557176ed3690 | refs/heads/master | 2022-09-17T21:44:52.637017 | 2022-09-07T00:52:08 | 2022-09-07T00:52:08 | 206,651,380 | 3 | 0 | null | 2020-09-25T22:21:44 | 2019-09-05T20:25:54 | OpenEdge ABL | UTF-8 | Python | false | false | 3,308 | py | import sys, os
from neptune_utils import simple_handle_experiment
from munch import Munch
base_config = Munch(actions_added=False,
actorbatch=512,
add_repeating_pretraining=False,
add_rnd_steps_to_remain=0,
backend="ocaml",
... | [
"zsoltizombi@gmail.com"
] | zsoltizombi@gmail.com |
11b29102ee38f423a7a071ee75faa7c2f7cf7587 | 95e3f38e69bd79b0a338f04c3a4e53b9b7261eb1 | /lista_4/exercicio_4.py | 224c077dfe28f7fbc79feef853b76e11f242e4d7 | [
"MIT"
] | permissive | carlosjrbk/Logica-de-Programa--o---IFPE | 87fb86caa88a3754c42501c69ac73c02edbf36ec | 2201f56c5a5641dc33895c2e575983be51d87a86 | refs/heads/main | 2023-06-11T03:01:13.151354 | 2021-06-29T02:37:10 | 2021-06-29T02:37:10 | 379,378,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | chico = 1.50
ze = 1.10
ano = 0
for cont in range(0,100):
if chico > ze:
chico += 0.02
ze += 0.03
ano += 1
print('será necessario' , ano, 'anos')
| [
"83727890+carlosjrbk@users.noreply.github.com"
] | 83727890+carlosjrbk@users.noreply.github.com |
67438a659a2296255acf174988b5cd4e41551121 | b516490a2ecc9a0238b9e845f4384695e9e4ca83 | /examples/rotating_square_grating.py | 609fe6924ad00ca439c57b6ef0aed6c2de33965b | [
"MIT"
] | permissive | ClandininLab/flystim | 97717319a9f08a6bdad9cc4628f07ad10ea9894a | 9d7af6215eb05f7eef75fe90581bc54f2e2f5aa9 | refs/heads/master | 2023-09-01T07:32:47.523874 | 2023-07-12T23:04:51 | 2023-07-12T23:04:51 | 131,910,815 | 2 | 4 | MIT | 2023-07-12T23:04:53 | 2018-05-02T22:08:09 | Python | UTF-8 | Python | false | false | 915 | py | #!/usr/bin/env python3
from flystim.stim_server import launch_stim_server
from flystim.screen import Screen, SubScreen
from flystim.trajectory import Trajectory
import numpy as np
from flystim.draw import draw_screens
from time import sleep
def main():
stim_duration = 2
iti = 2
screen = Screen(... | [
"minseung@stanford.edu"
] | minseung@stanford.edu |
f736b231f33cffb070a9a4bb88108c52854ef72a | 19a7959e21d430d6544aa6f8dd511902c83c6e91 | /实验源代码/red_blue_game/dataProcessor.py | 5a9519fc44e81658ea071adfa79f967c0f6a2d69 | [] | no_license | xioajiumi/red_blue_game | b6280b07e2fde7ee46180a962e4ad4cc7653d25d | ba6d876e8d0375af97010a324a499a5c35251fab | refs/heads/main | 2023-08-31T20:29:57.475151 | 2021-10-20T12:28:10 | 2021-10-20T12:28:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,420 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Site :
# @File : dataProcessor.py
import json
import openpyxl as ox
import matplotlib.pyplot as plt
import numpy as np
import math
def store_2_json(file_name, path, datas):
json_datas = json.dumps(datas)
file = path + file_name
with o... | [
"noreply@github.com"
] | noreply@github.com |
d45b2df2ceb71ae350e9d6a317ee4e09741e503e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_207/507.py | 3881fca5b62b736452cde9286a5ba5618161c3b5 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,981 | py | def validate(s):
pass
def solver(line):
n,r,o,y,g,b,v = line
t1 = b - o
t2 = y - v
t3 = r - g
if t1 < 0 or t2 < 0 or t3 < 0:
return "IMPOSSIBLE"
if 0 in [t1,t2,t3]:
if line[1:].count(0) == 4:
L = [(r,'R'),(o,'O'),(y,'Y'),(g,'G'),(b,'B'),(v,'V')]
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
23dd9f6560ebd7e9a36a1242ce006af8f3c1d1db | 8eb2306b6fdd1dfd687cc399af9a5ccdd5cfdeea | /make_snr.py | c811a13b201085633641ba8f80a3666e65197bbf | [] | no_license | kangkulee/matplot-autoExcel-PPTX | 12c3ab9bc5d7f56f89457f09142ceb3e1d6183be | 9100e9882491c0ff90c8aa8860bd54b01bb604ad | refs/heads/master | 2021-01-04T06:36:10.347447 | 2020-02-14T05:35:29 | 2020-02-14T05:35:29 | 240,432,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,281 | py | from matplotlib import pyplot as plt, font_manager, rc
font_name = font_manager.FontProperties(fname="c:/Windows/Fonts/malgun.ttf").get_name()
rc('font', family=font_name)
import json
import openpyxl
import os
from pptx import Presentation
from pptx.util import Pt
from pptx.util import Inches
from datetime imp... | [
"noreply@github.com"
] | noreply@github.com |
d0cfa91a612e5464cf3ec459ef9654cb5a56acc1 | f248e0801c1ca5fad15aa72791561803183ecb26 | /so_copy.py | e2ba77e36d298c39c762316199150bfccd486665 | [] | no_license | 646677064/tools_feature | b7b305cb11ffcc6d7b43a4d3ea3c8bab16d0791a | f7237bd18c4b17789d06769ee34aadfd478a1a2c | refs/heads/master | 2021-06-22T05:57:19.469038 | 2019-08-28T10:50:13 | 2019-08-28T10:50:13 | 130,177,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,459 | py |
import argparse
from collections import OrderedDict
#from google.protobuf import text_format
#import matplotlib
# Force matplotlib to not use any Xwindows backend.
#matplotlib.use('Agg')
import matplotlib.pyplot as plt
import cv2
import numpy as np
import os
#import skimage.io as io
import sys
import xml.etree.Element... | [
"liushuai@tunicorn.cn"
] | liushuai@tunicorn.cn |
d555be3771021d1b7a4deba78b2e8fb2f62044dc | 5f80015d9245f8ecd1b29a644dd9ce447c78ea59 | /box.py | debaae91e1fb9c57958c0a1e192ff6b1eac34ef0 | [] | no_license | leocody/Leokoban | 9fec33a542c198959af2692769f24805e790956a | 8ca582c2ac79dee95f6b91545773ad08e256510e | refs/heads/master | 2022-07-12T11:07:13.942456 | 2020-05-16T05:19:03 | 2020-05-16T05:19:03 | 262,753,692 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | import pyxel
from constant import PYSIZE, HALFPYSIZE, WALL, U_to_D, D_to_U, L_to_R, R_to_L
class Box:
def __init__(self, x, y):
self.x = x
self.y = y
#Move Logic
def move_up(self):
self.y -= 1
def move_down(self):
self.y += 1
def move_left(self):
self.x -... | [
"leo@Mac-mini.local"
] | leo@Mac-mini.local |
0efe388f3e3a95551a15c6e5f3c3ac7d3ae444c5 | b9062ed0431544160161a270fe669858c3ca9633 | /blog/migrations/0003_auto_20191101_2319.py | f9b453d4abd8102f08dc12a51a8acc1e12851805 | [] | no_license | sd8917/LearnDjango | 350f73ed7077d0b3ac9aa2f1e0fd7d05f67faf05 | 87a9c6c5932f685a01ad6125faf81ac94a1fac5d | refs/heads/master | 2022-12-03T18:18:13.770896 | 2019-11-05T06:35:32 | 2019-11-05T06:35:32 | 219,081,219 | 1 | 0 | null | 2022-11-22T04:36:24 | 2019-11-02T00:14:05 | Python | UTF-8 | Python | false | false | 443 | py | # Generated by Django 2.2.6 on 2019-11-01 17:49
import ckeditor_uploader.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20191101_1435'),
]
operations = [
migrations.AlterField(
model_name='blo... | [
"sudhanshuraj8917@gmail.com"
] | sudhanshuraj8917@gmail.com |
11879abc6c2945784b1f79ae6a4f6f553439f8fb | 997ccf1121c05e1d860f7ca49d3e5b0e382e473f | /listings/views.py | b66ac8b65a71f06c72986f16c2c1bacc1b671fe8 | [] | no_license | alamin2khl/dj_rs | 57b9ddf0a5c875dbf8c40e8bf18a4c47da303326 | 364971c262ccf9383306ea07fc331193f512493b | refs/heads/master | 2023-04-26T13:32:15.666633 | 2021-04-27T07:23:55 | 2021-04-27T07:23:55 | 208,812,047 | 0 | 0 | null | 2023-04-21T20:37:52 | 2019-09-16T13:51:55 | CSS | UTF-8 | Python | false | false | 2,089 | py | from django.shortcuts import get_object_or_404, render
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from .choices import bedroom_choices, price_choices, state_choices
from .models import Listing
def index(request):
# listings = Listing.objects.all()
# listings = Listing.objects.order_b... | [
"alamin2khl@gmail.com"
] | alamin2khl@gmail.com |
4b4303583c7508d156fe4cd85149381e4f8a32c2 | ec6d6c6473bc63a44c5b820a19808877f0b494b2 | /urlapp/migrations/0001_initial.py | 57d7b80ccaa4e3d3e64d23697ce182476379acab | [] | no_license | deepakkumar9470/django-url-shortner | d1642ac5c4d94cce259fec5024c5ecce6cc25f46 | 3b36e4b4b3dabda9b8971d45c40dc3ca082659b5 | refs/heads/master | 2023-07-29T06:13:24.867869 | 2021-09-12T12:39:55 | 2021-09-12T12:39:55 | 405,627,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # Generated by Django 3.2.7 on 2021-09-12 04:26
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UrlModel',
fields=[
('id', models.BigAutoFi... | [
"dk397787@gmail.com"
] | dk397787@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.