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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e3e32f77124f0e14236d74d16a1a23002091b70 | ae10b60cb92a69146bfb05ef5dde735a0aa45d4b | /examples/Extended Application/matplotlib/examples/userdemo/annotate_simple_coord02.py | c8424d6389371288876249d81040115991437882 | [
"MIT"
] | permissive | kantel/nodebox-pyobjc | 471cea4c5d7f1c239c490323186458a74edcc214 | 068ba64c87d607522a240ab60c3ba14f869f6222 | refs/heads/master | 2021-08-14T18:32:57.995445 | 2017-11-16T13:42:23 | 2017-11-16T13:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | """
=======================
Annotate Simple Coord02
=======================
"""
import matplotlib.pyplot as plt
# nodebox section
if __name__ == '__builtin__':
# were in nodebox
import os
import tempfile
W = 800
inset = 20
size(W, 600)
plt.cla()
plt.clf()
plt.close('all')
def ... | [
"karstenwo@web.de"
] | karstenwo@web.de |
5f7b5d879661da4d33ed30eb21d0d69aa00bb33a | 4241be91e6e583db9b07141c7a6cd1c6e469d08b | /flask_app.py | 7f1b3d550457228cfb5d4d3c54a6ec3f648975ce | [] | no_license | DanialK/performant-python-services | ed58a6a9c4423f72d6049cf2526c374c4e1a0650 | 11d6c6e4985193d0752299b6a4f7c15e727ccaff | refs/heads/master | 2020-07-30T04:13:27.420186 | 2019-10-28T23:26:26 | 2019-10-28T23:26:26 | 210,082,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | from flask import Flask, jsonify, request
from models.resnet import load_model, score_model
model = load_model()
app = Flask(__name__)
@app.route('/score', methods = ['POST'])
def test():
try:
json = request.get_json(force=True)
x = json["data"]
result = score_model(model, x)
resp = jsonify(result)... | [
"dani_khosravi@yahoo.com"
] | dani_khosravi@yahoo.com |
3a9cb5d26818969cfb8af7ed4edd0f0d30c3c771 | 2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac | /Python/Core/Lib/encodings/utf_32_be.py | f84e9045e1470bfbee6b819f251ac345d9b60040 | [] | no_license | FingerLeakers/DanderSpritz_docs | f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364 | d96b6a71c039b329f9f81544f645857c75360e7f | refs/heads/master | 2021-01-25T13:05:51.732149 | 2018-03-08T01:22:49 | 2018-03-08T01:22:49 | 123,527,268 | 2 | 0 | null | 2018-03-02T03:48:31 | 2018-03-02T03:48:30 | null | UTF-8 | Python | false | false | 1,048 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20)
# [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
# Embedded file name: utf_32_be.py
"""
Python 'utf-32-be' Codec
"""
import codecs
encode = codecs.utf_32_be_encode
def decode(input, er... | [
"francisck@protonmail.ch"
] | francisck@protonmail.ch |
d8076a8e859df2ada5418bebf40ccae6440c1011 | 6ebe3da55a6968fb1fe4a4bbc0e191c1238f4df2 | /process_demo_2.py | 4c15e699e5f977276bb0986eee0391ebf1a29dce | [] | no_license | phuoctan4141/object_detection_multiprocessing | 6dcedd00060fda7acf8e88844955f672c7c698a9 | c8160244483e94eb32da2ea26332bd8b479fd1cc | refs/heads/main | 2023-08-30T22:00:52.849123 | 2021-10-29T08:13:53 | 2021-10-29T08:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,979 | py | #=================================================#
# Welcome to the object detection multiprocessing #
# Author: phuoctan4141 #
# Date: 28/10/2021 #
# Version: 0.2.0 #
#=================================================#
# # Imp... | [
"noreply@github.com"
] | noreply@github.com |
0a8bd7608db9b29c07d9adbc6e136ba7c4662200 | 35e28d7705773eed54345af4440700522c9d1863 | /deps/libgdal/gyp-formats/tsx.gyp | b8f05037aec95a26a96a811114431a86f6467c1c | [
"Apache-2.0"
] | permissive | naturalatlas/node-gdal | 0ee3447861bf2d1abc48d4fbdbcf15aba5473a27 | c83e7858a9ec566cc91d65db74fd07b99789c0f0 | refs/heads/master | 2023-09-03T00:11:41.576937 | 2022-03-12T20:41:59 | 2022-03-12T20:41:59 | 19,504,824 | 522 | 122 | Apache-2.0 | 2022-06-04T20:03:43 | 2014-05-06T18:02:34 | C++ | UTF-8 | Python | false | false | 245 | gyp | {
"includes": [
"../common.gypi"
],
"targets": [
{
"target_name": "libgdal_tsx_frmt",
"type": "static_library",
"sources": [
"../gdal/frmts/tsx/tsxdataset.cpp"
],
"include_dirs": [
"../gdal/frmts/tsx"
]
}
]
}
| [
"brian@thirdroute.com"
] | brian@thirdroute.com |
b527542494737973e32c6f0171b08ec37f1044be | 197bb3c8e9dea5f45639e0b29fd695667349fd43 | /OpenCV/Face_recog_haarcascades.py | c43074af6616f985ac1a2d6f69fa8c16f227513c | [] | no_license | Frankenstien-hack/Machine_Learning | 63fcc4587f6f95549dccc631b35a2524abffc15d | c2c2c142566e4967dbbb8a9f2faeaff18cbaa164 | refs/heads/master | 2020-05-31T02:03:53.298152 | 2019-09-30T10:18:25 | 2019-09-30T10:18:25 | 190,058,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import cv2
cap = cv2.VideoCapture(0)
face_cascade = cv2.CascadeClassifier("haarcascade_frontalface_alt.xml")
while True:
ret,frame = cap.read()
grayframe = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
if ret == False:
continue
faces = face_cascade.detectMultiScale(grayframe, 1.3, 5)
for... | [
"“sid15798@gmail.com”"
] | “sid15798@gmail.com” |
56cf8ff351ab1fd980ea23f382c4d20c3cb58b12 | dcb69e7c8797452faccef3a7a734704a2f9003a1 | /backendCode/checkServerSendEmail.py | 3f289f362640fb2e886f66568f8672fddebef39a | [
"MIT"
] | permissive | VenuDhanekula/ServerMoniteringSendEmail_Python | e1ef29387c08494156f51c3801258db9257a5ac8 | af513d344e557184d452187a1637574c46e42dd5 | refs/heads/main | 2023-06-24T07:09:13.385898 | 2021-07-20T05:07:18 | 2021-07-20T05:07:18 | 385,324,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,068 | py | import socket
import ssl
from datetime import datetime
import pickle
import subprocess
import platform
import time
from cfonts import render, say
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
fromEmail = ""
fromEmailPassword = ""
toAddress = ""
sendMsg = ""
sen... | [
"noreply@github.com"
] | noreply@github.com |
32653ad830feb7203f7ef056ce7eb76d916231b8 | 6928030da6bd3c7fe49f43f46f3e511e0a8c3e03 | /syed_praw2.py | 3ec9fa9d7e735b71932ec3f8f6367132ad16b63d | [] | no_license | moin2672/PRAW | 09df47cac239d02b76c06ef0d26f6d487b7c1e21 | 19e1b44192dd7d7d566243f2c406559f1e8f1659 | refs/heads/master | 2020-03-14T22:15:10.591698 | 2018-05-05T02:34:59 | 2018-05-05T02:34:59 | 131,816,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | import praw
reddit = praw.Reddit(client_id='jgF2ebrSIHroxw',
client_secret='y-oWddqWsBEWz_GO9kzd4EUBaEc', password='Mar@1234',
user_agent='syedPraw', username='syed2672')
subreddit = reddit.subreddit('news')
# for comment in subreddit.stream.comments(): # to get stream of... | [
"moin2672@gmail.com"
] | moin2672@gmail.com |
96dd863b8031c6a496b392628fe578ea29d4305a | 7781f8d0dbcfbffa25d7fe0d6eb4087895d9e8c0 | /merge_sort_raw.py | 6183c569abe90f7e1aaece3e8d74bd17090827e8 | [] | no_license | xybu/algorithms | 4a932de0b2bab0a2a49fc3bf996827e96f77fac5 | c3c248a4d57745260a33b77c4726120acecb5c08 | refs/heads/master | 2021-01-01T15:44:09.916338 | 2014-09-26T14:08:43 | 2014-09-26T14:08:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | #!/usr/bin/python
def merge(A, start, mid, end):
# print 'merge({0}, {1}, {2}, {3})'.format(A, start, mid, end)
left = A[start:mid + 1]
right = A[mid + 1: end + 1]
i = 0
j = 0
k = start
# print 'left: {0}\nright: {1}\n'.format(left, right)
while i < mid - start + 1 and j < end - mid:
# print i, j
if left[i... | [
"xybu92@live.com"
] | xybu92@live.com |
d16be220437b74d2c1351c55bb1865a3ab96a1d1 | be33e33b6cd913efb3f46405035267cd8bec47cd | /openhgnn/trainerflow/semi_node_classification.py | c5ac2e475e2c97d9f305f7d8902aded58d1febdc | [] | no_license | Theheavens/OpenHGNN-DGL | 83498c5afd643b53684d0a318970aa4cd4bab546 | 71e80b91858968361f0d5d31b114df681d85a218 | refs/heads/master | 2023-04-13T14:53:12.048854 | 2021-04-27T13:30:29 | 2021-04-28T04:03:20 | 333,628,955 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,697 | py | import argparse
import copy
import dgl
import numpy as np
import torch
from tqdm import tqdm
import torch.nn.functional as F
from openhgnn.models import build_model, MLP_follow_model
from . import BaseFlow, register_flow
from ..tasks import build_task
from ..utils import extract_embed
@register_flow("semi_supervise... | [
"theheavenszhao@outlook.com"
] | theheavenszhao@outlook.com |
22fda3589f0f16889117c8856f6252efba58ec44 | a779e49f44a81821af7464f32c11790f415b9b27 | /database/temp.py | 4b0204fa3d159071b9d0a4dbd63581eab640ad77 | [] | no_license | psp2108/LOC_16032019 | 5c3b57b5c71dc446d5585dde99ff2ff7e0d9448b | 1ad8193f4f999ce0eab81335ffb7990548db6e58 | refs/heads/master | 2020-04-29T02:29:23.686581 | 2019-04-15T19:11:46 | 2019-04-15T19:11:46 | 175,769,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # import random as r
# l = []
# for i in range(10):
# z = r.randint(0,10)
# while z in l:
# z = r.randint(0,10)
# print("**")
# l.append(z)
# print(z, l)
a = "SDFsdf sdfsee eSEf sdSDFe EFfs'a"
b = a.lower()
b = b.replace(" ", "")
b = b.replace("'", "")
print(b) | [
"pratik.sp.1112@gmail.com"
] | pratik.sp.1112@gmail.com |
2774ebc8bdb0a6e731802f0ae87f3e68d4f19438 | ba582b224547b3fb88edb3c6aa541d9fb881b41a | /apps/residencias/forms.py | c026082864b02f7c3de9c6d7dd8c62410675f2f2 | [] | no_license | Pastorsin/home-switch-home | b2f246909a1a5f9bb53e6258a36dc4147452ffc6 | 2731a11b48976681c45e5e68bbcb1f914e9611e4 | refs/heads/master | 2023-05-31T05:40:09.876205 | 2021-06-16T14:31:35 | 2021-06-16T14:31:35 | 175,094,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,272 | py | import calendar
from django import forms
from datetime import timedelta, datetime, date
from django.core.exceptions import ValidationError
from .models import Residencia, Ubicacion
class UbicacionForm(forms.ModelForm):
class Meta:
model = Ubicacion
fields = ('pais', 'provincia', 'ciudad', 'calle'... | [
"andressmilla@gmail.com"
] | andressmilla@gmail.com |
4afd131ba1b29911502faa5905ca336fef0ef91c | f333d4c3fb0ef1b2a01e990669cb5484d14ee31a | /bookmarks/settings.py | 615f8fe75224b9c035b5cd2f9cfa98ce07b973aa | [] | no_license | regia/bookmarks | 6e1c2d9049c7f81b6ce9d4c1490444d8c3fdcb32 | 51cb3a6241cc073c20df6a5dc03b7bb5604d0a20 | refs/heads/master | 2016-09-10T20:26:25.381759 | 2014-11-25T17:13:28 | 2014-11-25T17:13:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,132 | py | """
Django settings for bookmarks project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
... | [
"regedi@gmail.com"
] | regedi@gmail.com |
f9af22c774b099ca496233053fcc8f7aed9459e7 | 16cba95a472b259539d20b2c759e074c58edde7b | /FractalLand.py | 2e3a0cf5531f7294bcbaa0b322ae61f71ec8a9de | [] | no_license | Revakk/Fractal_land | 850be1b483bb568f47ddc343581f589fec728c36 | eb695eb73521bdf42be3ea43db9fb9c81cdbf22e | refs/heads/main | 2023-03-16T18:48:49.732643 | 2021-03-10T10:30:36 | 2021-03-10T10:30:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,027 | py | #import pozadovanych knihoven
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from numpy.random import uniform
import queue as q
import random
iters = 6 #pocet iteraci
n = (2 **iters)+1 # velikost zakladni plochy
def getMiddlePoint(grid, a): # pro kazdy stredo... | [
"noreply@github.com"
] | noreply@github.com |
13f3141de310f21595adf3f9b08de27b6a9f98f6 | d18690631d2cddd4eb4ad492f00842401b39982a | /nn-models/gaussian_model.py | f85d333de0c56b87bd0bbaabef105e53adf869c0 | [] | no_license | qocml/gaussian-models | 4c14248863554a193ed593b789843e155171ba2a | deb598eed81b806164e80f284bc5fa324ca56a33 | refs/heads/main | 2023-02-17T17:44:33.164400 | 2021-01-17T22:35:32 | 2021-01-17T22:35:32 | 330,497,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,173 | py | import os
import sys
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import tensorflow as tf
import tensorflow.keras.backend as K
sys.path.append('../')
import library
from contextlib import redirect_stdout
# log errors to a .txt file
library.error... | [
"charles.kerwin17@imperial.ac.uk"
] | charles.kerwin17@imperial.ac.uk |
bb6082d298738c05df9d0bc8277b953b554034c4 | 0297ccf09950fd5eeea9b57d727cec2d59e741c6 | /Part2/LinearDiscriminantAnalysis_LDA.py | ad7b6d5aa9254e62d27cf2ce6383f2824f980e03 | [] | no_license | nanshiqiu233/ML-Python- | 4d576457beec755ae10bcadd1d845e78ec456b12 | 37beae3d5168219d47d216dab4cc61a5dbe70a99 | refs/heads/master | 2020-12-13T17:46:59.022554 | 2019-10-29T09:03:12 | 2019-10-29T09:03:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | #!/usr/bin/env python
# coding: utf-8
# 将样例投影到一条直线上,使得同类的样例投影点尽可能小,不同类投影点尽可能远离
# In[1]:
import os
import sys
import numpy as np
import operator
import matplotlib.pyplot as plt
get_ipython().run_line_magic('matplotlib', 'inline')
# In[3]:
group1 = np.random.random((8,2))*5+20
group2 = np.random.random((8,2))*5+... | [
"44227778+wenhan123@users.noreply.github.com"
] | 44227778+wenhan123@users.noreply.github.com |
f32ae2236fb684777b438596d850abf6885dc83b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /qLMZ2hEvrhRSSSnQw_20.py | dba82c5c1e6082f3f6e2d972820ab53ab7f449e3 | [] | 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 | 813 | py | """
Graded lexicographic order (grlex order for short) is a way of ordering words
that:
1. First orders words by length.
2. Then orders words of the same size by their dictionary order.
For example, in grlex order:
* "tray" < "trapped" since "tray" has length 4 while "trapped" has length 7.
* "trap" < "tr... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
93edbd54c29bdfaccf1081f515c11bf183587402 | a651b356c2be9b360f2e7e307d151309b1f6dfc9 | /Basic/evenorodd.py | 33cba859e257b2c8d1070b5ee13aca41fcf3237a | [] | no_license | GuduruDhanush/Python | 35ea459a8470b7be5cde4890b946d17b89ac42a8 | a79b02f7f94c85af238eaa4ee5f8164baa456d51 | refs/heads/main | 2023-05-31T09:54:54.564669 | 2021-06-09T16:46:09 | 2021-06-09T16:46:09 | 367,579,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | num = int(input('Enter a number: '))
if num % 2 == 0:
print('Entered number is a EVEN number')
else:
print('Its a ODD number')
| [
"noreply@github.com"
] | noreply@github.com |
7a8be118af3bc78c1d1889f331910c9f24a76deb | 14b0b90f825a2edeca77d53a848eff222116ba1c | /blogs/urls.py | 149c6444bcb3356518a83dc677c8bacd9861757c | [] | no_license | Suphacha2563/Project | 2f2d191f143d604696a9c75bfe44cd2c7d6be1cb | bfa92ddc20cc2d270811def3b38f2a3c408af334 | refs/heads/main | 2023-08-28T17:22:24.919695 | 2021-10-27T17:35:12 | 2021-10-27T17:35:12 | 407,267,251 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from django.conf.urls import url
from blogs import views
urlpatterns = [
url(r'^api/bus$', views.dataBus),
url(r'^api/busStop$', views.dataBusStop),
url(r'^api/dataGraphBusstop$', views.dataGraphBusstop),
url(r'^api/rout$', views.dataRout),
url(r'^api/dataCarFindMylocal$', views.dataCarFindMylocal,... | [
"75459344+Suphacha2563@users.noreply.github.com"
] | 75459344+Suphacha2563@users.noreply.github.com |
ffabd2487c7b9698475b0ebf663f97afebe11c6a | 0f7666900a3d203481b1009fe3d9dd2186938c30 | /gpu-example.py | e89103c48573461470473750392cc1d8d4e2ed0b | [] | no_license | MZ195/Cupy-GPU-Example | 4a7d99c25e9d26213c3f27b6618b6f8c8cbc4393 | 108b920848e60b3e2706749ca97404572433e130 | refs/heads/master | 2022-10-29T23:45:48.093569 | 2020-06-13T21:09:04 | 2020-06-13T21:09:04 | 272,086,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | import numpy as np
from timeit import default_timer as timer
from numba import vectorize
NUM_ELEMENTS = 100000000
# This is the CPU version.
def vector_add_cpu(a, b):
c = np.zeros(NUM_ELEMENTS, dtype=np.float32)
for i in range(NUM_ELEMENTS):
c[i] = a[i] + b[i]
return c
# This is the GPU version. Note th... | [
"40984264+MZ195@users.noreply.github.com"
] | 40984264+MZ195@users.noreply.github.com |
4a6b5e2621decce6eb1754198c1bd419fc647aa0 | 097b73d12f2c7de6f1293ee4149865061600b838 | /app.py | f3308f8df0044818ecd72eeda05a9129cd9764c4 | [] | no_license | mario-j/flask-todo | 6d83d10d53003addd6a5c5c7499380b0b2fd22f2 | 111f75d292209f963c1334086884e2fb66c83907 | refs/heads/master | 2022-11-12T14:01:31.846521 | 2020-07-11T19:54:34 | 2020-07-11T19:54:34 | 275,969,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py |
from flask import Flask, render_template, request, redirect, url_for
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db/todo.db'
db = SQLAlchemy(app)
class Todo(db.Model):
id = db.Column(db.Integer, primary_key=True)
text = db.Column(db.St... | [
"mjordanbartolo@gmail.com"
] | mjordanbartolo@gmail.com |
5fdd3da197b5e63c8464b26248a21637cc070214 | 9dd45a0f91afc5c276fac35a28c9c19f20adb426 | /Week4/Electrostatics.py | a1a794d26410bc61338f265981a9ad1a202eae4d | [] | no_license | rcantwel/PHYS202-S13 | 294cc9f9f8d10e70e25353a101b9b982e6a0bfd8 | 423c4503432073ebdbe589942e94eb2b5c628a17 | refs/heads/master | 2016-08-03T13:53:20.181925 | 2013-06-15T03:42:51 | 2013-06-15T03:42:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | import numpy as np
k= 8.99*10**9
"""This function will tell you the voltage based upon the location of the charges"""
def pointPotential(x,y,q, posx, posy):
Vxy = (k*q/((x-posx)**2+(y-posy)**2)**(1/2.))
return Vxy
def dipolePotential(x,y,q,d):
V1 = pointPotential(x,y,q,-d/2,0)
V2 = pointPotential(x,y... | [
"rcantwel@calpoly.edu"
] | rcantwel@calpoly.edu |
8fb5822fa3aab09eceb845da372e5086be020332 | 220991f935dd7ff0972913da1e60e3d529d4a99c | /lectures/L13/setup.py | 34e5f0cd6671f33669bbacb9d5aaf4a67b9f3f70 | [
"MIT"
] | permissive | hvongsachang/cs207_hurlink_vongsachang | 93558d0357df86acfadcb7ff9843cc8f3cdd2a85 | ffaa80ac5fdc0bdb1eaf31bd39d76f7533aa7101 | refs/heads/master | 2020-03-28T04:11:36.218990 | 2018-11-25T09:12:08 | 2018-11-25T09:12:08 | 147,699,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="complexproj_hvongsachang",
version="0.0.1",
author="Hurlink Vongsachang",
author_email="hvongsachang@college.harvard.edu",
description="A small example package for complex numbers",
lo... | [
"hvongsachang@college.harvard.edu"
] | hvongsachang@college.harvard.edu |
c959b60352be4863a3f8953548cec73e80ef1c23 | fe7599b0538567b82236832e93179ea88ff42e65 | /test/common/test_embedding.py | 338dda7a2ffabb2a4b9e352dd131c12d4e02d828 | [] | no_license | jgung/verbnet-parsing-iwcs-2021 | 6cd43b121b74d47300561a63ad1b57841aab1903 | 3d5b0bdd478d1594e05f1c935a555a360ad6692c | refs/heads/main | 2023-05-29T00:47:22.270803 | 2021-06-16T13:10:11 | 2021-06-16T13:10:11 | 365,082,482 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | import unittest
import pkg_resources
from tfnlp.common.embedding import read_vectors
class TestEmbedding(unittest.TestCase):
@staticmethod
def _read_vectors():
vectorspath = pkg_resources.resource_filename(__name__, "resources/fake-vectors.txt")
return read_vectors(vectorspath)
def tes... | [
"james.gung@colorado.edu"
] | james.gung@colorado.edu |
e93e2df1e7fd97450190821c9e7a5164ba062f1b | d0b1bfdbac01c6d7862401fb498cc1ef1e1174c5 | /ClassWeights_bin.py | da316352a0fe438d7b682735ae61459257e5742a | [] | no_license | DSmith537/Brain_Tumour_Segmentation_UNet_Indi | c4f343e530c4ecefe356f4ea23e82e56a54b2a81 | 5b89706ea7962287be20e35b22e4b20728fa7232 | refs/heads/main | 2023-08-19T08:00:52.804660 | 2021-10-06T09:01:03 | 2021-10-06T09:01:03 | 393,923,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,738 | py | #Authors: DS291
# The functions below read in the dataset's gound truths then count the occurances of each target class.
import numpy as np
import SimpleITK as sitk
from tqdm import tqdm
import nibabel as nib
import os
from tensorflow.keras import backend as K
import pickle
# File path:
#path = "/home/ds291/Brain_T... | [
"noreply@github.com"
] | noreply@github.com |
fa9ad3107621143b1312fd0da7d6d95c4a59f492 | d4b0043cb6453c6064fb1e1b58722f540fee3fcb | /thread_example.py | dda974c47b33124e1542bf315e884202c535525d | [] | no_license | SmallConcern/my_hue | 0e2e35aee6e60d141f55d82e4e4426cce846ccd2 | 574cc6861374e90efbae8035b2fa6e0b3a4f4f3f | refs/heads/master | 2021-01-11T15:11:45.707353 | 2017-01-28T22:02:38 | 2017-01-28T22:02:38 | 80,313,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | import time
import threading
import datetime as DT
import logging
logger = logging.getLogger(__name__)
def worker(cond):
i = 0
while True:
with cond:
cond.wait()
logger.info(i)
time.sleep(0.01)
i += 1
logging.basicConfig(level=logging.DEBUG,
... | [
"casey small"
] | casey small |
33e7b842a30e2b8f2a15106a0e959404ed6a695e | 16f217783bc450dd77d7d4ff8fe562de5d3ba0ba | /robotScript/project/Robot.py | d06d4e114108b2dc70d61698bc5b2b886adfc43e | [] | no_license | ss203242430/schoolProject | 4b379f92bd03f7a4cd4c5f5d6e76de8c8b8a5edb | dce20853b2acc76b8357dafbe0fe11a0a219e102 | refs/heads/master | 2022-01-05T05:49:33.278438 | 2019-01-11T13:08:42 | 2019-01-11T13:08:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | import Module
import time
import Camera
class Robot:
def __init__(self,
wheelsLeftPin = 23,\
wheelsRightPin = 24,\
CNY70EncodeMidPinLeft = 17,\
CNY70EncodeMidPinMid = 27,\
CNY70EncodeMidPinRight = 22,... | [
"hp181227@gmail.com"
] | hp181227@gmail.com |
bb86167a69aa2bfadf4f9ad038d871b5071616ec | 5f5369cb8a5591d6a75f4f2c5b8e84e384f62e3d | /example/baidu2Spider.py | d7f0979f9939f2e4f73b2b3920fa1acd24562d9c | [] | no_license | zuoxiatian/aioscrapy | a52c0aaa2272bf15d6240d22413d4dc9dc136794 | 869590da5435bf19ff4bed7b0af8a6a39bf8d8ef | refs/heads/master | 2023-06-21T00:38:38.035574 | 2021-07-20T06:23:36 | 2021-07-20T06:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | import re
from urllib.parse import unquote
import logging
from scrapy import Request
from aioscrapy.spiders import AioSpider
logger = logging.getLogger(__name__)
class Baidu2Spider(AioSpider):
name = 'baidu2'
custom_settings = {
"USER_AGENT": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/53... | [
"conlin_huang@patazon.net"
] | conlin_huang@patazon.net |
1d672fdd90d9308bd9b38d0a377baf32c7a7c700 | 2c897955274882b177dccd92de69a84dd3b307dc | /main.py | 9e29c77b6f50f66e0b6ae5dfc62ef60852a54024 | [] | no_license | JhinDanzo/calculator | 2a35626d1d70b1e6c194ae092563ffa316e08e14 | a3378ae60bc0f6513e5e0313e5ae9d52f67b2d2f | refs/heads/master | 2020-11-24T23:14:10.153084 | 2019-12-16T12:21:04 | 2019-12-16T12:21:04 | 228,381,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | def calc(*args, **kwargs):
num = float(input('Enter number of elements: '))
e = 0
a = float(input('Enter element: '))
op = input('Enter operation: ')
b = float(input('Enter element: '))
result = 0
if op == "+":
result = a + b
elif op == '-':
result = a - b
elif op ==... | [
"gentj03@icloud.com"
] | gentj03@icloud.com |
abacfed9a9e5c8f02ee35ca3495dc01ca6da1898 | 5236a4ef7feab2ef353b27ff9684132b2296ef9a | /experiments/control/agents/NoisyLinear.py | 0e7e9381ea3c6f40d7d7eee1971da1a2e0be4b41 | [] | no_license | yyhnmn/Exploration-strategies | e763b9f14c2ce8baba9e8ea8f9614dd5e424324b | 77570d35045b97870da44006932905954fb59257 | refs/heads/main | 2023-05-06T10:50:12.488550 | 2021-06-03T06:13:45 | 2021-06-03T06:13:45 | 358,855,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | # import torch
# import torch.nn as nn
# import torch.nn.functional as f
# from torch.autograd import Variable
# import math
# https://github.com/higgsfield/RL-Adventure/blob/master/5.noisy%20dqn.ipynb
# class NoisyLinear(nn.Module):
# def __init__(self, input_size,output_size):
# super().__init__()
# ... | [
"yuhan1@ualberta.ca"
] | yuhan1@ualberta.ca |
44c6af43bbc434dc6f8a40443a35ef88b0483d00 | ac1112ce7f300058b61b6e250b84be00d7a6901a | /benchmarks/pencode_read.py | 11fff5014d534aad51302542925b31e2cdcba27e | [] | no_license | moreati/pickle-fuzz | 10a93979476820d832758191e15ce5f337d2e156 | 4398d5d1e44988f7425991f21352d5b6454075e3 | refs/heads/master | 2021-07-15T14:57:20.362579 | 2021-06-09T20:20:24 | 2021-06-09T20:20:24 | 126,242,444 | 31 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,861 | py | """Tiny binary JSON struct encoder.
We use this in preference to JSON primarily because it can handle the
difference between bytes and unicode strings, which is much more efficient
than encoding bytes-as-base64-in-JSON.
"""
import io
import sys
import struct
import codecs
SZ = struct.Struct('!I')
REF = struct.Struct... | [
"alex@moreati.org.uk"
] | alex@moreati.org.uk |
3933cd17fd1774eef21737c13fcdfb3fa04d377d | e8d70438a4662036e728facece1e98465737f01a | /Final Project/Programming/SBC/shared/udp.py | fa09a152b908515115d0d21279de088c96dc432f | [] | no_license | michaelekepler/GMU-ECE590 | 44dd96fdc59f3cd3b3dbb23e63cbb285814a2ab4 | 754e682f1724658acc6b22b499d7cd12b4c7a9b5 | refs/heads/master | 2021-01-21T13:41:33.435842 | 2016-05-11T12:41:24 | 2016-05-11T12:41:24 | 50,143,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,697 | py | #!/usr/bin/python
import sys, socket, array, struct
if sys.version_info >= (3, 0):
from functools import reduce
class UdpSocket(object):
_len_pack = struct.Struct('<I')
_send_big_chunk = 32768 # ~half of max datagram size
def __init__(self, recv_addr, receiving = False):
self.addr = recv_addr
self.sock = so... | [
"michaelekepler@gmail.com"
] | michaelekepler@gmail.com |
4bf586e3a00c46ee55de742f390939aaa6f5c0cd | 0c90738d49e6a38ac7d90ea5e44e838a14ded8f5 | /Biblioteca.py/Biblioteca.py | 46ed48d97fe147aab24b992c548cad89e8604466 | [] | no_license | matias1543/Biblioteca-en-C-y-Python. | 3bcd0abbab6d8aa647b9185a1ac423d38bd942c3 | b246b7dbe372b503914f85e3758ff6976a0556d3 | refs/heads/master | 2021-07-21T08:14:17.403732 | 2017-10-24T13:39:05 | 2017-10-24T13:39:05 | 108,004,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,562 | py | #BIBLIOTECA
libros = {
"Principito" : ["Titulo: Principito","Genero: Fantasia", "paginas: 20", "Autor: Raul", "Numero ISBN: 12312123", "Año de edicion: 1994", "Editorial: IZI"],
"El padrino" : ["Titulo: El padrino","Genero:Ficcion", "paginas: 30", "Autor: Lopez", "Numero ISBN: 22312312", "Año de edicion: 1... | [
"noreply@github.com"
] | noreply@github.com |
d2c0dddcd4b0019ae675cd294c95019ad23d05c9 | acf302747b63c77a8669c951b712f7b11add35d8 | /iot/urls.py | 089118dff075e47c96c1cf1a2cf311ce33d1a413 | [] | no_license | thatswhatthecodesaid/Zeus | ea6ee97483c62a4999901ba5f3a741dcc1ab0928 | 983cd827bf350cc75a3b478718b2e40cfb9352c9 | refs/heads/master | 2020-12-27T16:58:32.146799 | 2020-02-03T20:32:26 | 2020-02-03T20:32:26 | 237,979,852 | 0 | 1 | null | 2020-02-07T16:25:13 | 2020-02-03T14:07:20 | Python | UTF-8 | Python | false | false | 365 | py | from django.urls import path, include
from . import views
from django.views.decorators.csrf import csrf_exempt
urlpatterns = [
path('home/', csrf_exempt(views.home)),
path("acview/", csrf_exempt(views.Tempc)),
path("aciot/", csrf_exempt(views.acview)),
path("ac/", csrf_exempt(views.ac_task)),
path... | [
"shlokcpatel2001@gmail.com"
] | shlokcpatel2001@gmail.com |
5d18798b9d369adde79d969ba4c0c2de8e71160d | 26928b3361af2f021f8e390bd966ef936bc76bcb | /app/main/controller/fileController.py | c7abedfd313f0842f6fe3da326c6a2a22712d6b4 | [] | no_license | zzzzzkjs/flask_file_upload | 57adce32ed6b4ebb5aec890f836d5007f68376ba | b734d4ec463a666fa8f089f6d40172d21556d12e | refs/heads/master | 2023-02-22T13:59:53.042620 | 2021-01-24T09:36:06 | 2021-01-24T09:36:06 | 329,244,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | from flask_restx import Namespace, Resource, fields
from flask import request
from werkzeug.utils import secure_filename
api = Namespace("file", description="file related operations")
@api.route("/upload")
class file(Resource):
@api.doc("upload_file")
def post(self):
files = request.files
# 저장... | [
"zkjs@naver.com"
] | zkjs@naver.com |
a854ec1a1c8513ffd3482ecb32d19f7d126c322e | 9b4970589d1abbb365c0f3f490c70623848b4255 | /test.py | e23243f96efd47065fc2a95eba3c2f1a8ac74ae3 | [] | no_license | rateyu/python_es | 307f47f0e83a8979ee334bc9986421d1633f6675 | 3377cfc08fef61e3142cb8bc321c8fe966b047f5 | refs/heads/master | 2021-01-19T01:30:11.916346 | 2016-07-23T22:43:36 | 2016-07-23T22:43:36 | 64,038,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | __author__ = 'myu2'
x = 1
while x <= 100:
print x
x += 1 | [
"ym=999526"
] | ym=999526 |
8a21386060c5fce78625b552041b44bf7abafceb | d371b1d0ae2c78c716305661276e99ea99a2ec3f | /sandbox/findtweetsdaterange.py | 36f3970992acc8337aa243df30c9f249d7396c01 | [] | no_license | ravioactive/subtrendr | 96fa9485f453662c391d46aa9c5b7c5cb70972c6 | 6afddb96ff9ce4c8eaa6d3c3d43d81426d2c2870 | refs/heads/master | 2020-12-24T14:09:27.363320 | 2015-05-10T19:53:01 | 2015-05-10T19:53:01 | 32,291,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,481 | py | import sys
import pymongo
from unidecode import unidecode
import operator
def main():
args = sys.argv[1:]
trendname = args[0]
if not trendname or trendname == '':
print 'Trend value missing. Abort.'
sys.exit(1)
connection_string = "mongodb://localhost"
connection = pymongo.MongoClient(connection_string)
db... | [
"ravioactive@gmail.com"
] | ravioactive@gmail.com |
31e36abf085c1f9a230b668343ec294935b1c1da | 91fe8f479fa921fa84111d19222a5c6aa6eff030 | /apps/django-web/learning_log/ll_env/Scripts/django-admin.py | 8785f03fb524b48fbb8c6393ffc1f4c9ea3ed203 | [] | no_license | romanticair/python | 2055c9cdaa46894c9788d5797643283786ed46dd | 6f91fe5e7cbedcdf4b8f7baa7641fd615b4d6141 | refs/heads/master | 2022-11-03T17:17:17.608786 | 2019-07-05T07:07:29 | 2019-07-05T07:07:29 | 195,356,190 | 0 | 1 | null | 2022-10-14T20:51:14 | 2019-07-05T07:00:33 | Python | UTF-8 | Python | false | false | 183 | py | #!l:\mypythonprogr\somepythonprojects\learning_log\ll_env\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"1024519570@qq.com"
] | 1024519570@qq.com |
1c54e78c3a9fa11c3884d713d206b69fd669a135 | a08d885cb9150d7e84f5ffbf0c9734893105a898 | /2021/Day 04/giant_squid.py | 113e0335b32c0ec58d8789010615a252f8d92b66 | [] | no_license | vhsw/Advent-of-Code | ab422c389340a1caf2ec17c5db4981add6433fbe | 3c1dac27667472202ab15098c48efaac19348edf | refs/heads/master | 2022-12-29T03:56:59.648395 | 2022-12-26T11:01:45 | 2022-12-26T11:01:45 | 162,491,163 | 0 | 0 | null | 2022-05-10T08:43:32 | 2018-12-19T21:10:26 | Python | UTF-8 | Python | false | false | 1,821 | py | """Day 4: Giant Squid"""
from typing import Iterable
with open("2021/Day 04/input.txt", encoding="utf-8") as fp:
DATA = fp.read().strip()
def part1(data: str):
"""Part 1 solution"""
nums, boards = parse(data)
for num in nums:
for board in boards:
for line in board:
... | [
"nevermind1025@gmail.com"
] | nevermind1025@gmail.com |
d8df7c56c4cad45b9d3d1ee36968d4cdf236893f | bbf54124f543870b4e24c7888d99e488f724702a | /venv/Scripts/pip3.7-script.py | 37ab5f87d7ef9437808e5be915ecb607cb25e93b | [] | no_license | desh-woes/Hash_code | 9de8e171f3a87a8f047f1bc602c53a460d8f45b9 | 0aa9187b568ddefdfd14450f72109053e5d84f83 | refs/heads/master | 2020-04-21T17:11:39.750786 | 2019-02-08T11:56:25 | 2019-02-08T11:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!C:\Users\adesi\PycharmProjects\Hash_code\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__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)?$', '', sys.a... | [
"oadesina17@alustudent.com"
] | oadesina17@alustudent.com |
165df67dfc5ba1f98f4a75696535e434b8eb836f | b39130ffdd7303160c118f0a60922964c75cc614 | /T46/manage.py | f5e8f994f8bf970073af76fb795676471c0b1603 | [
"MIT"
] | permissive | RedBeastOfLeaf/Hackathon_5.0 | f345786790d6cea8dfd0de0c75eb051e15db4cde | c516b5589c0826c87f79767e165755a6918e07ad | refs/heads/master | 2023-03-06T04:53:47.866905 | 2021-02-20T08:35:18 | 2021-02-20T08:35:18 | 340,563,280 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'AIproject.settings')
try:
from django.core.management import execute_from_command_line
... | [
"noreply@github.com"
] | noreply@github.com |
1a4bbe1904853599082ef1d8488fd19f7e6d1010 | 50d93a57c640fbe0b9c3292a0acb485fd73b2fb4 | /cartoframes/viz/styles/utils.py | a1514f1b59df035aceac8c7bbb1f74b813b5f690 | [
"BSD-3-Clause"
] | permissive | alejagapatrick/cartoframes | 6af46b32b2a918edb0a995ba2773ce65b3acae4c | a86e949785d5b1ec748d686e5b11732123fbd2b0 | refs/heads/master | 2021-01-14T16:14:29.258096 | 2020-02-01T23:27:45 | 2020-02-01T23:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py |
from .. import defaults
def serialize_palette(palette):
if isinstance(palette, (list, tuple)):
return '[{}]'.format(','.join(palette))
return palette
def get_value(value, default, geom_type=None):
if value is None:
if geom_type in ['point', 'line', 'polygon']:
return default... | [
"jarroyo@cartodb.com"
] | jarroyo@cartodb.com |
44cf0a4ee9872efbc12aaaa85957163ff6094902 | 00c33337f4023c8d257a7da1c47db4bf36441b94 | /feedback/serializers.py | 3bc97bd69196ce0d453d34d6288cf55f13d6930c | [] | no_license | ECellNitrr/EcellWeb2k19 | 694d733737b1ac26c136994ee631f36904ca942d | 75d53aad788d6deac8c5dda72cabf34b8d4bcb15 | refs/heads/master | 2021-06-24T06:23:09.097667 | 2021-01-12T08:37:48 | 2021-01-12T08:37:48 | 189,839,122 | 4 | 23 | null | 2021-01-12T08:24:49 | 2019-06-02T11:39:44 | JavaScript | UTF-8 | Python | false | false | 192 | py | from rest_framework import serializers
from .models import Feedback
class FeedbackSerializer(serializers.ModelSerializer):
class Meta:
model = Feedback
fields = '__all__' | [
"33046846+naveennvrgup@users.noreply.github.com"
] | 33046846+naveennvrgup@users.noreply.github.com |
2ec92ffd832da26eb31afb624fedaf179b955034 | d3a82e7576945619973b1314aaaa1bf9897e74a8 | /class_base_8/app_first/apps.py | 9574e1c527ba3c514cd9b3bcbee7fb900f06dabf | [] | no_license | zahrafarrokhi/learning_django_1 | 7b0a2b96f251d14ac5f8468d677c95a5eb420905 | 031a4fb99df74745df8f972df158aed1a17a4862 | refs/heads/main | 2023-07-06T11:58:33.725572 | 2021-08-09T06:52:17 | 2021-08-09T06:52:17 | 393,140,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django.apps import AppConfig
class AppFirstConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'app_first'
| [
"zahrafarrokhi2017@gmail.com"
] | zahrafarrokhi2017@gmail.com |
b85d47bd5f74ecd5a88bb098b7cdf9d4ab5a3344 | 6f1bd5c6a80fcd975c314b5f9fdec6e5c4df56a7 | /Algorithms/collatzConjecture.py | a99d08cd6e0eec4e057711e597c1596ef4e8d6f1 | [] | no_license | danWalt/Karan-Projects | 344e22445d96558ecabc87350156e2d67c8e7cea | 461c176fcb8176b5190cfe07882986274196b997 | refs/heads/master | 2020-12-01T20:41:50.466603 | 2020-04-07T14:34:07 | 2020-04-07T14:34:07 | 230,763,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | # collatzConjecture.py uses the Collatz Conjecture algorithm to find the
# number of steps it takes to get to 1 from a number following these rules:
# Start with a number n > 1. Find the number of steps it takes to reach one
# using the following process: If n is even, divide it by 2. If n is odd,
# multiply it by 3 an... | [
"daniel.walters2110@gmail.com"
] | daniel.walters2110@gmail.com |
f60744cdfe7f93c215b617e3629895b632846bd0 | 9bc228372e586a1f90bb0685c43e744be9638ecd | /19_허유빈/session06/views.py | 7c57f4e01c5da391a8a5fa0c47dcc2d446fc10d5 | [
"MIT"
] | permissive | LikeLionSCH/9th_ASSIGNMENT | 3e58862a76e3232aed7e19e8939da23330ff2e22 | c211995ad12f404833ffec7fd80e1229b82a3bfa | refs/heads/master | 2023-07-03T10:27:11.843177 | 2021-08-02T14:52:02 | 2021-08-02T14:52:02 | 379,633,279 | 7 | 18 | MIT | 2021-08-02T14:52:03 | 2021-06-23T14:36:59 | Python | UTF-8 | Python | false | false | 629 | py | from django.shortcuts import render
# Create your views here.
def count(request):
return render(request,'count.html')
def result(request):
text = request.POST['text']
text_count = len(text)
text_countWithoutSpace = len(text.replace(" ",""))
word_list = text.split()
return render(request, 'resu... | [
"xuubxxn@gmail.com"
] | xuubxxn@gmail.com |
627d10055d164f6914568c45ba093d428ee437a6 | 0fa69775ef1248b6d0b27f20461ff7ab7a43173e | /main_app/beauty.py | 81e2c2cd5476f8f2392a88c75c44ce6558590e60 | [
"MIT"
] | permissive | rajkumarGosavi/Worker-Recommender | 85117051db6bd6847023fbeae5d56ad08a827bbc | 1a16904a3c72a75290a4dffda451643b3b359700 | refs/heads/master | 2020-04-22T12:07:41.088503 | 2019-02-12T17:45:33 | 2019-02-12T17:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py |
import pandas as pd
new_df = df.copy()
def prettify(cls, n, df):
for index, records in df.iloc[n].iterrows():
for cols in df.columns:
records[cols] = cls[cols][0][records[cols]]
new_df
| [
"princegosavi12@gmail.com"
] | princegosavi12@gmail.com |
06beea50352b477f0d03f263c4db73fa5be43f96 | fe8adf343f8b5f7328be5340058c82b6be1b4b67 | /Beginner/03. Python/Calculator_tkinter.py | fed7beb069ebe93b54ed3756b8eadbcda7eeff1e | [
"MIT"
] | permissive | manas3789/Hacktoberfest | 43601a3746e1f570fdc400c0933040b591260f10 | e4682fa34575ac243de464526ad1dd8d3ca102b1 | refs/heads/master | 2023-08-22T08:28:37.780612 | 2021-10-07T17:15:08 | 2021-10-07T17:15:08 | 414,692,658 | 0 | 0 | MIT | 2021-10-07T17:14:05 | 2021-10-07T17:13:32 | null | UTF-8 | Python | false | false | 13,150 | py | from tkinter import *;
from tkinter import messagebox;
def actionauthor():
messagebox.showinfo("Author", "Pranta Sarker\nBatch: 6th\nDepartment: CSE\nNorth East University Bangladesh")
#Check weather the input string is a number or not
def is_number(s):
if(s != ''):
if (s.replace('.', '', 1).isdigit()... | [
"noreply@github.com"
] | noreply@github.com |
d3592686c28277edf933176d6bc6cfcfec171372 | 82f2cf1cd09ab6cc1ad1713cb76a8da3c3ab5e5b | /Harjoitus2/Exercise 2 p4.py | 41648338ae205397cc2ac999872664e7f1ed2b36 | [] | no_license | GitOsku/Olio-ohjelmointi | e738dde62d29883436b42108da85a581d57f1fa7 | b063847b6e95d0872ca3ed7b720691d025a150c2 | refs/heads/main | 2023-04-11T11:26:43.152965 | 2021-04-25T16:07:05 | 2021-04-25T16:07:05 | 330,405,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | kysymys funktio
anna nimesi
anna arvosanasi
palauta arvosana
pää funktio
summa = 0
indexi = 0
boolean joka määrää ajetaanko koodia
kun boolean on tosi
summa += kysymys funktio
indexiin lisätään 1
tämän jälkeen kysytään halutaanko jatkaa vai lopettaa
tulosta summa jaettuna ... | [
"Oskari.Helenius@edu.turkuamk.fi"
] | Oskari.Helenius@edu.turkuamk.fi |
225daf1bf1edf46e759e8c5e78e8a18939c7372b | 01aa2693544c9677c71b313eb1342fc6efbdc541 | /paper/4-fig/porc_1m14.py | b261245d0c1fe83cce1bdc9e9e9c24e86c42e2bb | [] | no_license | pgbarletta/exs | 0b478b25a410721e96308abada7ec7558a87f542 | afedbf04770eae0ac901e11b0a0cc480b9cb2d41 | refs/heads/master | 2021-01-12T15:16:12.809586 | 2017-06-16T19:53:07 | 2017-06-16T19:53:07 | 71,725,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | from pymol import cmd
cmd.load("modevectors.py")
cmd.load("./cut_avg_1m14.pdb")
cmd.load("disp_avg_1m14.pdb")
cmd.load("pock_1m14_1.pdb")
cmd.set_view ( '''0.634891212, 0.608652472, 0.475852638,\
-0.286199570, -0.386813581, 0.876609623,\
0.717629075, -0.692744732, -0.071385831,\
-0.0004086... | [
"pbarletta@gmail.com"
] | pbarletta@gmail.com |
56c0bfbbb9e78a2387e0f7b372b66d6135d9f3cf | daaee847587b852aa6a9dc7d7bc97ad2547a4b4d | /thresholded_binary.py | 482625686d8f24b027b013a11156844a28546a1b | [
"MIT"
] | permissive | tomershraga/Udacity_Advanced_Lane_Lines | ca86dbcc3a7ccaaefeaaeb0b9eb8a9b90782a28a | 826436fb695402e3ff1edda5568c3a5be5c91c73 | refs/heads/master | 2022-12-03T16:53:38.290128 | 2020-08-17T11:54:26 | 2020-08-17T11:54:26 | 286,523,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
def create_thresholded_binary_image(img, thresh_min = 20, thresh_max = 100, s_thresh_min = 170, s_thresh_max = 255):
# Convert to HLS color space and separate the S channel
hls = cv2.cvtColor(img, cv2.COLOR_RGB2HLS)
s_channel = hls[:, :, 2]
... | [
"tomershraga@gmail.com"
] | tomershraga@gmail.com |
1b7c96a2295ea7e138deda6e3742ba95cd5763db | 6d05f11c55ea277a08fc375b1c5af5ecc076000b | /python/paddle/fluid/tests/unittests/test_allclose_op.py | 94e30621ef1377344457aa3d94a725abac99ef31 | [
"Apache-2.0"
] | permissive | sfraczek/Paddle | 8602df1b11937400f93ac5861a366226208a6f05 | d1e2c61b22b9675adc3c4a52227d2220babaa001 | refs/heads/develop | 2023-04-04T22:52:42.629243 | 2023-03-16T12:06:10 | 2023-03-16T12:06:10 | 140,574,617 | 0 | 0 | Apache-2.0 | 2019-03-26T15:54:00 | 2018-07-11T12:51:20 | C++ | UTF-8 | Python | false | false | 8,362 | py | # Copyright (c) 2018 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 app... | [
"noreply@github.com"
] | noreply@github.com |
c7457f83022b47c936a0bccf283bf660d926f839 | 636849fc7edd9dcb095cf3410a121ab37de69f02 | /SoftLayer/fixtures/SoftLayer_Network_Storage_Iscsi.py | 04c2284767ad5c529af005b1acc17b04a1a8efa8 | [
"MIT"
] | permissive | softlayer/softlayer-python | bcb09306c3367fdbd2f1407f770c4959729b074c | 5798373055d9f34dfd531d81638a64d0a7901a13 | refs/heads/master | 2023-08-23T19:32:36.990701 | 2023-08-21T03:29:44 | 2023-08-21T03:29:44 | 622,291 | 126 | 182 | MIT | 2023-09-14T15:04:48 | 2010-04-21T20:36:31 | Python | UTF-8 | Python | false | false | 735 | py | getObject = {
"id": 11111,
"allowedVirtualGuests": [
{
"id": 22222,
"allowedHost": {
"accountId": 12345,
"id": 18311111,
"name": "iqn.2020-03.com.ibm:sl02su11111-v62941551",
"resourceTableId": 6222222,
... | [
"fernando.ojeda@jalasoft.com"
] | fernando.ojeda@jalasoft.com |
084cf7c8ad3ccb351ad8f82e258bb032f29e7f7d | d8f2e4199d80ab9d32b6d47ac7d434c450ac5b99 | /Atividade-de-Ordenao-3/heapSort.py | bd2b7bfd782e41bf5bb9647c43a699d6d9bed724 | [] | no_license | alexandremsnunes/ED-APA | a13465151619ab9a60c37a703b9fd41d37bd18a9 | 8f9b53d44f3030a88a86e55dcc08ae4e155ced09 | refs/heads/master | 2021-05-20T10:12:08.962261 | 2020-07-10T12:49:49 | 2020-07-10T12:49:49 | 252,242,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | import numpy as np
import sys
import math
def maxHeapify(vetor,lenHeap,i):
left = 2*i + 1
right = 2*i + 2
if((left < lenHeap) and (vetor[left] > vetor[i])): maior = left
else: maior = i
if((right < lenHeap) and (vetor[right] > vetor[maior])): maior = right
if(maior != i):
veto... | [
"msn.alexandre@gmail.com"
] | msn.alexandre@gmail.com |
861709efdf3acd7f6154b69f466c98536af3d22c | 98e1716c1c3d071b2fedef0ac029eb410f55762c | /part13-introduction-data-visualization/No33-Multiple-time-series-on-common-axes.py | d1207e9079b0d4e197a6b8b3812ed67aab364a3e | [] | no_license | iamashu/Data-Camp-exercise-PythonTrack | 564531bcf1dff119949cbb75e1fd63d89cb2779f | c72a4e806494f0e263ced9594597dc8882c2131c | refs/heads/master | 2020-07-22T00:23:12.024386 | 2019-04-12T09:24:42 | 2019-04-12T09:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | #Multiple time series on common axes
'''
For this exercise, you will construct a plot showing four time series stocks on the same axes. The time series in question are represented in the session using the identifiers aapl, ibm, csco, and msft. You'll generate a single plot showing all the time series on common axes wit... | [
"beiran@hotmail.com"
] | beiran@hotmail.com |
10542c902743d934d55e8099238455426ac53055 | e58447b5b4d4b5dedb284b86a3789946d906e9ff | /menu/models.py | 900420a3d6cf729eda14aa41c67851ec6e353a47 | [] | no_license | jimenz91/xinchao | df4bc796478f6fd6b5f27b83ae62a43dc3495ed2 | 4f8f90e3d56df134d8d94154c4ed81964ebde033 | refs/heads/master | 2023-06-22T17:10:53.210362 | 2021-07-16T14:50:14 | 2021-07-16T14:50:14 | 370,188,127 | 0 | 0 | null | 2021-07-16T14:50:15 | 2021-05-24T00:44:54 | Python | UTF-8 | Python | false | false | 1,033 | py | from django.db import models
class Dish(models.Model):
"""
Dishes to be served in the restaurant.
"""
name = models.CharField(max_length=50)
price = models.FloatField()
weight = models.FloatField()
rations_available = models.IntegerField()
description = models.TextField(max_length=300,... | [
"carlos.jimenez.gonzalez.contractor@bbva.com"
] | carlos.jimenez.gonzalez.contractor@bbva.com |
bed2145e093f7a408d8e95c1f2223dc2f6bd3911 | 3a586ca820a8ffb9286425b61d134878937365eb | /UShapelet.py | d140c993117a8fdc4c6ec1b58537839a5823955d | [] | no_license | Andrew0Hill/UShapelet_CUDA | ff55d05d8017beb97d314d444ea291d7bfa59e86 | 0765fa0854d1655c5c472ef9b9d1f3b4cb0a1153 | refs/heads/master | 2022-09-06T09:50:42.967407 | 2018-12-09T16:27:30 | 2018-12-09T16:27:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,948 | py | import numpy as np
from math import ceil,floor
import time
from utils import cut_points, runtime
from cuda_helper import CUDA_sdist, CUDA_SAX_hash
from timekeeper import TimeKeeper
from matplotlib import pyplot as plt
cuda_sdist = CUDA_sdist()
cuda_sax = CUDA_SAX_hash()
cluster_num = 0
def get_ushapelet(data, splen, n... | [
"andrew.2.hill@ucdenver.edu"
] | andrew.2.hill@ucdenver.edu |
e43535789d7375d1e1ccead85c832662d3c6d18a | e9c3152b3b929a1cb8c71f8767ed06fcabc8ef06 | /problem23.py | 11f5a58c7e0e0779cdbae434a997044788fd7c16 | [] | no_license | StMSoAP/P-Eu | ea4b57233f01d9e7be3501e2c6ed065fb9f8e91f | fd73c1256d3a23dce901f1dade55e9f03630d568 | refs/heads/master | 2020-07-26T02:46:17.606141 | 2019-09-20T16:10:02 | 2019-09-20T16:10:02 | 208,510,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | import time
def abundance(uh):
factor_sum = 0
for factor in range(1, int(uh/2+1)):
if uh%factor == 0:
factor_sum += factor
if factor_sum > uh:
print (uh)
return True
else:
return False
start = time.time()
abundant_numbers = list()
for number in range (1, 2... | [
"noreply@github.com"
] | noreply@github.com |
578c3005410eeece8e1a58b878999ff78c2ad169 | 86832e6073aef0f3cd50e2108b61de3aaa0d2bcf | /data_cleaning/TMX_XML.py | 23efec0dc7c31bdfa13808ca5fe18ca27fd5b927 | [
"Apache-2.0"
] | permissive | sharad461/nepali-translator | 8878b51ba807a9295c561d33cf811fdd942e5ab7 | 64a2606e4a7c92831e195366dee34ddf60b20c7e | refs/heads/master | 2022-12-07T01:50:41.425593 | 2022-12-02T05:31:27 | 2022-12-02T05:31:27 | 187,453,369 | 43 | 14 | Apache-2.0 | 2022-12-02T05:31:28 | 2019-05-19T08:44:37 | Python | UTF-8 | Python | false | false | 621 | py | from lxml import etree
from functions import summarize, write_lines
# Treats .TMX files from NNC Corpus
tmx_file = "NP8"
tree = etree.parse(tmx_file + ".tmx")
paragraphs = tree.findall(".//seg")
lines = []
en,ne = [],[]
counter = 1
for paragraph in paragraphs:
line = ''.join(etree.tostring(paragr... | [
"sharad.duwal@gmail.com"
] | sharad.duwal@gmail.com |
9f2c57c6000751c3bf3a84fbdafb3a3c2e4297c5 | 7934cbb5a7c4189530474f9d988c28153ab2fdfb | /union.py | 5fee79929b863c45674e54169048137b78329af1 | [
"MIT"
] | permissive | beneschtech/GOSAI | 2047ad3e09af32629fc2b64492e5c4fc0e8e9689 | 9abf88441cf83c7297e8a227d8e1b340d1dbb49b | refs/heads/master | 2020-12-18T13:21:15.063552 | 2020-01-21T17:53:23 | 2020-01-21T17:53:23 | 235,398,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | class Union:
name = ""
allies = []
enemies = []
strength = 0
power = 0
def __init__(self,uname: str):
print("Created union " + uname)
name = uname | [
"chris@beneschtech.com"
] | chris@beneschtech.com |
0dd2ec242068ca8522aeb1e1269c1a69d0318f58 | a1cc61c4c0a44aecc863c3568b62ce252ba83a65 | /study/cpurate.py | a5c1c721311b5e4cbdee441c3af7974e219554f2 | [] | no_license | chenwi/py-work | 1e48edb34b7758416199a8a4b8077d530898129b | a9cbcb2f2e38b584036a05bf8a87a8b0c692fafb | refs/heads/master | 2021-05-07T04:00:36.077828 | 2017-11-24T14:45:31 | 2017-11-24T14:45:31 | 111,061,310 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | #-*- coding:utf-8 -*-
import time
def primes(n):
if n ==2 :
return [2]
elif n < 2:
return []
s = []
for i in range(3,n+1):
if i % 2 != 0:
s.append(i)
mroot = n ** 0.5
half = (n+1) / 2 - 1
i = 0
m = 3
while m <= mroot:
if s[i]:
... | [
"1587504387@qq.com"
] | 1587504387@qq.com |
876023ee1305ba3c1b5a7697f45835b1f3c3f4f6 | 641760e65d90d319705b1da2ee749c9789527815 | /teamnovel/novels/migrations/0003_auto_20200524_0940.py | 96b98565d2d898f4d8b4fbffc89b719daa9743d4 | [] | no_license | bartoszkoper/teamnovel | 35e26d6dddcf6fe7114de4c9b7163587d6463e23 | 90dc9f46304d5d9ed29687262f311728a24dfa5d | refs/heads/master | 2023-03-06T03:21:14.432222 | 2021-02-16T14:20:09 | 2021-02-16T14:20:09 | 270,358,643 | 0 | 0 | null | 2021-02-16T14:20:11 | 2020-06-07T16:05:43 | null | UTF-8 | Python | false | false | 865 | py | # Generated by Django 2.2.6 on 2020-05-24 09:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('novels', '0002_auto_2020... | [
"marcinwodynski@MacBook-Pro-Marcin.local"
] | marcinwodynski@MacBook-Pro-Marcin.local |
9ba3e88dae4af0e00068b6d7d86cbf5a6392b38f | 23b6b6cfbd0239eac9d227457af1ab3dcb74dc50 | /mllib/tools.py | 917f5564d189370c13300f5bc20567533b2412bc | [] | no_license | emilemathieu/blog_cnn | ce1851c0410b5513e9d9c4a0ddb118ad2714a425 | fc80650e95e77547afbf2679d1d2e83276d9c438 | refs/heads/master | 2020-03-25T17:52:12.727540 | 2018-08-09T16:00:47 | 2018-08-09T16:00:47 | 144,000,257 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | import numpy as np
def whiten(patches,eps_zca):
"""
Performs whitening of the patches
-------------
Parameters:
patches: collection of patches, numpy array nb_patches x dim_patch
eps_zca: zca whitening constant
"""
C = np.cov(patches,rowvar=False)
M = np.mean(patches,axis=0)... | [
"emile.mathieu@stats.ox.ac.uk"
] | emile.mathieu@stats.ox.ac.uk |
9d72b7fbe2c3541708314f0dd93222067664efd3 | 7e4d1395b9fc122d98a0f1ad1ac8c303d6ca2725 | /GTEx_scripts/get_not_processed.py | af41d4dbadd0b086eaf5077863dd020162be398e | [] | no_license | RobinHofmeister/Master_project_2018 | 619f114f58e6df208899c2319e1a4509c29962e6 | 0374d0d740b5bf173a823d9b8b018362edb798f7 | refs/heads/master | 2020-03-26T15:06:57.890886 | 2018-09-07T12:38:32 | 2018-09-07T12:38:32 | 145,021,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | import os
import subprocess
file=open('done.txt')
for line in file:
tmp=line.split()
if tmp[1]=='not_processed':
srr=tmp[0] # get the SRR of non processed SRA
bash_script_name='bash_'+srr+'.sh'
call_bash='bsub < '+bash_script_name
print(call_bash)
subprocess.call(call_bash, shell=Tr... | [
"robin.hofmeister@unil.ch"
] | robin.hofmeister@unil.ch |
f75c04dead8520139d73eced6003c9e4f48c5c05 | 23bb60c20b5734219eff003b911c5b18f57193b5 | /python/my_algorithms__Held_Karp.py | a896362d7e6448079cc6d03ed5740e792f99a92f | [] | no_license | codingMJ/my_functions | cd48ddeed6af159868d3cec9663fa0954f6b775f | f4dac9f19d3d48c95cd8dbe3d8bd37eef7fc48f7 | refs/heads/master | 2020-04-01T00:43:48.089274 | 2018-10-26T10:06:35 | 2018-10-26T10:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,038 | py | '''
import sys
sys.path.insert(0, './my_functions')
from my_algorithms__Held_Karp import Held_Karp
'''
import numpy as np
class Held_Karp():
def __init__(self, model, words_ls, start_index = 0):
self.memo_path2dist = {}
self.memo_path2visited = {}
self.memo_path2unvisited = {}
self.memo_group2paths = {}
... | [
"aman.altay@gmail.com"
] | aman.altay@gmail.com |
84f46815209d96e98cc55afacc1083a0116f2ec0 | dff004e5906a1db65aee861edca9cf8ad26d3ee7 | /flask/bin/pip3 | 92f5b86931b76a2cf7c2f047528ffa2fc7dd76a1 | [] | no_license | rahulkashyap1506/illegal-hoarding | 1246b25d462d4da82363e74dcf48d5f8fe2b62c1 | 39e93d2483a6f647bf2fbeb35e8b770b8ca1a0b2 | refs/heads/master | 2020-03-27T00:57:11.348172 | 2018-09-02T16:42:01 | 2018-09-02T16:42:01 | 145,669,463 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 235 | #!/home/ron/todo-api/flask/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rahulkashyap1506@gmail.com"
] | rahulkashyap1506@gmail.com | |
7fe8b165d679e1934a333cb9368f21b0ad3ef350 | 2160a59b264ae57ccc53857434e8717da56a8b9b | /lesson6/task5.py | 227f1856018efd671ba6360f603e806b4332992e | [] | no_license | MuravevArt/repo-github1 | e5d9a6ee18d74049796599c5c19c9c749ce674a3 | a303e765a3d29ad8f45e53a895a9d4b74645b83d | refs/heads/main | 2023-04-18T21:58:36.440771 | 2021-05-10T11:50:35 | 2021-05-10T11:50:35 | 356,639,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | """
5. Реализовать класс Stationery (канцелярская принадлежность).
определить в нём атрибут title (название) и метод draw (отрисовка).
Метод выводит сообщение «Запуск отрисовки»; создать три дочерних класса Pen (ручка), Pencil (карандаш), Handle (маркер);
в каждом классе реализовать переопределение метода draw. Для каж... | [
"playerw8@yandex.ru"
] | playerw8@yandex.ru |
9511d88a2c2c6863b54773e465b9758b93cf8822 | 1e426c120d254ad099ae2b4e732c194add556ecf | /agent/player.py | 06b19a48edf884fde256d44333be31d432f03204 | [] | no_license | ryonzhang/dl-supertuxkart | fdef82f68756efef3ec95e8ed6f9a9a1e1b59afc | 2c3ec329de3a66012109390f2220706cf88ec717 | refs/heads/master | 2022-06-11T11:45:51.128526 | 2020-05-09T04:22:51 | 2020-05-09T04:22:51 | 261,785,449 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 30,791 | py | # import numpy as np
# import math
# import queue
# from torchvision import transforms as T
#
# from . import models
#
#
# class HockeyPlayer:
# """
# Your ice hockey player. You may do whatever you want here. There are three rules:
# 1. no calls to the pystk library (your code will not run on the to... | [
"zhangruiyang36@gmail.com"
] | zhangruiyang36@gmail.com |
9afe7b481db2444dfbd8affc02f6f35e8909bea1 | 8501910063034c48ee880659d917ad22b25552a0 | /docs/source/course_source/beginer_torch.py | 4d2fad8f6b66d6e5a577c11e7289313ca6035d65 | [
"Apache-2.0"
] | permissive | StacyYang/AutoTorch | 67debf597c332c2d816aa5f79963ce98aa63e98a | bd963471a2aab25a67bef84b6a9bb5619e2380e3 | refs/heads/master | 2022-08-03T00:32:19.379801 | 2020-05-14T00:00:37 | 2020-05-14T00:00:37 | 199,581,162 | 64 | 7 | Apache-2.0 | 2020-05-14T00:00:39 | 2019-07-30T05:31:16 | Python | UTF-8 | Python | false | false | 6,954 | py | # -*- coding: utf-8 -*-
"""
Quick Start with PyTorch
========================
In this tutorial, we demonstrate how to do Hyperparameter Optimization (HPO) using AutoTorch with PyTorch.
AutoTorch is a framework agnostic HPO toolkit, which is compatible with any training code written in python. The code used in this tut... | [
"noreply@github.com"
] | noreply@github.com |
8718fb18f40bed47885972a98c7d3c06d6a3ca6c | 9db8e7bbd09eb07126a7f0c14e2f3af86bf6e8d9 | /datasets/centralia/convert.py | 51efa94fe2198d2ccf0de3656af8e6b03e2c11b4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jayschauer/TCPD | ddeb193eca2fa9ea04b791025fe529dfd3ee4686 | f99ab1decc165707115fd60e991ac1c12091f334 | refs/heads/master | 2022-12-05T02:21:16.517774 | 2020-09-02T18:56:49 | 2020-09-02T18:56:49 | 292,368,325 | 0 | 0 | MIT | 2020-09-02T18:52:00 | 2020-09-02T18:52:00 | null | UTF-8 | Python | false | false | 1,365 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Dataset conversion script
Author: Gertjan van den Burg
"""
import json
import argparse
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument(
"-s",
"--subsample",
help="Number of observations to skip during subsam... | [
"gertjanvandenburg@gmail.com"
] | gertjanvandenburg@gmail.com |
0b10edd818dd7957e66683392d1b9878cbd12290 | 235f96d4b2e0fb672f20be75b114375744efc9c3 | /Contagem Regresiva.py | c5cab596aa1ae2c998ae1cece966205527348a19 | [] | no_license | anderportela/Learning--Python3--Curso_em_Video | f13e1c47a628aa6dee2ba883a82c36adf751d6f7 | 3b0abe6367d04b5043207ddacf29a4af623ebadf | refs/heads/master | 2020-06-29T03:34:48.422798 | 2019-09-15T00:37:50 | 2019-09-15T00:37:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from time import sleep
for cont in range(10, -1, -1):
print(cont)
sleep(1)
print('ACABOU!!!!')
| [
"noreply@github.com"
] | noreply@github.com |
a5cc8baed72231a991bb02cf15947aa7ab3e0198 | f8bf407f84cfa01c5fad248cc64510e969e6dd66 | /LikelionHW/cbvsearch/cbvapp/admin.py | 8d257e36dd71cf878904af65b8d0bc2f2673f793 | [] | no_license | Chungking-express/LikeLion2 | 12c3efa828d64a86732fee53a90dd123e58215b0 | 703f7635d711888967d209ae7359a751eb34ebbd | refs/heads/master | 2022-12-01T04:43:23.626382 | 2020-07-28T16:30:35 | 2020-07-28T16:30:35 | 275,833,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.contrib import admin
from .models import cbv
admin.site.register(cbv)
# Register your models here.
| [
"rla1wlsdn@naver.com"
] | rla1wlsdn@naver.com |
efce919b3664c741e5e5cdd3efddf076345b6093 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/2-resources/_External-learning-resources/02-pyth/PyPattyrn-master/pypattyrn/structural/decorator.py | 947743818a1dceeb4c5e662540bafd0242dc5234 | [
"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 | 2,788 | py | from functools import partial
from abc import ABCMeta, abstractmethod
class Decorator(object, metaclass=ABCMeta):
"""
Base Decorator class that all decorator classes inherit from.
- External Usage Documentation: U{https://github.com/tylerlaberge/PyPattyrn#decorator-pattern}
- External Decorator Patte... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
d61c068637c2781dc107309896df3bc5708eb115 | 6ae0f0c8954b7c9d93fa2c2eef5adbc44e93fe2f | /backend/filehandler.py | aec657c41e11a8e4083d9bb65163fe6572ccc6ec | [] | no_license | maldonado/comment_tagger | 3794effcd17d1e2a6882a7eeafd73fb91a72cc8d | 66d73320246fe7ed9485413e8decff21bf1efa75 | refs/heads/master | 2021-01-21T04:44:41.764483 | 2016-06-13T18:55:49 | 2016-06-13T18:55:49 | 51,111,745 | 0 | 0 | null | 2016-06-13T18:55:49 | 2016-02-04T22:54:46 | Python | UTF-8 | Python | false | false | 12,944 | py | import os
import re
import sys
import subprocess
import shutil
from configkeys import DiretoryConfig, FileHandlerConfig
from dbconnector import PSQLConnection
# example of expected tuple [('everton'), ('aries')] move elsewhere and extract class
def fetch_repositories(repo_list = tuple([])):
connection = PSQLConn... | [
"everton.maldonado@gmail.com"
] | everton.maldonado@gmail.com |
449c16c008295c6be33a9bda2569fdb27038e5c7 | 063cbd9e08c3edc4cc8d14ae7233a7d1e83bf421 | /Basic/02_Junior/03_listAndTuple.py | 129edbc47e9e53b033076cb608d9a372786ebf12 | [] | no_license | LearnAwesome/Python | 1910afaab3ffd55b36c50b9f23c58ecebd5f0709 | de7f822f68c9d80d88511d87031b6b28aab87807 | refs/heads/master | 2020-04-28T00:41:29.057352 | 2019-04-23T16:54:39 | 2019-04-23T16:54:39 | 174,825,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | # 列表list
'''
* 元素可变,长度可变,有序
* 索引值index正向0base,负向-1base
'''
classmates = ['Michael', 'Lucy', 'Peter']
print(classmates) # ['Michael', 'Lucy', 'Peter']
print(classmates[1]) # 'Lucy' 正向下标获取列表中的元素
# built-in@len() 获取长度
print( len(classmates) ) # 3
# list@append() 添加元素(在最后一位后)
classmates.append('Jeny') #... | [
"277133779@qq.com"
] | 277133779@qq.com |
1c98bb8c2179fdbdf9aa8669dedcc0f41b325504 | 019b41d7b76e093f92c7bb611e8b829196e7b53c | /lesson_05/work.py | fe18fda48b6bffb96113e45683fec9bca0f604bc | [] | no_license | powerzhangw/pythonzdh | 7855d90c58e60f76e4e3acd765defe1fbb0ff520 | cbe5cd93ade3f47bb2c4d3d01a1813e0a51af076 | refs/heads/master | 2022-12-16T08:30:05.075920 | 2019-04-04T08:52:12 | 2019-04-04T08:52:12 | 175,937,382 | 0 | 0 | null | 2022-12-08T01:42:52 | 2019-03-16T06:55:47 | Python | UTF-8 | Python | false | false | 391 | py | import xlrd
def read_excel(filename,index):
xls = xlrd.open_workbook(filename)
sheet = xls.sheet_by_index(index)
print(sheet.nrows)
print(sheet.ncols)
dic={}
for j in range(sheet.ncols):
data=[]
for i in range(sheet.nrows):
data.append(sheet.row_values(i)[j])
... | [
"power228@qq.com"
] | power228@qq.com |
e7bb5f16a923ff9ad17aaa6eb1e32af386aebe07 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa1/sample/def_func_global-20.py | dc6dfd6544ed1c4f088d8b9645ac5760817cfc2e | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | z:int = 0
def foo(x:int) -> $ID:
global z
return x > z
foo(1)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
b57b1ddb28847d516bc86189013c4852b0257b0a | 921912440422291a7ab87504656c1314b5058ea1 | /2018/2/code.py | 5cfbd105c60e47764163dadc5013511a49618303 | [
"MIT"
] | permissive | maguesse/adventofcode | b728d34add4636adb906f9b930b85d5597e7427d | 126f0baac4cf35bbfc31f1306682586cf0e5883e | refs/heads/master | 2020-04-10T14:02:35.364455 | 2019-12-31T15:04:22 | 2019-12-31T15:04:22 | 161,065,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | #!/usr/bin/env python
def load_input(input_file):
with open(input_file, 'r') as fp:
candidates = [line for line in fp.read().splitlines()]
return candidates
def are_close_enough(id1, id2):
res = []
diffs = 0
zap = zip(id1, id2)
for i, j in zap:
if i == j:
res.append... | [
"maguesse@gmail.com"
] | maguesse@gmail.com |
2b8ceb5c8f748e6de5eb012c4e20b14d58de77b3 | 6d1c596b9e483a94ff2624f4564eb0e699d286c8 | /test_tushare.py | c937a5f39d894b3ced0ced83fe11e0e4a49df4df | [] | no_license | wmy367/stock | 745ac12e7b59d24d796a9ef3f10e28696cc8bb85 | 4ce0b128f3794c63cf1edfb28da1edcac84ca7f6 | refs/heads/master | 2023-06-03T17:38:21.393461 | 2021-06-28T16:12:16 | 2021-06-28T16:12:16 | 367,933,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | import os
import tushare
TOKEN_PATH = os.path.join(os.path.split( os.path.realpath(__file__))[0],"./tushare_token")
TUSHARE_TOCKEN = open(TOKEN_PATH).read()
tushare.set_token(TUSHARE_TOCKEN)
fn = 'ts_code ,symbol ,name ,area ,industry,fullname,enname,cnspell,market,exchange,curr_type,list_status,list_date,delist_date,... | [
"cook_darwin@hotmail.com"
] | cook_darwin@hotmail.com |
3f0545615ca1532870d920e85d4192951e399b06 | 12fd5b83c09b97125a3b9b9f07ad7808e0b9e9f4 | /superset/reports/api.py | 125a3e6763e8d865e87e4c45b4bc1f67df3934aa | [
"Apache-2.0",
"OFL-1.1"
] | permissive | bkyryliuk/incubator-superset | e708233fe553b0eaac4c8b6f55f7c73db62890bf | 541e461b77543c4cd68b07ee2cbce1169ef33eb6 | refs/heads/master | 2023-06-07T22:57:38.465057 | 2023-05-31T19:03:30 | 2023-05-31T19:03:30 | 184,359,149 | 0 | 0 | Apache-2.0 | 2023-01-10T14:15:38 | 2019-05-01T02:27:15 | TypeScript | UTF-8 | Python | false | false | 16,915 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
503bcb65f9989763de2e60233960df779cd71c57 | 3e3bac97de2b9aa968a1a6dca60754bf26cd5fc4 | /RPGv3.py | 41e25b6ea0b62a73d3c3dc1607a90951deb2568a | [] | no_license | camscars/rpg | f5bc91439631a98989e54e3efa5bca938db20c0c | 5183641e5f1aa75932c024d465d7bb1da09c89a7 | refs/heads/master | 2021-01-10T13:27:40.284290 | 2016-01-29T21:19:28 | 2016-01-29T21:19:28 | 50,688,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,118 | py | import random
class Die:
"""Represents a single die."""
def __init__(self, sides=6):
"""Set the number of sides (defaults to six)."""
self.sides = sides
def roll(self):
"""Roll the die."""
return random.randint(1, self.sides)
class Character:
def __init__(self,name,h... | [
"camscars702@gmail.com"
] | camscars702@gmail.com |
57ab08691bedc1016dc6c05f2aa6edfe18a287b3 | ea5d73c1288ff39146b96acf39839ac0375a570c | /EC_P04/teste.py | ed0be8c010710ceaf2e1008595aeeb62a68ebb11 | [] | no_license | REOSTA9/EvolutionaryComputation_2019.1 | b1208e18ac43177962e3c4556c57b2f8d710e022 | 3a0069d29e2bd95be28824974ca8c2cb2af8ae71 | refs/heads/master | 2020-09-07T11:47:55.313200 | 2019-06-12T03:14:24 | 2019-06-12T03:14:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | import numpy as np
def de(fobj, bounds, mut=0.8, crossp=0.7, popsize=20, its=1000):
dimensions = len(bounds)
pop = np.random.rand(popsize, dimensions)
min_b, max_b = np.asarray(bounds).T
diff = np.fabs(min_b - max_b)
pop_denorm = min_b + pop * diff
fitness = np.asarray([fobj(ind) for ind in pop... | [
"raissa_camelo@hotmail.com"
] | raissa_camelo@hotmail.com |
1a26d9c08428eed55bd5c2565f42afc31be2a584 | f62398da3b89e0a1ac39545fbb4f33281e965080 | /Workshop1/Project_09_page33.py | 8ed10dd9f93b896d32a1deeb5bcbef77642e069d | [] | no_license | etasycandy/Python | 525793eef8a5f4b3cbe0f253e07fb77a79dba73e | 7df6d65b1aac549ae6a02b57d70f44aba1d6f5c9 | refs/heads/main | 2023-07-23T08:34:13.526356 | 2021-09-05T17:16:07 | 2021-09-05T17:16:07 | 400,847,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | """
Author: Tran Dinh Hoang
Date: 05/07/2021
Program: Project_09_page33.py
Problem:
9. Enter an input statement using the input function at the shell prompt. When the prompt asks you for input,
enter your first name, observe the results, and explain what happened.
* * * * * ===========================... | [
"noreply@github.com"
] | noreply@github.com |
60832a1bdc8e24e3aef6fe07b07c9089bca57a07 | 0269ccdb7063bc85b20f8c689e03bccfe526c20a | /message/migrations/0007_auto_20180717_1102.py | e534eef80c2fe3726b539a22dee672e9758870ad | [] | no_license | Philipg99/isqip | 2eefc2778814630149f1ef0b6a9beebb4d564a81 | 843eb44b8f432b668c481c6cac66a0a7b6dfbd2e | refs/heads/master | 2020-03-23T04:48:02.885274 | 2019-07-09T09:47:47 | 2019-07-09T09:47:47 | 141,105,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # Generated by Django 2.0.7 on 2018-07-17 11:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('message', '0006_auto_20180717_1038'),
]
operations = [
migrations.AlterField(
model_name='message',
name='location',... | [
"noreply@github.com"
] | noreply@github.com |
3d9ae6082318fdf4c502c52b9057262813ca4889 | 8785bd42e074f6a62f9fba58d188ce1d36ba2a5c | /src/collective/formbuilder/fields/sequence.py | 946a0d8811995e02f5031178c7b19fedb563e00f | [] | no_license | abstract-open-solutions/collective.formbuilder | 608a0d725ec650d1d9655c8dca7a066e9072d537 | 4d51ad0cd76b364aa0028d71797b27372b9c236c | refs/heads/master | 2020-04-12T09:45:34.229846 | 2014-05-30T07:29:20 | 2014-05-30T07:29:20 | 19,608,169 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | from zope.interface import implementer
from zope.schema.interfaces import IChoice
from zope.schema.interfaces import IList
from zope.schema import Choice
from zope.schema import List
from zope.schema.interfaces import IFromUnicode
from plone.supermodel.exportimport import ChoiceHandler
from plone.supermodel.exportimpor... | [
"casaborelli@gmail.com"
] | casaborelli@gmail.com |
966274447565beb53a92704b0d231fe808f50fc9 | 926b242da0965a0cf34138de8c474f27df6ec993 | /discord/testing/maintest.py | 09842ca601ef796798282156de374f85267ab917 | [
"MIT"
] | permissive | mahi-official/CloutWatch | 2d146a00f081331e59f5273d71d91fa934524e47 | 4ebd1904239784a652c1820e21b1c421bf2de3d0 | refs/heads/master | 2020-11-30T02:09:05.407456 | 2019-04-23T22:30:40 | 2019-04-23T22:30:40 | 230,271,656 | 1 | 0 | MIT | 2019-12-26T13:47:02 | 2019-12-26T13:47:01 | null | UTF-8 | Python | false | false | 611 | py | discord_token = 'NTQyMDQ3NDAwNDE2NTA5OTcz.D0odww.Z6RMtOrI4SWY_Ke9DhDEQbdz8fI'
import discord
import json
import requests
print("Logging in")
client = discord.Client()
client.run(discord_token)
print("login completed")
baseURL = "https://discordapp.com/api/channels/{}/messages".format('546528282284392448')
while T... | [
"mathis.vaneetvelde@gmail.com"
] | mathis.vaneetvelde@gmail.com |
2f24faf9f038c86c643c790a22e5ac0adcea401e | 7a5f0c4b4ddf795c4600d75ec23b8eb53e791171 | /arbitrary_arguments.py | 73e783f6ad33e203ce5bd45e4c25fa91c90d9022 | [] | no_license | shikhasingh1797/Function_Question | 8790539b25d2ae97f73a86a1ee1ee2d0a99c4232 | 2afa55fb1e1f79832594e33b4fa493b6bb54a0e0 | refs/heads/main | 2023-03-27T21:46:33.976339 | 2021-03-09T09:11:18 | 2021-03-09T09:11:18 | 345,891,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | # def icecream(*flavours):
# for flavour in flavours:
# print("i love"+flavour)
# icecream("chocolate","butter scoach","vanilla","strawberry") | [
"shikhasingh20@navgurukul.org"
] | shikhasingh20@navgurukul.org |
c499dc7b72977641b03cb37eb9d3cad5cc9ff19c | d0b69e038465d3533209f0b0a042ceb37876da16 | /Project_Euler/Q34.py | d76d57742d69e0ba96cc863223509326bb1ddbcb | [] | no_license | ru04ru041989/MOOC | 51f5d3578c314d7c4d3825499c117a6036117285 | 43265251275a675f552cbe8d679f9432bdf6d620 | refs/heads/master | 2020-03-25T12:44:25.882604 | 2019-10-25T08:30:15 | 2019-10-25T08:30:15 | 139,113,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # Digit factorials
"""
145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.
Find the sum of all numbers which are equal to the sum of the factorial of their digits.
Note: as 1! = 1 and 2! = 2 are not sums they are not included.
"""
from math import factorial
def check_digit_factorial(n):
n_str = str(n)... | [
"ru04ru041989@gmail.com"
] | ru04ru041989@gmail.com |
ac415525282185598f7818ce48ba05afe6778b4c | 78efa54b2b253f99ea7e073f783e6121c20cdb52 | /Codechef/Substraction Game 1.py | 70eba9c0690d035feb1d0ea1b9eec2fb43d7f3d6 | [] | no_license | NishchaySharma/Competitve-Programming | 32a93581ab17f05d20129471f7450f34ec68cc53 | 1ec44324d64c116098eb0beb74baac7f1c3395bb | refs/heads/master | 2020-04-08T04:02:46.599398 | 2020-01-01T15:51:39 | 2020-01-01T15:51:39 | 159,000,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | def gcd(a:int,b:int)->int:
if a==0 or b==0: return a+b
else: return gcd(b%a,a)
for _ in range(int(input())):
n=int(input())
arr=list(map(int,input().split()))
res=arr[0]
for i in arr[1:]:
res=gcd(res,i)
if res==1: break
print(res)
| [
"noreply@github.com"
] | noreply@github.com |
b587e87ac0cc7b9b447110d09c154c2dc54922a3 | 4b95739e0452949914736fd7d8c2a983b4448273 | /OSW.py | ef8a6ec1431027ebe974c122dba7135e3f7c9587 | [] | no_license | karishma347/gas-modules | 1d148943a8c375f948a78ce75fa4dc6dbd6971e0 | 2d0bcc59a163fc918a94d8a165b94fc0148c8251 | refs/heads/master | 2022-11-30T03:48:00.768477 | 2020-08-01T19:39:58 | 2020-08-01T19:39:58 | 282,725,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,109 | py | # a python module to calculate gasdynamic oblique shock waves functions and their inverses
# Karishma Bharti, Srisha Rao M V, IISc, July 2020
# Global conventions and variables
# g=Ratio of Specific heats
# TR=temperature ratio
# PR=pressure ratio
# dS=change in density
# ro=density ratio
# PO=stagnation pressu... | [
"noreply@github.com"
] | noreply@github.com |
339fbbf64e0beffc337a085e31729f800c8127dd | d03582a9f9a853a07eeb36f746530dee29f7a258 | /build/catkin_generated/generate_cached_setup.py | b68e8b3be2e20e0a06efc00fe0407cd24717e837 | [] | no_license | tanmayshankar/decision_making | 6df835c6c26e9cb2f0fdfbec509f5a46bf3c98ae | fdd3b1ea127a89fb03181cb8f766e86e6d933eed | refs/heads/master | 2021-01-21T04:48:16.259813 | 2016-07-15T17:43:06 | 2016-07-15T17:43:06 | 44,739,541 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.p... | [
"tanmay.shankar@gmail.com"
] | tanmay.shankar@gmail.com |
20906ab3c18a8740b0c15f21a626b89b87f75c8d | 10fbe5526e5f0b8588b65f70f088cd86b6e9afbe | /qqpppzas/migrations/0015_auto_20150218_1630.py | 8c6435040612046c9d19f24e8b395845cbb10c31 | [] | no_license | MarkusH/django-migrations-benchmark | eb4b2312bb30a5a5d2abf25e95eca8f714162056 | e2bd24755389668b34b87d254ec8ac63725dc56e | refs/heads/master | 2016-09-05T15:36:45.250134 | 2015-03-31T23:44:28 | 2015-03-31T23:44:28 | 31,168,231 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cohutfvb', '0014_auto_20150218_1630'),
('qqpppzas', '0014_auto_20150218_1628'),
]
run_before = [
('ysgxuyu', '0012_d... | [
"info@markusholtermann.eu"
] | info@markusholtermann.eu |
8a845f0c89c35044592b224153f6da028b9b4d42 | dcab57390ac471215ccb9206f3cfdbd882309613 | /Lab07_neural_network/createdb.py | 6b2c1b26bf47ee57a526a99bf90d9a63501146cb | [] | no_license | VaruTudor/Artificial-Intelligence | 7cc5f4d2cdc8d5112369cefe3f4210eaf40ae498 | f38b888e345cea08cd1e06deb2dedbbf2671ef73 | refs/heads/main | 2023-05-04T08:37:21.098056 | 2021-06-03T07:08:17 | 2021-06-03T07:08:17 | 365,523,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | import numpy as np
from utils.utils import *
import torch
class Repository:
@staticmethod
def createDistribution():
"""
distribution of 1000 random points in the domain [− 10, 10]^2
"""
return (MAX_VALUE_DISTRIBUTION_DOMAIN - MIN_VALUE_DISTRIBUTION_DOMAIN) * torch.rand(
... | [
"varutudor@gmail.com"
] | varutudor@gmail.com |
9099b68c27e3fbffcb996837b243735fb81db3c4 | cc5eb8eb50d64ffbca780c42a908053ec549f295 | /Python Course CSe11309x/quiz3_prog3.py | 2b9ed7f99272eb84762ebb8b2b6185efa3fb98e4 | [] | no_license | bemagee/LearnPython | 328b1f7a9d5046fe1503aece8a5134a7dd2727d2 | a42565f8fb45f9e2ebbcdcf359ebb9092bf837c2 | refs/heads/master | 2020-12-13T02:45:30.308604 | 2016-10-24T03:09:12 | 2016-10-24T03:09:12 | 10,793,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #!/usr/bin/env python3
# Write a program that asks the user for a positive number 'n' as input. Assume that the user
# enters a number greater than or equal to 3 and print a triangle as described below.
# For example if the user enters 6 then the output should be:
#*
#**
#***
#****
#*****
#******
#*****
#****
#***
#*... | [
"bemagee@gmail.com"
] | bemagee@gmail.com |
45b40e88cc16ec4b4e3bf6112cd2b25a8e54b0c3 | bc63bf5acfdba3b97b73ae3e907dbdc4048186c0 | /CowinAlert.py | 295e89b202224c79376f6d7f8ba1c96f4c636eab | [] | no_license | OfficialNMN/COWIN-Tracker | e015385aaa3160612fc6c07042c26bb1357de6b5 | 472bfa020e1ec247830ce500a22d448e8f595750 | refs/heads/main | 2023-04-27T19:17:16.138729 | 2021-05-16T11:35:51 | 2021-05-16T11:35:51 | 367,827,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,869 | py | import email
import smtplib
from datetime import datetime, timedelta
import requests
def create_session_info(session):
return {"name": session["name"],
"date": session["date"],
"capacity": session["available_capacity"],
"age_limit": session["min_age_limit"]}
def get_sessions(da... | [
"noreply@github.com"
] | noreply@github.com |
85e47a7c85de739bc65345d998fe641d0953a7cd | 040abe86c2ec9d1f8acaa9f74884193a9809e0b2 | /mainsite/order/migrations/0016_auto_20210421_1408.py | ec86b5234742eb8989e25d23145f7f80f2adf146 | [] | no_license | Felice1004/onehalf-clothing-platform | 1e4ab964ba6a0b5501848300bdd83c23245bbd3f | fbe43204b4729e09c775a6d7f07360284241881a | refs/heads/master | 2023-04-28T15:59:01.061934 | 2021-05-13T14:36:58 | 2021-05-13T14:36:58 | 350,784,997 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 3.1.7 on 2021-04-21 14:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('order', '0015_sellerrevenue_totalrevenue'),
]
operations = [
migrations.AlterModelOptions(
name='sellerrevenue',
opt... | [
"palette1004@gamil.com"
] | palette1004@gamil.com |
f4e20a66c309a6826f6f5a9671e49db15b7cd3da | d5ee089358d5cb98715276244b0af0690b03c337 | /unittest_demo3/lib/assert_res.py | 91d15c7e215863b0df8388c09ef2120605da0d7b | [] | no_license | wuyanxueling/unittest | 7980afbe1601ec07eeee6fc1f1fa9241be6aa89b | 5bf812a046bbd98babdde2925643c4a696acdf25 | refs/heads/master | 2022-11-04T21:47:48.221535 | 2020-07-07T03:14:05 | 2020-07-07T03:14:05 | 262,216,208 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/1/1 22:59
# @Blog : http://www.cnblogs.com/uncleyong
# @Gitee : https://gitee.com/uncleyong
# @QQ交流群 : 652122175
# @公众号 : 全栈测试笔记
import jsonpath,json
def assert_res(assertRes, res):
res_status = 'pass'
for i in assertRes.split(";"):
... | [
"noreply@github.com"
] | noreply@github.com |
c8a366680fb4d5ade52e6604ca479ed16f7826cc | e56e2652cec39a11c2874408d0762c1ccba03455 | /gnn_tsp_main.py | ae052d9674b319bd0b85d5b91990262733d8e227 | [
"MIT"
] | permissive | jskimmons/AlphaGo-TSP | a406d1fcb262869f68b6755f024218261be3316e | ddc50ae0ca8228245ab99c13ae4fde294f75b8fd | refs/heads/master | 2021-05-18T20:38:04.669438 | 2020-04-03T13:23:27 | 2020-04-03T13:23:27 | 251,408,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | from TSPCoach import TSPCoach
from tsp.TSPGame import TSPGame as Game
from tsp.TSPNNet import NNetWrapper as nn
from tsp.NNetShell import NNetShell as shell
from utils import *
args = dotdict({
'numIters': 1,
'numEps': 1, # Number of complete self-play games to simulate during a new iteration.
... | [
"jwskimmons@gmail.com"
] | jwskimmons@gmail.com |
26d061ef9388b3d4e74130e0603068f4d889c629 | 52cf8c6b51a32ef6a5755658c19c7454f1811e2f | /pro_5.py | 54ef9f52e48e886ad94c2315a1ce64fe8c61d3b4 | [] | no_license | 815382636/python_practice_notes | 14425f8e6f1d81b4e635d28b63e233bd018ce184 | 288b386a187e5a17cf791de5ad893d514ea82396 | refs/heads/master | 2022-12-28T09:26:24.388073 | 2020-10-07T06:37:19 | 2020-10-07T06:37:19 | 248,880,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | #条件与循环
#字典的遍历
di = {"name":"zhangwei","year":13,"school":"qwe"}
for key in di.keys():
print(key +"---")
for k,v in di.items():
print(f"key ={k},value={v}")
for value in di.values():
print(f"value ={value}")
#range的运用
l = [1, 2, 3, 4, 5, 6, 7]
for index in range(0, len(l)):
if index < 5:
print... | [
"admin@yueweiqideMacBook-Pro.local"
] | admin@yueweiqideMacBook-Pro.local |
e17529c3a121c0258f45934249dacc1b3beb8f55 | a28c939f8af65bdd3d5106f5ef0c3b88de16b999 | /blog/views.py | a104e6d3f5de614661b0a192282655e08601161d | [] | no_license | sayed-fikri/django-portfolio | d53a068775ca637467e6bc40e0ab7e5b785dc6b6 | d1a7eb515f99c718256dbae3e5fabb4bdb1b133d | refs/heads/master | 2022-04-22T11:29:40.999646 | 2020-04-26T13:51:58 | 2020-04-26T13:51:58 | 259,042,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | from django.shortcuts import render, get_object_or_404
from .models import Blog
def all_blogs(request):
# blogs = Blog.objects.all()
blogs = Blog.objects.order_by('-date')[:5]
return render(request,'blog/all_blogs.html', {'blogs': blogs})
def detail(request, blog_id):
blog = get_object_or_404(Blog, pk... | [
"sayedariffikri@gmail.com"
] | sayedariffikri@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.