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
7a9a4729ecfc4018368aacf4a7eb92916cf59270
2d83e3a54242e4683f469dd2f6f691f2eea41ff7
/sc2/play_collect_and_destroy.py
437805a9276c1e010b555041b090c230e8e4a5f3
[]
no_license
JIElite/pysc2-A3C
0d0ae13b64b32b1ef0c53d720ec4c8fb89bb7697
eb3d629ce3b175d5eb328e8a4f43e39b190fb579
refs/heads/master
2023-07-02T06:09:40.725595
2021-08-05T18:03:46
2021-08-05T18:03:46
124,791,245
2
0
null
null
null
null
UTF-8
Python
false
false
8,995
py
from itertools import count import time import sys import os os.environ['OMP_NUM_THREADS']='1' #??? from absl import app, flags from pysc2.env import sc2_env from pysc2.lib import actions, features from envs import create_pysc2_env, GameInterfaceHandler import numpy as np import torch from torch.autograd import Varia...
[ "ita3051@gmail.com" ]
ita3051@gmail.com
d5193135b93cf859ce3b44e6c891377ec69c0b92
03dc4baef99521e6d4ed2ebc9473f0f7a69a2be9
/tests/conftest.py
6308f003359ab39927218feecd8666caa5fb35e2
[ "MIT" ]
permissive
gregnwosu/test-dags-for-k8-airflow
a52dde84fff5fff8bc52622b9862d85cc0a6885b
1be4920d10c059a0bd44e7ea0edf371f29833f7c
refs/heads/master
2020-05-07T14:03:56.377271
2019-04-18T01:52:58
2019-04-18T01:52:58
180,576,092
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Dummy conftest.py for test_dags_for_k8_airflow. If you don't know what this is for, just leave it empty. Read more about conftest.py under: https://pytest.org/latest/plugins.html """ # import pytest
[ "greg.nwosu@gmail.com" ]
greg.nwosu@gmail.com
4904b07f8f0ec2792882ee0298f1595dce8b5300
e6db25851518940a4cc6d76bcfd8271d031111e5
/app/__init__.py
ec69a65b46e0ea864156a794cb36d064d7060c2d
[]
no_license
Thovarantony/info3180-project-one
c85240e5f220a636ef4a2c3d6f34117cec84507c
02d4da8f5717c3a1ce28afb0bd8d786af19f1806
refs/heads/master
2020-05-22T07:44:50.411875
2017-03-12T07:10:14
2017-03-12T07:10:14
84,681,552
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
# coding=utf-8; from flask import Flask app = Flask(__name__) app.config.from_pyfile('app.cfg', silent=True) from app import views
[ "thovargreen@gmail.com" ]
thovargreen@gmail.com
cbfd72141df5c97ba512dcef1a3443c614784429
67a65d28662aef0627628fd083e5049074c200c8
/object oriented programming/Cash register2.py
b9e6a3f0094648e1ffae216428e5f9ac1e374101
[]
no_license
techadddict/Python-programmingRG
036e8e5b56e21006a2bca2a5bc7951768a0eba82
dc9c561a655bde232b68de5fb8bfd82230ed49ee
refs/heads/master
2021-01-23T22:30:50.231232
2018-04-20T21:39:21
2018-04-20T21:39:21
102,937,901
0
0
null
null
null
null
UTF-8
Python
false
false
1,148
py
##Re-implement the CashRegister class so that it keeps track of each added item in the list. ##Remove the _itemCount and _totalPrice instance variables. Re-implement the clear, ##addItem, getTotal and getCount methods. Add a method displayAll that displays the ##prices of all items in the current sale class CashREgist...
[ "noreply@github.com" ]
noreply@github.com
64ec3bc87b011adb9b0fbd4ed1e3dd342e321d5d
1c4328ff0b9098051c3a2f67ef8fcd7baf95c7d4
/gestionBD/admin.py
c5733c61dd17ad86cce09a8d0935679fe1263670
[]
no_license
juanrjc97/ProyectoDistribuidos
550d1a8be42b25ded73c21ff4dbd03e7bae0fa3e
cd128fdfa2a1c847b89bb7ebad8af4b2fef761c4
refs/heads/master
2022-12-05T02:12:46.027345
2020-08-24T17:05:26
2020-08-24T17:05:26
287,396,008
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
from django.contrib import admin from .models import usuario, sector, noticiaTip, puntoRecoleccion, horarioRecoleccion # Register your models here. myModels = [usuario, sector, noticiaTip, puntoRecoleccion, horarioRecoleccion] # iterable list admin.site.register(myModels) # admin.site.register(Usuarios)
[ "juanj121297@gmail.com" ]
juanj121297@gmail.com
ab39f51aadebf09c7fb9657f2cf2f829677b028c
6821584af1068861f00732743574465519aa21a2
/2017/10/python/soln.py
f85e9f9e5f290fbd1eb68989f0009ea559e9f7bf
[]
no_license
srfraser/adventofcode
d2c4c0dfede02c4762d0c9c74d11052aa3cd2512
6ef270fb5c9820dfe9055b3a2e9f0f5b581c9102
refs/heads/master
2023-02-04T21:28:03.226075
2020-12-19T17:58:44
2020-12-19T17:58:44
112,802,053
0
0
null
null
null
null
UTF-8
Python
false
false
2,450
py
import sys import pytest from operator import xor from functools import reduce @pytest.mark.parametrize('circle,position,length,expected', ( ([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 0, 2, [1, 0, 2, 3, 4, 5, 6, 7, 8, 9]), ([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], 5, 2, [0, 1, 2, 3, 4, 6, 5, 7, 8, 9]), ([0, 1, 2, 3, 4, 5, 6...
[ "sfraser@mozilla.com" ]
sfraser@mozilla.com
8f0e61f7f72d8acc85691fe034dcad892cd17838
f1bf5b94f2c3108b022251f8043c9f252771c9fa
/yolov3/test.py
bcbbbf29a27c5dd114825e3bd4140dfcd5afb07f
[]
no_license
Luchixiang/dip_final
b942e2934e13a423dea76d0d8d246c48fccb4901
308f3af9c569fe08ae283735b8731bbbe4326fdc
refs/heads/master
2020-12-02T05:11:39.665257
2019-12-30T11:03:59
2019-12-30T11:03:59
230,900,071
0
0
null
null
null
null
UTF-8
Python
false
false
4,022
py
from __future__ import division from models import * from utils.utils import * from utils.datasets import * from utils.parse_config import * import os import sys import time import datetime import argparse import tqdm import torch from torch.utils.data import DataLoader from torchvision import datasets from torchvis...
[ "984335792@qq.com" ]
984335792@qq.com
e3e9ebff801a044b0319f8a61bbd6e8638abcdf5
921c6ff6f7f31e0349314bc40426fff12107a705
/GeneralPython/DefDict.py
6985b1ba9939e02bd1f4932358dbdac3512fb79c
[ "BSD-2-Clause" ]
permissive
prashantas/MyDataScience
0828d5e443de9633fe1199ef4d13a7699b2ebffa
8db4f288b30840161c6422bde7c7a7770f85c09d
refs/heads/master
2021-06-02T12:06:45.609262
2019-04-25T03:03:25
2019-04-25T03:03:25
96,012,955
0
1
null
null
null
null
UTF-8
Python
false
false
2,818
py
## https://www.accelebrate.com/blog/using-defaultdict-python/ ''' class collections.defaultdict([default_factory[, ...]]) Returns a new dictionary-like object. defaultdict is a subclass of the built-in dict class. It overrides one method and adds one writable instance variable. The remaining functionality is the sa...
[ "noreply@github.com" ]
noreply@github.com
34ed20b435629b542eb0e524e0f9cc8ef963cd73
ac25612c927d8e279071933f7c92f6359da525df
/faceDetector.py
f90337157ad791343cd5f7718d033f84276c0826
[]
no_license
CodingMirec/FaceDetector
2b20c37e17f7a7ad9b53861b94a28a5c3f156b13
26376e4105351f848dc042d6ba8ba9b19049cdeb
refs/heads/master
2023-02-10T12:59:20.980475
2021-01-04T22:58:43
2021-01-04T22:58:43
326,828,595
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
print("Hi World, let's do some AI stuff")
[ "m.sykora01@gmail.com" ]
m.sykora01@gmail.com
854b12f30c05681e1d3cd700beb44eaf0ced4d70
0196d924a6c3c20e665a4e1cdcf036dc57eb421c
/test4.py
15d2c2bc69d89b4f4a82098343facbbd94373a96
[]
no_license
cordx56/graduation-research-implementation
cfd6bfa3d997cdc588d333496f87cb269dcaaff1
d8c6b5d4c2dbb9a69856ab89820359e3c94f66a4
refs/heads/master
2023-03-18T16:41:58.877851
2021-03-12T20:01:26
2021-03-12T20:01:26
317,415,721
0
0
null
null
null
null
UTF-8
Python
false
false
72
py
from typing import List def test() -> List[float]: return [1, 2.3]
[ "cordx56@cordx.net" ]
cordx56@cordx.net
64f3f19c9acc0c5120f14e43ea424666c7f627c9
0ceb424bd27a9a6d919ca165c470ced69bd9fad2
/web/app/main/views.py
efec4a89902e7c93a287c8ffdc64e56813faf917
[]
no_license
qq850482461/python3
92d667c642ff7b02792092f20e481323bceb7c70
1a9d5898a7286cf305df301f3fc81d8d35585d69
refs/heads/master
2021-01-11T19:57:55.092410
2017-11-07T03:03:33
2017-11-07T03:03:33
79,432,999
0
0
null
null
null
null
UTF-8
Python
false
false
8,899
py
from os import path, pardir from flask import render_template, request, redirect, url_for, flash, session, abort, jsonify, send_from_directory from werkzeug.utils import secure_filename # 上传文件 from flask_login import login_required, current_user # 登录模块 from . import main # 导入蓝图 from .forms import CommentForm, PostFo...
[ "850482461@qq.com" ]
850482461@qq.com
85c68399114fdf7fa68f0e31b70251da36f55c0e
cd11c6a68a58581c06f609cfc0f2c2df149460ec
/py/cpp_py_reciever.py
d7c32877bba7eef7567f62d6b717004ed2978610
[]
no_license
Chufan1990/communication_test
4ec3ec1327b065c358cca0e0f0b5bc7036057134
dcb2f3af3ffd7a8dd7079a52f586cdbf6c6d58d1
refs/heads/master
2021-05-07T07:17:02.672969
2017-11-01T09:45:30
2017-11-01T09:45:30
109,113,904
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
import socket import time HOST = '' PORT = 54377 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((HOST, PORT)) s.listen(1) conn, addr = s.accept() a = [x for x in range(1,100)] while True: # conn, addr = s.accept() data = conn.recv(1024) print(data) a = [x + 1 for x in a] string = str(...
[ "Chufan1990@Gmail.com" ]
Chufan1990@Gmail.com
cb4b97b896fc5683599a57fe012bcc1fe716bb96
b49e7e1fb8557f21280b452b2d5e29668613fe83
/leonardo/module/web/widget/feedreader/models.py
e2b9999d1a451c50e6f88b523b571787e8d75ef2
[ "BSD-2-Clause" ]
permissive
pombredanne/django-leonardo
6e03f7f53391c024cfbfd9d4c91bd696adcb361d
dcbe6c4a0c296a03c3a98b3d5ae74f13037ff81b
refs/heads/master
2021-01-17T10:24:09.879844
2016-04-06T19:30:05
2016-04-06T19:30:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,619
py
# -#- coding: utf-8 -#- import datetime import feedparser from django.db import models from django.template.context import RequestContext from django.template.loader import render_to_string from django.utils.translation import ugettext_lazy as _ from leonardo.module.web.models import Widget, ContentProxyWidgetMixin f...
[ "6du1ro.n@gmail.com" ]
6du1ro.n@gmail.com
8127e141b92c22dbd820909101e7385b9efb77fb
0b543112c893ec250b68d30f935901a802da37f2
/task1/src/baseline1-BN-no-missing-AdamW/plot.py
b423232cf3f5f235ad4e26c99bbe7aafc1038081
[]
no_license
KUAN-HSUN-LI/Missing-Feature-Learning
3badbef77581270169f4353e4deb21713cdcd2f9
e17d89ba61adc866f13c36cbc27bd71148de7ec4
refs/heads/master
2023-02-21T11:34:57.608183
2021-01-23T11:47:24
2021-01-23T11:47:24
223,157,013
0
0
null
null
null
null
UTF-8
Python
false
false
3,972
py
import matplotlib.pyplot as plt import json from sklearn.metrics import confusion_matrix import numpy as np def plot_box(data, y_ticks=False, save_path=None): """ Args: data (list): shape = (number of features, data's length) """ length = len(data) fig, ax = plt.subplots(1, length) fo...
[ "b06209027@ntu.edu.tw" ]
b06209027@ntu.edu.tw
f22577938fc54158f83a3dc1f43cd18d5cfa7cea
4a7ede06edbe66f9d1eb485261f94cc3251a914b
/test/pyaz/webapp/config/ssl/__init__.py
b8b893c526afb4dff9fd44ab4dc16187a35ffb19
[ "MIT" ]
permissive
bigdatamoore/py-az-cli
a9e924ec58f3a3067b655f242ca1b675b77fa1d5
54383a4ee7cc77556f6183e74e992eec95b28e01
refs/heads/main
2023-08-14T08:21:51.004926
2021-09-19T12:17:31
2021-09-19T12:17:31
360,809,341
0
0
null
null
null
null
UTF-8
Python
false
false
4,010
py
import json, subprocess from .... pyaz_utils import get_cli_name, get_params def upload(resource_group, name, certificate_password, certificate_file, slot=None): params = get_params(locals()) command = "az webapp config ssl upload " + params print(command) output = subprocess.run(command, shell=Tru...
[ "“bigdatamoore@users.noreply.github.com”" ]
“bigdatamoore@users.noreply.github.com”
55472b0c5f983145ad94b3ad71b426983dfc08c4
b7eed26cf8a0042a61f555eed1e9bf0a3227d490
/students/synowiec_krzysztof/lesson_05_lists/swap_the_columns.py
b736f8344827fe5b3c90bd3b1073ba5e4b319f6b
[]
no_license
jedzej/tietopythontraining-basic
e8f1ac5bee5094c608a2584ab19ba14060c36dbe
a68fa29ce11942cd7de9c6bbea08fef5541afa0f
refs/heads/master
2021-05-11T11:10:05.110242
2018-08-20T12:34:55
2018-08-20T12:34:55
118,122,178
14
84
null
2018-08-24T15:53:04
2018-01-19T12:23:02
Python
UTF-8
Python
false
false
564
py
def main(): rows, columns = [int(x) for x in input().split()] matrix = [[int(y) for y in input().split()] for x in range(rows)] i, j = [int(x) for x in input().split()] matrix = swap_columns(matrix, i, j) for row in matrix: for column in row: print(column, end=" ") print(...
[ "synulewar@gmail.com" ]
synulewar@gmail.com
722d9751fdfb30121aa44cbdf95d987200b1f104
de1acc80671e1dbf5ac7292756eda1a4dc2ae01b
/arena.py
2a90e7d9c752a1791931516897b76f9d43de7eaf
[]
no_license
aibrockmann/Fire-Emblem-Arena-Probabilities
d701b9881c619f6cf0c72e153d7ad4d70c22dd7c
ee0c7ec4928321649555e3d9809d4eded47c1fff
refs/heads/master
2020-03-25T22:25:41.052968
2018-08-10T02:49:42
2018-08-10T02:49:42
144,222,635
0
0
null
null
null
null
UTF-8
Python
false
false
21,981
py
#!/usr/bin/python3 """ arena.py Tkinter app which computes the probability of victory in Fire Emblem arena battles. Author: Andrew Brockmann Completion Date: August 8, 2018 Last Modified: August 8, 2018 """ from fractions import Fraction from math import ceil try: from tkinter import * from tkinter import m...
[ "noreply@github.com" ]
noreply@github.com
b3752302cc01762f86cc7f21d67ad17c50c31944
917130bcf189fa8721513ebbc586f92bbc203cba
/projectmini/ebook/booking/models.py
cc927a80ae4122220b36777c2627d673182bfefe
[]
no_license
thitiwut00897/minipro61070088
bb52a8be057a5216c2a398db1152160b30866cf5
26c4422c96c0f1df13f2cc4d50bad8635c359f8e
refs/heads/master
2021-03-07T04:07:30.744377
2020-12-20T10:49:53
2020-12-20T10:49:53
246,244,833
1
0
null
null
null
null
UTF-8
Python
false
false
1,154
py
from django.db import models from django.contrib.auth.models import User # Create your models here. class Rooms(models.Model): name = models.CharField(max_length=50) open_time = models.TimeField((""), auto_now=False, auto_now_add=False) close_time = models.TimeField((""), auto_now=False, auto_now_add=False...
[ "61070088@kmitl.ac.th" ]
61070088@kmitl.ac.th
0cb8fe31319034d1b0d7e1d5d9511de51d466943
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/anagram/1d85ad5d39ab4551a2af68f5a6bd2b21.py
1bbc9ad83b17ae2c9371525d8394a6a6641fbf73
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
529
py
def detect_anagrams(word, anagrams): real_anagrams = [] for candidate in anagrams: # Case insensitive lower_word = word.lower() lower_candidate = candidate.lower() for char in lower_word: if char in lower_candidate: lower_candidate = lower_candidate...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
7e8576889db7bc42d394affeabbf4d0b2b0f1a9b
acc8ad05dad610d9c10652e0e80234e82f4640da
/PythonLearning/scpPython.py
ab9f88910287f84b72aff41572e842a0c73cfbfc
[]
no_license
anoopsingh/PerlPractice
93071e355fa10e0f891e7a228661cfedf8386f21
ebff8dcf9f9066d26c8ecb2b838dffe9d9c71f9b
refs/heads/master
2021-01-02T08:51:48.672994
2015-09-29T06:02:03
2015-09-29T06:02:03
33,689,358
0
0
null
null
null
null
UTF-8
Python
false
false
1,080
py
import pexpect IP = '172.23.54.205' scriptPath = ':/root/test.xlsx' localPath = 'demo.txt' password = 'By2GYH' ssh_newkey='Are you sure you want to continue connecting' def login(p): print "\n Sending Password to sit net machine..." p.sendline(password) print "\nPassword Sent." p.expe...
[ "anoop1186@gmail.com" ]
anoop1186@gmail.com
2552cbf53d0d75e66f28671d25befa0cfa574aff
c1cbdf51c1d7a44ac0391f042370a23e9888d415
/discussion_board/migrations/0002_auto_20210409_1548.py
cf6d7d57d8582430cb901bde550a93184caf3e9c
[ "MIT" ]
permissive
Archana90663/badger-buddy
4ddab3ac43268224422b704aa582031553f8a184
ceba081bb81467b0e5fa5ac1ea292be8d1724de6
refs/heads/main
2023-07-08T23:51:47.185558
2021-08-23T15:32:05
2021-08-23T15:32:05
399,155,527
1
0
null
null
null
null
UTF-8
Python
false
false
542
py
# Generated by Django 3.1.7 on 2021-04-09 20:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('discussion_board', '0001_initial'), ] operations = [ migrations.AddField( model_name='post', name='anonymous', ...
[ "noreply@github.com" ]
noreply@github.com
4e4c07311b235504f423c8a1b0f6499bad4c3b37
12edc67a35250d059c9853d7bccb7ef422e87d2c
/processes/nested_process.py
6087ca38030876c3195cc9e2c94ec137f89ed07e
[]
no_license
MaxymHybalo/serial_bot
50e1364ee9d329cba21a702ef3bd9481e659c39e
118928db49c9a8d6ad56e204d44c1d9db91afd0a
refs/heads/master
2021-05-13T18:16:47.999623
2020-09-27T18:00:15
2020-09-27T18:00:15
116,856,072
0
0
null
2020-10-29T17:57:45
2018-01-09T18:44:58
Python
UTF-8
Python
false
false
278
py
class NestedProcessor: def __init__(self, instruction): self.nested = instruction self.process = 'nested' def handle(self): from processors import InstructionProcessor queue = InstructionProcessor(self.nested) queue.process()
[ "keepass.log@gmail.com" ]
keepass.log@gmail.com
62ea2be7fc66c3171790c5ad021dad5000e6a6dd
9819a85dec2b79d3b29d7b377c8726c1f2d1f906
/ISS_flies.py
f04710c562923e27113690ffbdf16d6ac4f51d57
[]
no_license
Koluw/wix
5f6d373d9b758db313da5b3934d21d6a1aec6d26
4e1b59bda9a169101a8278b4814cd7b283ebc25b
refs/heads/master
2022-10-30T11:29:52.920503
2020-06-16T15:22:13
2020-06-16T15:22:13
269,417,763
0
0
null
null
null
null
UTF-8
Python
false
false
6,387
py
import time import json from os import path, getcwd, sep import pymysql import requests def read_cities_json(): """ check the file with geo_points and cities. rearrange the data to dictionary for next iterations :return: jsonData => dict with cities [id, name, latitude, longitude] """ jsonDat...
[ "semenov.stan@gmail.com" ]
semenov.stan@gmail.com
70a701bc5cf1cd1ac9d4ac6d0363562e3c83398d
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-2951.py
fa63609bcdcdfb979fea5d777ccafaefcce4369d
[]
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
23,286
py
# Binary-search trees class TreeNode(object): value:int = 0 left:"TreeNode" = None right:"TreeNode" = None def insert(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode(x) return True else: ...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
8107640d66d0dd58eb2d0351d0559824dc3a2c98
c29763f930c7c00b435a9b25dddf7f6e2e8548a1
/Atividades disciplinas/6 periodo/IA/algoritmo de dijkstra/test.py
6417af691864735fbf0325a743f03bdf7e10a868
[]
no_license
jadsonlucio/Faculdade
f94ae6e513bb783f01c72dcb52479ad4bb50dc03
2ca553e8fa027820782edc56fc4eafac7eae5773
refs/heads/master
2020-07-06T20:34:10.087739
2019-12-07T20:45:55
2019-12-07T20:45:55
203,131,862
0
0
null
null
null
null
UTF-8
Python
false
false
1,172
py
import numpy as np from map.location import Location, calc_distance from map.map import Map COORDINATES_MAP_TEST_1 = { "latitude_min" : 0, "latitude_max" : 10, "longitude_min" : 0, "longitude_max" : 10 } CIDADES_ALAGOAS = list(open("tests/cidades_alagoas.txt", "r").readlines())[:10] def generate_rand...
[ "jadsonaluno@hotmail.com" ]
jadsonaluno@hotmail.com
4759c10925bd4a63b1dd754e5e6ed81b3d284496
2f766f5e8af11bf35796978145c46847d64d3ded
/cppy/test/processor_test.py
993ab5c6e0ce785b01f61dc7334b358cd698e245
[ "MIT" ]
permissive
quantosauros/cppyProject
c8bb4d23326499241dd7925952a8ca2fd23c6d51
5c8bbb9830c4254f44473e9f35229c2ca142901b
refs/heads/master
2021-01-15T08:31:19.382486
2016-08-21T00:27:52
2016-08-21T00:27:52
65,473,982
0
0
null
null
null
null
UTF-8
Python
false
false
2,279
py
# coding=utf-8 from cppy.adaptor import CpRqRpClass, CpSubPubClass from cppy.processor import EventProcessor evntproc = None @CpRqRpClass('CpSysDib.StockChart') class StkChart(object): def __init__(self): self.itm_cod = itm_cod def setInputValue(self, inputType, inputValue): s...
[ "Jay@DESKTOP-2NATO2G" ]
Jay@DESKTOP-2NATO2G
f017ec6bfa09c5911b89cbadbbaa324ad90d63b7
0c1525f26d552aa9985abbc68984dee0cf4bd082
/basic3.py
1994531c57294fa5483893324e555ae1226993a7
[]
no_license
junpei-oyama/kadai-N
8c51fc2072acd8091bc7968af63e999fae93852a
f4be36bc713efc3d7b83fd6d43f2b493c2a1da96
refs/heads/master
2020-08-08T07:55:25.069459
2019-10-11T00:40:09
2019-10-11T00:40:09
213,785,665
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
import torch def main(): """ 代入や要素の指定 """ t = torch.tensor([[1, 2, 3], [4, 5, 6]]) print(t) print(t.dtype) # 特定の要素 print(t[0, 2]) # スライス print(t[:, 1]) # 再代入 t[0, 0] = 11 print(t) # 再代入 t[1] = 22 # 複数要素に再代入される点に注意! print(t) # スライス利用の再代入 t[...
[ "junpei.oyama.ai@gmail.com" ]
junpei.oyama.ai@gmail.com
251411a9333fbd7da3a0557d59516ffd7672af6c
f6d8f211bd87b47b511ac0b6599806ab3131999f
/04-case-study-interface-design/ex_4_12_5.py
937b06979b4f78846f3bdcb3f460fea8fed15b30
[]
no_license
csu-xiao-an/think-python
6cea58da4644cd1351112560e75de150d3731ce9
8177b0506707c903c3d4d9a125c931aba890cc0c
refs/heads/master
2020-07-26T19:35:38.919702
2019-09-16T03:33:15
2019-09-16T03:33:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,746
py
"""This module contains a code for ex.5 related to ch.4.12. Think Python, 2nd Edition by Allen Downey http://thinkpython2.com """ import math import turtle def polyline(t, n, length, angle): """Draws n line segments. :param t: Turtle object :param n: number of line segments :param length: length of...
[ "cccp2006_06@mail.ru" ]
cccp2006_06@mail.ru
654cc90332c09abc4bdcbd210bb7af7224f65258
f2557d3a984cd4a8295d8cb71b1ccacccdadeae5
/2016-2017/unzip.py
2ed29b7cafa0751711346f7a287dede9408fafbd
[]
no_license
fridayhub/exercise
6780c9e08d42139e5ec46aeb6cbc3369bac76140
3ff44f3fd4b7b2f88ab6d08845013c2150163562
refs/heads/master
2021-06-19T02:46:28.353282
2017-07-11T03:13:06
2017-07-11T03:13:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
534
py
#!/usr/bin/evn python #-*- coding: utf-8 -*- import os import sys import zipfile print "Processing File " + sys.argv[1] file=zipfile.ZipFile(sys.argv[1],"r") for name in file.namelist(): utf8name=name.decode('gbk') print "Extracting " + utf8name pathname = os.path.dirname(utf8name) if not os.path.exi...
[ "liujinghang@tandatech.com" ]
liujinghang@tandatech.com
fb18817c77ca05588928bd7ba6e85114aa0e0db5
f40da1aaadbc9b2eee464964f41b03131db50489
/tapd_req/xls.py
1677a14088ac7354d7dfcf2c2e3cbd7956295e1d
[]
no_license
BensonMax/Tapd
a8231d090a045613cd8601d7edc596286b04cfb0
7eb908182a6e6c1dfed530e7957f0ab58109ec40
refs/heads/master
2020-04-15T20:03:04.045651
2018-10-11T15:20:30
2018-10-11T15:20:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,901
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import xlwt from config import XlsFormatConfig from xlutils.copy import copy import xlrd DEFAULT_STYTLE = xlwt.Style.easyxf(XlsFormatConfig.DEFAULT_FORMAT) ABNORMAL_STYTLE = xlwt.Style.easyxf(XlsFormatConfig.ABNORMAL_FORMAT) # use open_xls(filepath) to open the file named...
[ "stcnchenxin@163.com" ]
stcnchenxin@163.com
47637c1fadc412f5bf100a0f462a63cc7d789865
d2d926e6113e5cb78f0cd0c6f7b045d6c0c18672
/Socket_Programming/Read_Write_Server/client.py
0da15992d76570d0bb69b39acb7219a3c1df0286
[]
no_license
Saipadmesh/networking
a23706a923b38c34b46e45f0e6cb0a022d93e303
608773d6985f44ed2c1ad5762f65684a1747bcf6
refs/heads/main
2023-07-09T23:33:44.194037
2021-08-05T13:18:44
2021-08-05T13:18:44
390,595,667
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
import socket import os SEPARATOR = "<SEPARATOR>" BUFFER_SIZE = 4096 filename = "test.txt" filesize = os.path.getsize(filename) # ------------------------- uname = input("Enter username: ") pw = input("Enter password: ") with open(filename, 'w') as file: file.write(uname+" "+pw) # ------------------------- HOST =...
[ "saipadmesh@gmail.com" ]
saipadmesh@gmail.com
55d41b48f828532f110cd17acc09ff642715c97a
8053816d8f8681718312bc907603ddfbe7d6c888
/Drunkard’sWalk.py
b8034ff092beadb9aae9bc98a198ab6c781c053f
[]
no_license
MalachiStoll/MIS3640
cce994ec6bff8b96960bbbe0cc5ec58a83a9af38
f43e77544db2e2064233fc13a08de9f4a686bdd2
refs/heads/master
2021-01-25T16:53:46.148146
2017-12-02T04:06:36
2017-12-02T04:06:36
102,031,020
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
import turtle import random def drunkards_walk_turtle (n): x = 0 y = 0 t = turtle.Turtle() direction = (1,2,3,4) for i in range(n): walk = random.choice(direction) if walk == 1: t.fd(25) y += 1 if walk == 2: t.rt(90) t.fd(25...
[ "mstoll2@babson.edu" ]
mstoll2@babson.edu
69ae9638c27d0ecc84ac41bbef0eda6ecc436c64
2fbc642cb0fe985d7308f3b59a1452862ad12a26
/castle/testgen.py
943eca21927a12527b61400dd66117ebda13baab
[]
no_license
saribekyan/rau-sp14-contest
553ff0a291581c97fad489f4240bf57edf99699c
26b515b9ff45951d326c2c54a65c7e1e1768afd6
refs/heads/master
2021-01-23T16:37:25.770261
2014-04-07T16:59:24
2014-04-07T16:59:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,348
py
num = 1 def puttest(d, find_num): f = open('tests/' + str(num).zfill(3), 'w') f.write(str(len(d)) + ' ' + str(find_num) + '\n') for x in d: f.write(str(x[0]) + ' ' + str(x[1]) + '\n') f.close() f = open('tests/' + str(num).zfill(3) + '.a', 'w') if find_num in [x[0] for x in d]: ...
[ "hayks@mit.edu" ]
hayks@mit.edu
93523af3b7e2fe2d9ea4252cd1aa19c57212c422
01ced2a383aca0371c936dadab32d4dd722127df
/shiritori.py
2a14b64d6d25b6b8f91ca8773161fab54d4b0ec6
[]
no_license
lamboxd/ListManipulation
98105816b66e2e8e9828d4590cf1e981a912caed
fe28355d1346caa0b969c7eb7869856b1b78fc45
refs/heads/master
2020-04-02T11:31:13.447656
2018-10-23T21:07:27
2018-10-23T21:07:27
154,393,171
0
0
null
null
null
null
UTF-8
Python
false
false
1,747
py
def Shiritori(): #read from file and store in lines list text_file = open("word_list.txt", "r") lines = file.read(text_file).splitlines() #get the first word. first_word = raw_input("Please type a word: ") #The first word can throw one error: word not found in list. while first_word no...
[ "clare.yip.2015@smu.edu.sg" ]
clare.yip.2015@smu.edu.sg
49dbafb4ad1aeaf9119acdede9c7aa71c786d66a
727f1bc2205c88577b419cf0036c029b8c6f7766
/out-bin/py/google/fhir/models/model_test.runfiles/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/layers/utils.py
19fe50abb25751952deed4e3e7c7ae32c95d8ff6
[ "Apache-2.0" ]
permissive
rasalt/fhir
55cf78feed3596a3101b86f9e9bbf6652c6ed4ad
d49883cc4d4986e11ca66058d5a327691e6e048a
refs/heads/master
2020-04-13T00:16:54.050913
2019-01-15T14:22:15
2019-01-15T14:22:15
160,260,223
0
0
Apache-2.0
2018-12-03T22:07:01
2018-12-03T22:07:01
null
UTF-8
Python
false
false
174
py
/home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/layers/utils.py
[ "ruchika.kharwar@gmail.com" ]
ruchika.kharwar@gmail.com
33459eb19aaa987578d5674720df2bada6140882
3161173491d34339140265e4f6810e688aff1034
/sw-tm4c-2.1.4.178/third_party/ptpd-1.1.0/tools/ptp_plot.py
a4d547cc846e993d259c2dd8b67144b3286b8565
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer", "ISC" ]
permissive
ti-cortex-m4/tm4c1294ncpdt
853aaed9b7cb39c489568ae8023ed4bd64ba8d76
629defb60af370595d7c33917ee8459642d3b62e
refs/heads/master
2023-07-25T06:14:03.666763
2023-07-23T14:24:03
2023-07-23T14:24:03
28,406,657
5
3
null
2022-08-28T07:21:38
2014-12-23T16:03:26
C
UTF-8
Python
false
false
6,283
py
#! /usr/bin/env python2.6 # Copyright (c) 2010, Neville-Neil Consulting # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # Redistributions of source code must retain the above copyright notice,...
[ "ti.cortex.m4@gmail.com" ]
ti.cortex.m4@gmail.com
91b39b07deb15abbeac4e2fe4abcfb62145fcab9
01e72d1c14068175b6052cbd30f7087c6dc2d73a
/steganography_jpeg.py
d44839b4bef4cc939dee65e31bbb3b6507559e47
[]
no_license
CrazyUmka/EncryptMessage
1b00e60edc1e873b5c0177bdf10495d04dbae56e
94ccb799fc4d5d14994e2167557e35b4e2337c22
refs/heads/master
2016-08-07T07:41:31.011015
2014-05-24T23:23:59
2014-05-24T23:23:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,099
py
__author__ = 'Grigory' #coding:utf8 import os from Crypto.Cipher import AES import base64 from pksc7 import PKCS7Encoder class DecryptError(Exception): pass class Encryptions(object): @staticmethod def decrypt_message(image): index = image.rfind('\\') + 1 if image == -1...
[ "grigoryvydrin@gmail.com" ]
grigoryvydrin@gmail.com
b24ecd6b7da4cd1f2cfad9598bcfcbe2905ee9a3
0c9c63ea2e9416edea44bd9a1a9b20727073e8c2
/app/tests/test_cred.py
122aa6399ee1bf6b76ae6f6a473398844f147dcb
[ "Apache-2.0" ]
permissive
cetaciemat/im-dashboard
b5764b3598c2ca77b309c4ab1fe03dd41b054b9e
ada22a016ebeff12f5474b5715dec865865c7a55
refs/heads/master
2023-02-23T05:16:10.064713
2021-01-26T09:07:25
2021-01-26T09:07:25
297,939,772
0
1
Apache-2.0
2020-12-11T11:44:12
2020-09-23T10:53:16
HTML
UTF-8
Python
false
false
1,958
py
#! /usr/bin/env python # # IM - Infrastructure Manager # Copyright (C) 2011 - GRyCAP - Universitat Politecnica de Valencia # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of t...
[ "micafer1@upv.es" ]
micafer1@upv.es
2bd0039bf55ddcf9f83d04a00689bb71f881d33f
35852273318e44367c56fb32802dcc57b618af68
/django-admin
517431b026d0c05668533c9e1b488232a81ad044
[]
no_license
saturn94/my-first-blog
a9fe5a7b96c5afd73e3218b09d0d2e117fe5de39
4fafab5cb3d7283bfc15b7c2ac74e8eb3ab4ee60
refs/heads/master
2021-01-01T03:57:25.617602
2016-04-28T00:06:07
2016-04-28T00:06:07
57,252,540
0
0
null
null
null
null
UTF-8
Python
false
false
280
#!/home/saturn/site2/bin/python3 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "saturn.94@mail.ru" ]
saturn.94@mail.ru
38829ed63b06279a2b3b97763569d6cf48565c0b
ffcf03784f08aa5798433438db7087ce820bd592
/interview_prep/array_manipulation.py
5f0779473be2acc5d45be91583399f0992181412
[]
no_license
k18a/algorithms
0681b3c876dd4e9e3199243ec21a3ea7221da12d
4624913a6ad6b570720734dd797306fe4f219734
refs/heads/master
2023-01-02T04:33:00.898969
2020-10-23T08:17:01
2020-10-23T08:17:01
301,701,112
0
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
#!/bin/python3 # Complete the arrayManipulation function below. def arrayManipulation(n, queries): # initialize operations_array with 1 extra value operations_array = [0]*(n+1) # loop through queries to update operations array for query in queries: # all values after first index will be added ...
[ "k.arunachalam@ed.ac.uk" ]
k.arunachalam@ed.ac.uk
f2186a23aef4cd044099610d9bfd64c0d45659b7
358f98d2ef482903c7657c572d8498654b1b1c6d
/ref_code/4-3__withsessionfeed.py
4779370150274a1f72eebdd0e7deb721848cf46c
[]
no_license
wssunn/deep_learning_tensorflow
8ebcd0afd63851afb275ca9b236537731e1b9a07
104b6fea59e2ff71caa3da5519e7b851ee28ac32
refs/heads/master
2022-07-03T05:09:36.407989
2020-05-15T01:42:48
2020-05-15T01:42:48
263,839,338
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
# -*- coding: utf-8 -*- import tensorflow as tf a = tf.placeholder(tf.int16) b = tf.placeholder(tf.int16) add = tf.add(a, b) mul = tf.multiply(a, b) with tf.Session() as sess: # Run every operation with variable input print ("相加: %i" % sess.run(add, feed_dict={a: 3, b: 4})) print ("相乘: %i" % sess.r...
[ "sunning@sunningdeMacBook-Pro.local" ]
sunning@sunningdeMacBook-Pro.local
f6759c7327f79c3894884cd7a6487d13cc7ade46
f1150ba464725672be66227d9eb29d13eb81a385
/untitled/Velocimetro Con Movimiento/Velocimetro2.py
78a0fda229286dd4bd96483011edc7454af44bde
[]
no_license
jocade1/DIN
6573ee4a50e28665e16dd4c0660d53444e7c7c9c
52e3219656bd826700684ef26723969f4fabab45
refs/heads/master
2020-12-22T05:19:17.344454
2020-02-21T10:53:08
2020-02-21T10:53:08
236,679,857
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
from tkinter import * from tkinter import ttk from Speedodom import Speedodom root = Tk() f = ttk.Frame() f.pack() spd = Speedodom(f, width=400, height=400) spd.grid(row=0, column=0) for v in (0,240,0.1): spd.setspedd(v) root.mainloop()
[ "josealberto1407@gmail.com" ]
josealberto1407@gmail.com
74b5b828f3763b47c0928d9ef000736bbb8defdc
5c71d64db74c4c39b6e9adb70036a56e197f111c
/amsterdam-airbnb/CV_LinearRegression_selectedfeatures.py
7bf77d7e9d82ecfe3d6a251211a286ad6095989d
[]
no_license
sebkeil/Group20-VU
3e70f1e464bb9873c8e8125ae190a52f08c85804
38f80d80944583e1ac48c6219130de69c0c60242
refs/heads/master
2021-05-18T03:15:15.671035
2020-09-06T15:00:10
2020-09-06T15:00:10
251,079,102
0
0
null
null
null
null
UTF-8
Python
false
false
1,035
py
from sklearn.model_selection import cross_validate from sklearn.linear_model import LinearRegression import pandas as pd import numpy as np from sklearn.preprocessing import StandardScaler # read in files X_train = pd.read_csv('train.csv') y_train = pd.read_csv('y_train.csv', names=['price']) # drop features X_train...
[ "basti.keil@hotmail.de" ]
basti.keil@hotmail.de
8dca1271759ee7e83227a510a85cae83c7c18567
1c390cd4fd3605046914767485b49a929198b470
/PE/73.py
605024f5c153e5bca66a554ce755b76a2d0b1973
[]
no_license
wwwwodddd/Zukunft
f87fe736b53506f69ab18db674311dd60de04a43
03ffffee9a76e99f6e00bba6dbae91abc6994a34
refs/heads/master
2023-01-24T06:14:35.691292
2023-01-21T15:42:32
2023-01-21T15:42:32
163,685,977
7
8
null
null
null
null
UTF-8
Python
false
false
148
py
from fractions import gcd z=0 for i in range(12001): print i for j in range(i): if gcd(i,j)==1 and 2*j<=i and 3*j>=i: z+=1 print z-2
[ "wwwwodddd@gmail.com" ]
wwwwodddd@gmail.com
4e4fc20a8d55917ef9fc9e7af6bfed7a26c28383
ee038dd0069fa0f4e2bc189744b789d4058b3ae9
/FirstAttempt/app02.py
60bb2a517fa71eea65de57f0145919721f26df5e
[]
no_license
JIAWea/Hello_Tornado
c15893d79f5b0282b64f373cde0b94bb24f08ac7
7609bf7b799cae29041fc52394f65e74c2f804a5
refs/heads/master
2020-04-30T20:09:03.096080
2019-03-25T17:07:11
2019-03-25T17:07:11
177,057,974
0
0
null
null
null
null
UTF-8
Python
false
false
3,660
py
import tornado.ioloop import tornado.web import time,hashlib from controllers.account import LoginHandler from controllers.home import HomeHandler container = {} # container = { '随机字符串或者cookie':{'uuuu':'root','k1':'v1'}, } class Session(object): def __init__(self,handler): self.handler = handle...
[ "ray@126.com" ]
ray@126.com
7e068848c2db8d48c618b980d83f78aef0d05d2d
f037f737d14311dc182eae31a74388440c7a68a1
/pytorch_practice/hello.py
512f88b693d621ad448624c456b13cd3971c7c72
[]
no_license
llzxo/python_practice
a5c9897fa13548f2fe30a846bfc979459c859861
48c78799d68cb1620a3d6e22d00b40de2255ba1f
refs/heads/master
2021-01-21T11:22:41.977747
2017-05-11T05:30:38
2017-05-11T05:30:38
83,558,632
2
0
null
null
null
null
UTF-8
Python
false
false
3,914
py
import torch import torchvision import torchvision.transforms as transforms from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F import time import torch.optim as optim transform = transforms.Compose( [transforms.ToTensor(),transforms.Normalize((0.5,0.5,0.5),(0.5,...
[ "llzxp0614@gmail.com" ]
llzxp0614@gmail.com
ff82d23d75ee9801afdbf94c951bef41edcef33d
bcf9bed1d94d952f020faf99e4a9ce85b3eb84a9
/MF_BPR/main.py
62644747257c9e81370ce8d8d685fc0ab24bf90b
[]
no_license
rlqja1107/Graduation_Paper
c79b00e88877d375dd2a12c5e159f4d604ed5288
a09614ca97572ec989dec147a9dd11081220b15c
refs/heads/main
2023-05-31T16:04:31.475121
2021-06-18T08:36:54
2021-06-18T08:36:54
352,487,445
3
2
null
null
null
null
UTF-8
Python
false
false
3,032
py
from dataset import load_data from model import BPR from metric import auc_score, getHitRatio, getNDCG from multiprocessing import Pool, Manager import time import sys dataset = ['epinion82', 'epinion91', 'librarything82', 'librarything91'][3] X_train, X_test, num_users_test, items_list_test, users_list_test = load_da...
[ "rlqja1107@hanyang.ac.kr" ]
rlqja1107@hanyang.ac.kr
0023937f5c12f7a15fd54083090d66e26fe0887a
f2cacb05d20e2e699e64035b6bee9a8bed3d3b8e
/atm/__init__.py
4d85ea4f53cca492fe01cc6e8f66cf043c77030a
[ "BSD-3-Clause" ]
permissive
moeyensj/atm
31e54e93c0881307770ab0d7815b9c4678f9f2e6
0523600cf44423a1ef72ca40fff29bbfbe1281a8
refs/heads/master
2022-08-13T05:33:54.131701
2021-03-03T23:38:02
2021-03-03T23:38:02
196,091,171
9
2
BSD-3-Clause
2021-03-03T23:38:03
2019-07-09T22:16:20
Python
UTF-8
Python
false
false
289
py
from .version import __version__ from .config import * from .constants import * from .frames import * from .helpers import * from .functions import * from .models import * from .obs import * from .analysis import * from .data_processing import * from .fit import * from .plotting import *
[ "moeyensj@gmail.com" ]
moeyensj@gmail.com
9b0e6e18151779ef2c05e047ba28042259e4bdb8
4ab83ae9b3320e423116579a2de14600aeda16e0
/46_孩子们的游戏(圆圈中最后剩下的数).py
15ab243f7034126827dcc0951c5356c320a720dc
[]
no_license
yaodalu/JZOffer
a4e8d6611cbff686dbbdd95226caeb5614945f9c
ede5f500f45b865058352b0c37629d7f2254a4d6
refs/heads/master
2020-05-21T17:10:09.705926
2019-09-10T01:05:55
2019-09-10T01:05:55
186,118,657
1
1
null
null
null
null
UTF-8
Python
false
false
2,083
py
# -*- coding:utf-8 -*- class Solution: def LastRemaining_Solution(self, n, m): """单向循环链表解法""" if n == 0: #特殊情况,没有小朋友 return -1 if n == 1: #特殊情况,只有一个小朋友 return 1 i...
[ "648672371@qq.com" ]
648672371@qq.com
6ee3ea530a68859c892de4828e80f71f3ab09489
7b37b27bd9be95195fe4b6384b6af49cc133de84
/posts/2019/link_header_jsonld.py
e4122d3cef019ba486e7eee66ecc51b220cbb76d
[]
no_license
OnroerendErfgoed/oeblog
0a122ac0de7a3b62d25d5b34c57aa4cd32e57e6a
f2095f8e8ff1cd4aa3808622139f5fc945c2cc31
refs/heads/master
2023-04-07T04:20:08.427321
2023-03-15T10:33:44
2023-03-15T10:33:44
70,043,835
0
0
null
null
null
null
UTF-8
Python
false
false
4,761
py
# -*- coding: utf-8 -*- import requests from pyld import jsonld import json # Our endpoints INVENTARIS = 'https://inventaris.onroerenderfgoed.be' AFBEELDINGEN = 'https://beeldbank.onroerenderfgoed.be/images' ERFGOEDOBJECTEN = INVENTARIS + '/erfgoedobjecten' AANDUIDINGSOBJECTEN = INVENTARIS + '/aanduidingsobjecten' THE...
[ "koen_van_daele@telenet.be" ]
koen_van_daele@telenet.be
15a860f8bc4c092e866e5ee2784958d676c664fb
a98bc8906c3fbe4d388442d24cbeed06d06686f9
/Codechef 2019/sept Long 2019/chefinsq.py
a3cdcb3f34a5e9ed032f62cfec6c69d944f9028e
[]
no_license
Arrowheadahp/Contests-Challenges-and-Events
1ac4f1b2067276fa669e86ecfdb685d95ba663fd
fc156e5ae49b3074a9dbd56acd4fdc2af25c6a3f
refs/heads/master
2022-12-13T19:50:38.041410
2020-08-22T14:16:23
2020-08-22T14:16:23
197,886,111
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
def fact(k): f = 1 while k: f*=k k-=1 return f for _ in range(input()): n, k = map(int, raw_input().split()) A = map(int, raw_input().split()) A.sort() x = A[k-1] s = A[:k].count(x) t = A.count(x) #print s, t print fact(t)/(fact(s)*fact(t-s)) ''' 2 4 2 1 ...
[ "prasunbhuin.pkb@gmail.com" ]
prasunbhuin.pkb@gmail.com
47511dde0ae975520d65f3037883eb7db5a50e64
4d097442bc14f913da366bb93d07d59a056d2bed
/models/resnet18_cifar_lp.py
e7e5da38a058c490449e1f28de40120b2d5faf4f
[ "MIT" ]
permissive
mengjian0502/BNFusionTrain
9db3da50b1affb5284562d9453461ca4de8db572
2cfb4a3dceb4dc468bbee88a1f65a66b29ee4de4
refs/heads/main
2023-07-19T07:07:37.222841
2021-09-06T23:13:13
2021-09-06T23:13:13
335,213,933
0
0
null
null
null
null
UTF-8
Python
false
false
4,247
py
import torch.nn as nn import math import torch.utils.model_zoo as model_zoo import torch.nn.functional as F import torch from torch.nn import init from .modules import QConv2d, QLinear __all__ = ['resnet18_Q'] class BasicBlock(nn.Module): expansion = 1 def __init__(self, in_planes, planes, stride=1, wbit=4, a...
[ "jmeng15@asu.edu" ]
jmeng15@asu.edu
474a17360b5598c946e3ee7efe26064f88440f0a
4116dc4681a9ea321d35f65a0588ef556e7e413d
/app/aplicaciones/principal/migrations/0015_delete_usuario.py
a8206d04998a2449d3484098916dd937933835fe
[]
no_license
MarcheloJacome/ingWeb
6eba0cdb172a3a46ab9b7fe5b3bf85e0878d11d0
1624ae59c9dea5eec741e664f275969db00e9f8d
refs/heads/main
2023-06-04T00:28:16.115738
2021-06-18T14:55:02
2021-06-18T14:55:02
374,448,949
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
# Generated by Django 3.1.7 on 2021-05-18 22:33 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('principal', '0014_usuario'), ] operations = [ migrations.DeleteModel( name='Usuario', ), ]
[ "marcelo.jacome@hotmail.com" ]
marcelo.jacome@hotmail.com
16009b9bc2f62ef2290310fb4dfc596101cfe04e
6afc34982545160506a9acb7f644ba877e4fbe97
/day19.py
a606ca20ee394300d39f23f1017f272c6465b086
[]
no_license
AnsgarKlein/AdventOfCode2020
8bd2e8e918afe611bea9e9850ceb44722eb8de34
137be7bf34603068ec5987a99426669807c3fb42
refs/heads/main
2023-03-21T08:09:43.158060
2020-12-29T13:19:28
2020-12-29T13:19:28
323,086,157
0
0
null
null
null
null
UTF-8
Python
false
false
3,210
py
#!/usr/bin/env python3 import re def read_input_file(filename): rules = [] inputs = [] with open(filename, 'r') as input_file: content = input_file.read().split('\n') # Rules for i, line in enumerate(content): if line.strip() == '': content = content[i...
[ "AnsgarKlein@users.noreply.github.com" ]
AnsgarKlein@users.noreply.github.com
844fd7640e35207a398b570c7d71e27fb7b2de5f
70734c75951d1349a4a4f66ba82a24f4726aa968
/smartrecruiters_python_client/models/source_types.py
6e69f1629ccd49872df29317f8a45592265c7bfa
[ "MIT" ]
permissive
yogasukmawijaya/smartrecruiters-python-client
0f044847ef76bbe57a3a922e7b0adb4f98c0917f
6d0849d173a3d6718b5f0769098f4c76857f637d
refs/heads/master
2020-04-09T16:45:41.703240
2017-07-08T19:59:25
2017-07-08T19:59:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,002
py
# coding: utf-8 """ Unofficial python library for the SmartRecruiters API The SmartRecruiters API provides a platform to integrate services or applications, build apps and create fully customizable career sites. It exposes SmartRecruiters functionality and allows to connect and build software enhancing it. ...
[ "kris@dataservices.pro" ]
kris@dataservices.pro
214d0a8872c4d01fd211501cec534ddb1f14dd25
5ca88629f8e84da4c04ee89294f840936f2d17b2
/blog/migrations/0001_initial.py
3cac720f83f757134826fdc6de16253d97a55bfa
[]
no_license
Josie0130/my-first-blog
60731eff60d0257634b5f7fec608c7cf37b909b7
cf3b5cbddbb30c62ffd90251a66a1d5f66c8d4a2
refs/heads/master
2021-07-11T03:49:08.990258
2017-10-07T19:15:15
2017-10-07T19:15:15
106,119,997
0
0
null
null
null
null
UTF-8
Python
false
false
1,051
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-07 16:45 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True depe...
[ "jpeacock@attatec.com" ]
jpeacock@attatec.com
6aed44e75731659d8dae37ecd1661907fcaa93b3
16eaa032c4bbaa95b8b0d053eb7c60881e97b3bc
/itmcfg_1.6.py
a6648ebcab100fd14a35b6c365965cdb4877b6fd
[]
no_license
haowells/ITM-Silent-Config-Script
53184e443ff2ab9de1314ed270e765f24dd17d67
cecfde37a96c3ccaae789b80bc0839be21f1ef54
refs/heads/master
2021-01-21T02:28:16.276090
2014-07-18T04:05:38
2014-07-18T04:05:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,441
py
#!/usr/bin/env python import os import re import sys import argparse from subprocess import Popen,PIPE,getoutput,check_call,CalledProcessError import logging ver='1.6' ''' v1.1 2011-7-19 a./startagent.sh and /stopagent.sh missed quote mark at the end of each line b.modify auto start script /etc/rc.itm .copy from /st...
[ "haowells@gmail.com" ]
haowells@gmail.com
6de37ed69c4edf56df84c8abae61d811a36a3451
20bf6abf68d526f2f420ca47ee08ccf10e4a43bb
/diarySite/posts/migrations/0001_initial.py
bfa3d95dbaf24a31e784eb1b4f2b2475d6c1c095
[]
no_license
JisunParkRea/django_diary
bd17f49677cdeeef897516384a33d124b6f30a35
aefd3a3d53c7215ef5d01df2384543a36c09de29
refs/heads/master
2021-09-26T16:47:09.591470
2020-03-05T12:59:43
2020-03-05T12:59:43
245,157,300
0
0
null
2021-09-22T18:40:52
2020-03-05T12:27:37
Python
UTF-8
Python
false
false
642
py
# Generated by Django 3.0.3 on 2020-03-03 12:23 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(aut...
[ "fpdldk912@gmail.com" ]
fpdldk912@gmail.com
ed96ae31acfcf92a18e26d9f50e1476cf7637433
fab06d386097c7ecd6beb871d658dc5318a3c5bd
/contrib/st2/opensds/actions/get_bucket_migration.py
d1a2e46c8f29aaf568d069fffba810e277e9d6e8
[ "Apache-2.0" ]
permissive
sodafoundation/orchestration
98032df2d5c263ff6a74c51bfd54136409a1fa00
694832f6816217988e07f67c40bb7d6704879c6d
refs/heads/master
2023-06-04T13:27:36.549994
2021-05-20T11:22:18
2021-05-20T11:22:18
181,059,410
5
4
Apache-2.0
2021-05-20T11:22:19
2019-04-12T18:01:49
Python
UTF-8
Python
false
false
1,150
py
# Copyright 2019 The OpenSDS Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ "himanshuvar@gmail.com" ]
himanshuvar@gmail.com
bdc4901a1f5a207c8b6ad1a084f62e9db064d3dd
a83349cd334786e0f555318a6979c4ec23ec8978
/SteppMotorV2/include/Jugend_Forscht mit BLE mit Servo.py
6119ee9dbaa3d95f342c89d5e3289bcd01f3e86c
[]
no_license
Suebaen/Jugendforscht-GitarrenTuner
07a0b82a5230014750ed999709a9051d10863975
117a8550099f7da0f755598d0a4e7b3c982d098c
refs/heads/main
2023-03-26T10:49:27.435700
2021-03-24T21:15:19
2021-03-24T21:15:19
306,705,184
0
0
null
null
null
null
UTF-8
Python
false
false
10,990
py
#! /usr/bin/env python import numpy as np import sys import pyaudio import kivy from kivy.app import App from kivy.uix.label import Label from kivy.uix.button import Button from kivy.uix.widget import Widget import serial import speech_recognition as s_r print("Start") port= "/dev/tty.HC-05-SPPDev" #dev/tty.HC-05-...
[ "noreply@github.com" ]
noreply@github.com
21c351a8fe2fc37d56c8ee1bc4ffb02f12c1c5cf
04803c70bb97012b7d500a177ac0240fb2ddbe38
/4chpd/pdep/network556_1.py
2b8da0c07c0a5631e9d783dabeb7fa796d2e24f7
[]
no_license
shenghuiqin/chpd
735e0415f6688d88579fc935459c1b0f53596d1d
396ba54629036e3f2be0b3fabe09b78c90d56939
refs/heads/master
2023-03-01T23:29:02.118150
2019-10-05T04:02:23
2019-10-05T04:02:23
192,084,217
0
0
null
2019-06-18T18:33:13
2019-06-15T13:52:28
HTML
UTF-8
Python
false
false
93,703
py
species( label = 'C=C[CH]C(C)O[CH]C(2302)', structure = SMILES('C=C[CH]C(C)O[CH]C'), E0 = (69.8904,'kJ/mol'), modes = [ HarmonicOscillator(frequencies=([1380,1390,370,380,2900,435,3000,3050,390,425,1340,1360,335,370,2950,3100,1380,975,1025,1650,3010,987.5,1337.5,450,1655,2750,2770,2790,2810,2830...
[ "qin.she@husky.neu.edu" ]
qin.she@husky.neu.edu
873ef7519fe5ab23bc29586a5ff39fde227b9ee8
6ef5161fff46ad6d5982b2e24175ff7fca06f2c5
/mainFlask.py
6b1b762760550bad28f2a2d07641fa50cabc5417
[]
no_license
critopadolf/GPT2_Discord_Voice_Bot
9438d87d1a1f43f4f4feb5fd75f9518e29dbee61
ecca6896a7dab1cd778b71dbf1a9f969891ec8d9
refs/heads/main
2023-05-02T07:55:59.972238
2021-05-14T19:15:33
2021-05-14T19:15:33
367,455,787
0
0
null
null
null
null
UTF-8
Python
false
false
710
py
from flask import Flask from flask import request import gpt2_run from multiprocessing import Process, Queue app = Flask(__name__) outStr = Queue() str1 = Queue() p = Process(target=gpt2_run.run,args=(str1,outStr,)) @app.route('/gather', methods=['POST']) def gather(): #gin = request.values['SpeechR...
[ "noreply@github.com" ]
noreply@github.com
2060b51ab978bb8cf382cabd4423a50c97cdea4d
a9284aca96474e2561a6c1bf5d509be294bcfad4
/model.py
bf56cf034044d9d31b35095419bdfad9b141c0d0
[]
no_license
Dream7-Kim/minimize
66f890ad261ecb1cd345c77b6dcab646effcea2d
200aee7205a31d02238c3ab278d1f8bdccb1fb22
refs/heads/master
2020-09-09T08:16:08.037337
2019-11-13T07:26:32
2019-11-13T07:26:32
221,396,969
0
0
null
null
null
null
UTF-8
Python
false
false
3,614
py
import matplotlib.pyplot as plt import numpy as onp import jax.numpy as np import os import jax import time import scipy.optimize as opt import seaborn as sns from matplotlib import cm from mpl_toolkits.mplot3d import Axes3D i = complex( 0, 1, ) def read(string): lines = open(string).readlines() row ...
[ "ddrr716@163.com" ]
ddrr716@163.com
dfa8bfc9662c0ea80d0f1a5c4833aaf4c4443764
5a295e26ec9e8dff954c6ec0d88f8c348c2b4b17
/venv/Scripts/pip3-script.py
e6db81d57ef232ced1d11b7d995bf08af9910ad2
[]
no_license
galaschi/dotatimer
d07fbc724eb6dad55d70f01af6f727dc5760d93a
efe451cd2c42c5cccfb0cd6bd35f9cfd6708cd0b
refs/heads/master
2021-06-27T12:30:54.662679
2019-11-25T19:52:48
2019-11-25T19:52:48
223,814,804
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
#!C:\Users\Victor\PycharmProjects\timer\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0...
[ "victorgalaschi@hotmail.com" ]
victorgalaschi@hotmail.com
f497f86195d3bc12f46e34a657680f15b0f28836
106a226d39c3bdfd292ea6f612c806fe2780f990
/manage.py
53b30a6587cac01573f80cf88094870eb3632fe5
[ "Unlicense" ]
permissive
rdegges/django-twilio
519c5c91c065c2ac3641d84c186c2778c5b94084
67bce5be124a28d0ccdff067be052c29f2f66e36
refs/heads/master
2023-08-05T09:59:14.545195
2023-06-13T14:26:20
2023-06-13T14:26:20
1,954,013
221
88
Unlicense
2023-06-13T14:22:20
2011-06-25T23:22:08
Python
UTF-8
Python
false
false
336
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings") from django.core.management import execute_from_command_line execute_from_command...
[ "danieldhawkins@gmail.com" ]
danieldhawkins@gmail.com
bc2d0f2db40155e38111225ec1a81a2861d65746
6586768eb0701350b90daa5b6a278518376819fb
/peak/mapper/multi.py
d4b1451988a50844e3fdb04e23c8f3646023dd95
[]
no_license
cdonovick/peak
c0ed8496b405f25b61336bf1f4e10c0d3ce9b5f4
7846f13c32877472e01bfbc5221fc19c041d207c
refs/heads/master
2023-05-28T00:50:59.060837
2022-12-09T19:44:52
2022-12-09T19:44:52
159,844,296
18
2
null
2022-12-09T19:44:54
2018-11-30T15:43:14
Python
UTF-8
Python
false
false
12,099
py
import itertools from functools import reduce from types import SimpleNamespace from hwtypes import strip_modifiers from peak import family as peak_family, family_closure, Peak, Const from .mapper import aadt_product_to_dict, external_loop_solve from .index_var import IndexVar, OneHot, Binary from .mapper import _get_p...
[ "rdaly525@stanford.edu" ]
rdaly525@stanford.edu
880889547dde4dbef94e8f232b96df99bb26d088
fef1c15bd0ffc2c7297e6bc9d030fcd86c478269
/Python/Shorts/likes.py
34644b8e9ddd4b82e5dd1ceaa411baa3ba7a9824
[]
no_license
RicardoCuevasR/Codeacademy
64fabba0d0bca8c353cffe1cab862b32a0b9b8ee
4c2a3238e3bb66c70da5f255deb02ca0157c167c
refs/heads/master
2021-05-23T14:36:51.705744
2020-04-13T11:33:45
2020-04-13T11:33:45
253,343,303
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
def likes(names): #your code here if len(names) == 0: print("no one likes this") elif len(names) ==1: print(names[0]+' likes this') elif len(names) == 2: print(names[0]+' and ' + names[1]+' like this') elif len(names) == 3: print(names[0]+', ' + names[1]+' an...
[ "ricardocuevas@outlook.com" ]
ricardocuevas@outlook.com
c3a7a2e33f162ea0ed680b8f444db06637fa2ce5
bcd0062c83e451f6288026e5818d74167d2b7f60
/1.basic/ver_6/run.py
68ffd129d27b33b942fcfc4294872f0532813d68
[]
no_license
mthrok/Step-By-Step-NN
4aaa65db005feb453b2821ad7ca2b3d34d393ab2
6f8fbb0ef75641b7464d69f190f22ad45828ad82
refs/heads/master
2021-01-10T20:59:35.687197
2015-03-03T06:16:38
2015-03-03T06:16:38
31,582,272
0
0
null
null
null
null
UTF-8
Python
false
false
2,578
py
import subprocess, os, sys, argparse def run(n_hids, lrs, mcs, n_epochs, output_dir): if not os.path.exists(output_dir): os.makedirs(output_dir) for n_hid in n_hids: for lr in lrs: for mc in mcs: output = os.path.join(\ output_dir, ...
[ "mthrok@gmail.com" ]
mthrok@gmail.com
458f4cacbc7324d341bf4de07eefea4e4a38cf54
2f442a2761e81977dc72c947120de7b89ea4a9fb
/venv/lib/python3.6/_collections_abc.py
58968374e253bdff890143af1518e7f3b165322a
[]
no_license
7552-2C-2018/App-Server
00440e72fc4f592b6ad8385f355d1194b50c7498
bc5fff691339064fde4711745e0bec55ae4a116c
refs/heads/master
2022-12-13T13:00:22.877709
2018-12-13T19:23:41
2018-12-13T19:23:41
146,044,186
0
0
null
2022-11-22T00:22:15
2018-08-24T22:07:59
Python
UTF-8
Python
false
false
57
py
/home/charlie/anaconda3/lib/python3.6/_collections_abc.py
[ "carlosfurnari@gmail.com" ]
carlosfurnari@gmail.com
968c93a69a7de0760697499a3d94302bbb76ff91
d775ae87eac01b1b7dcdca2cd1b4e9d699d70a97
/arithmetic_arranger.py
b11d2d34ce558742c043771ab78c1886be4b9c7e
[]
no_license
pkro/fcc_arithmetic_arranger
144f0bd2dde0c7beb8373647304f50b4ffd79023
667c6f268f1f95f0f1b69dcba2cc49a8267989d7
refs/heads/main
2023-01-30T04:02:13.324311
2020-12-13T15:13:08
2020-12-13T15:13:08
320,610,878
0
0
null
null
null
null
UTF-8
Python
false
false
1,733
py
import re not_numeric = re.compile(r"[^\d]") ops = {'+': (lambda op1, op2: int(op1) + int(op2)), '-': (lambda op1, op2: int(op1) - int(op2))} def pad_left(str, padlength=4): padding = " "*padlength return f"{padding}{str}" def arithmetic_arranger(problems, solve=False): if len(problems) > 5: ...
[ "pkrombach@web.de" ]
pkrombach@web.de
73212a3bbdf86b3e69b9610f8daa544a8d040b45
708c3055bf23103d30b26ca43348570aa9ba8542
/app/request.py
81c16ec56f7e69b256dbc78a1f61535700875fef
[ "MIT" ]
permissive
Caiseyann/blog
10774fef95e48cf03166d871d4ac09e259da1ff8
879864304db099e3338e171d493271dc0d439c37
refs/heads/master
2022-12-25T14:27:28.460317
2020-09-30T17:31:20
2020-09-30T17:31:20
298,567,883
1
0
null
null
null
null
UTF-8
Python
false
false
630
py
import os import urllib.request,json from .models import Quote def get_quote(): ''' Function to get random quote ''' quote_url = 'http://quotes.stormconsultancy.co.uk/random.json' with urllib.request.urlopen(quote_url) as url: quote_data = url.read() quote_response = json.loads(q...
[ "caiseyann4@gmail.com" ]
caiseyann4@gmail.com
c6adb1d9469a5adfe8a767e63e40fbd9ab028c03
8df1237388352d29c894403feaf91e800edef6bf
/Algorithms/141.linked-list-cycle/141.linked-list-cycle.py
255c09e7e984294aef20caa856189c3b49b66f31
[ "MIT" ]
permissive
GaLaPyPy/leetcode-solutions
8cfa5d220516683c6e18ff35c74d84779975d725
40920d11c584504e805d103cdc6ef3f3774172b3
refs/heads/master
2023-06-19T22:28:58.956306
2021-07-19T00:20:56
2021-07-19T00:20:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
class Solution: def hasCycle(self, head: ListNode) -> bool: fast = slow = head while slow and fast and fast.next: slow = slow.next fast = fast.next if slow is fast: return True return False
[ "zoctopus@qq.com" ]
zoctopus@qq.com
734222744177ba9b4b567229c0c42a7e3e563b04
71b11008ab0455dd9fd2c47107f8a27e08febb27
/04、 python编程/day01/3-code/算数运算符.py
449a9baa4ca2b1ae2202b8fdd1968229b4f48c70
[]
no_license
zmh19941223/heimatest2021
49ce328f8ce763df0dd67ed1d26eb553fd9e7da4
3d2e9e3551a199bda9945df2b957a9bc70d78f64
refs/heads/main
2023-08-25T17:03:31.519976
2021-10-18T05:07:03
2021-10-18T05:07:03
418,348,201
0
0
null
null
null
null
UTF-8
Python
false
false
112
py
print(3 + 2) print(3 - 2) print(3 * 2) print(3 / 2) print(3 // 2) print(3 % 2) print(3 ** 2) print("hello" * 3)
[ "1780858508@qq.com" ]
1780858508@qq.com
423102cb18157f992cd1e12aafb3efc36871ceed
f646239204a616065de400448c2b1e61df3e3b94
/nlp/rnnlm/test_rnnml.py
8a1812d4dcbe2c7686f5fd6bb3c94f53888ee1fc
[]
no_license
re53min/TOHO_AI
4249e1241b79251821f896b0ee70e6b52a3902e6
bb64be4d4d3dd38424ae5e79347df886c0b55e12
refs/heads/master
2021-01-17T13:38:47.330538
2018-08-08T08:35:36
2018-08-08T08:35:38
60,419,106
7
0
null
null
null
null
UTF-8
Python
false
false
841
py
#!/usr/bin/env python # -*- coding: utf_8 -*- import io import sys import pickle from nlp.utils import mecab_wakati, make_vocab import numpy as np from chainer import Variable sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8') def main(): with open('./dataset/train.pickle', 'rb') as f: ...
[ "matsudate.wataru.hx@mynavi.jp" ]
matsudate.wataru.hx@mynavi.jp
3ccdffbd3e03718f073ee961f759bee970250d79
a7e31b0999da9808cc11b428c400edbc6d6cf593
/poll/admin.py
3f4106ecb9d827e098f8e9010192789e8a74a5e3
[]
no_license
abhisekdas4/Django-Poll-App
09edf3689fb854db8c0dc77dd2c98a7799dcdfc7
10da8a1cf72b8236edb8218773cf7c8d05749011
refs/heads/main
2023-04-01T02:31:24.065397
2021-04-06T12:54:16
2021-04-06T12:54:16
355,187,683
0
0
null
null
null
null
UTF-8
Python
false
false
125
py
from django.contrib import admin from .models import PollModel admin.site.register(PollModel) # Register your models here.
[ "abhisek.das4@gmail.com" ]
abhisek.das4@gmail.com
912dedc16026588dc3a1a08a17457e32719be1ce
1b8ec671c42b664e0b483d52ae398e2b3169ffe9
/AES128/utils.py
d77019a85bb86cfd9c167e6ed9f365b6d6458672
[]
no_license
vinguyen-cs-project/others
0983bbc6847535e6accf2c1ef2c5883f9088156a
6f90f9c2176964448bcc9e98484f96e2ee44c4b9
refs/heads/master
2023-07-24T05:23:08.030084
2021-08-23T21:18:21
2021-08-23T21:18:21
395,365,783
0
0
null
null
null
null
UTF-8
Python
false
false
1,481
py
import json from base64 import b64encode, b64decode from Crypto.Cipher import AES from Crypto.Util.Padding import pad, unpad import time import argparse from random import randint # This is the encryption function. It gets a plaintext a key and returns the ciphertext and nonce. def encryptor_CTR(message, key, nonce=N...
[ "vinguyen6@my.unt.edu" ]
vinguyen6@my.unt.edu
b545b08f626b6f368b161bd1c276b2f051c6ba2a
7724f908b73b446494503e58753797c79ea3b301
/dlclouds/util.py
221a9480322c9344d9337a60fd8db8e0284b4730
[ "Apache-2.0" ]
permissive
constantineg1/dlclouds
19500766fcff9dc85d1d5e4274e6b7be95f1a77b
d341b7387d3bc1a61de6df190480ae3550912b4f
refs/heads/master
2021-01-12T11:50:36.562456
2016-11-27T19:37:21
2016-11-27T19:37:21
70,155,545
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
import fnmatch import json import os import requests import shutil import stat def copytree(src, dst, symlinks=False, ignore=None): """ This is a contributed re-implementation of 'copytree' that should work with the exact same behavior on multiple platforms. """ if not os.path.exists(dst): ...
[ "constantine.gurnov@gmail.com" ]
constantine.gurnov@gmail.com
c3d115ed26b5945d42e7446b23761ab132d9b4cc
031c3088de602e4254c8050a1f354abc66bf512e
/MachineLearning/10lackingdata_encode.py
6dc6a9f11d1c5249ffed4371e94d081fad782708
[]
no_license
monado3/HAIT
8652cad9f0ee948d3313d05ee14c26aee4c573c6
ff7283891e6e7e73286ddf92622d1600a3053df4
refs/heads/master
2021-03-30T23:49:51.964063
2018-10-23T03:01:51
2018-10-23T03:01:51
124,752,616
0
0
null
null
null
null
UTF-8
Python
false
false
1,077
py
# In[] import numpy as np import pandas as pd from numpy import nan # In[] df = pd.DataFrame({'DATE': [20170801, 20170801, 20170802, 20170802, 20170803, 20170803, 20170803, 20170805, 20170805, 20170805], 'NECK': [41, nan, 38, 46, nan, 37, nan, 38, nan, 42], 'BODY': [84,...
[ "monade.kk@gmail.com" ]
monade.kk@gmail.com
be805a383b87ec9134e44f3e000e0493de9606f8
dbb6d52439b43fc658a50f2d7203dca7b7db1148
/final_project/helper.py
40a9b50a05d3a61634c4313d2db58702065f726c
[]
no_license
yhbyhb/data_analyst_nanodegree_p4
c10ed8b0916b24f4cf81e44512ec37dbf59f53f0
9291b422ca3dbc240aa5aef3fed22c8070e60f9b
refs/heads/master
2016-08-08T19:33:05.071681
2015-11-14T05:20:17
2015-11-14T05:20:17
45,790,363
0
0
null
null
null
null
UTF-8
Python
false
false
5,298
py
#!/usr/bin/python ''' helper functions for identifying person of interest ''' import sys import pickle sys.path.append("../tools/") from feature_format import featureFormat, targetFeatureSplit import numpy as np from sklearn.feature_selection import SelectKBest from sklearn.cross_validation import StratifiedShuf...
[ "hanbyul.yang@gmail.com" ]
hanbyul.yang@gmail.com
75064e292e05382e99850d607d597cfb30bde890
4617a711ecd6492f542323de88fdb01927c59480
/studentregformpro/studentregformpro/urls.py
d3e3c2c328b81a1e9a449907b92ece3386f9add2
[]
no_license
saikiranshiva/RemoteRepository3
309093a48533f04f81e0efbc64a5875744ebdbd5
e13dbc96a7d358a01cf8fc6fefcd906a5c639649
refs/heads/main
2023-02-15T21:52:01.256185
2021-01-04T10:46:03
2021-01-04T10:46:03
326,652,141
0
0
null
null
null
null
UTF-8
Python
false
false
835
py
"""studentregformpro URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') C...
[ "raju.alakuntla1998@gmail.com" ]
raju.alakuntla1998@gmail.com
fca9851130cffe0346df049170c360c93e6c1e25
d309e821ed80a17cc1636b88115e029f8439d290
/src/00_sly_tutor.py
468fae52c8a0fdd32f8bc974c264f0b820a48a40
[]
no_license
crhan/python_talk_2020
7e3ac026b0a1fe162d04577490b8ffff9a8a69d7
0d12bf83dac76ff8240c56abac434710c5b1740a
refs/heads/master
2022-04-11T13:58:44.391259
2020-03-29T03:39:21
2020-03-29T03:39:21
250,255,584
1
0
null
null
null
null
UTF-8
Python
false
false
1,684
py
#%% from sly import Lexer, Parser class CalcLexer(Lexer): tokens = { NAME, NUMBER } ignore = ' \t' literals = { '=', '+', '-', '*', '/', '(', ')' } # Tokens NAME = r'[a-zA-Z_][a-zA-Z0-9_]*' @_(r'\d+') def NUMBER(self, t): t.value = int(t.value) return t @_(r'\n+') ...
[ "crhan123@gmail.com" ]
crhan123@gmail.com
a29a8dcbda3a7cb7ffa0c956135c5200a9c3d9cf
b744dfea2f4fd754a0933d3c31992484a336ef00
/canny_edge_detection_in_opencv.py
93fcce82744dd0bfc97ce72180bbdf9e7213232d
[]
no_license
aman2575/Canny_edge_detection
3babb57c0c7f5d0c63f78cc67922f453d9d984ce
745b81261e236125ec9dd4230887691c40c1a4fe
refs/heads/main
2023-06-25T18:29:04.679132
2021-07-31T06:47:52
2021-07-31T06:47:52
391,277,423
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('image3.jpg', 0) canny = cv2.Canny(img, 100, 200) #Threshold1= 100 and Threshold2 =200 titles = ['image', 'canny'] images = [img, canny] for i in range(2): plt.subplot(1, 2, i+1), plt.imshow(images[i], 'gray') pl...
[ "noreply@github.com" ]
noreply@github.com
a321cdabdb97ccc86dbc1a71e6e74201cf0a7bc8
6bec22a47a19f933b73607d6b406006131364a20
/users/migrations/0001_initial.py
7869fe656b62c1aa52196479d5c35cb321e305aa
[]
no_license
codertjay/LMS
9ec2985d3c62e9c662aa9f8d5532da5d9dd60070
33c34ff1f8104b7ed4a8bf389ed24af96394b280
refs/heads/master
2023-09-03T12:56:18.535097
2021-05-27T20:48:19
2021-05-27T20:48:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,067
py
# Generated by Django 3.1.5 on 2021-01-29 10:22 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cour...
[ "codertjay@gmail.com" ]
codertjay@gmail.com
b7b7b5f1230aa89fc419396b380bb456bbb59f8a
7ead627866c85cf0c28ca8cd062b695c4ab849c3
/heatmapping_script/heatmapper.py
46ca451be402d32d5bba4a42dfe9fca0c79cfc5b
[]
no_license
dylanuys/MoocVisualization
a9e29bda067eef9600a9b0da75d70d5de225df98
79d32a732a70fd5e4443efc9da349e4086372bfd
refs/heads/master
2020-04-08T17:09:51.480765
2018-12-04T19:40:42
2018-12-04T19:40:42
159,554,092
1
0
null
null
null
null
UTF-8
Python
false
false
6,838
py
from heatmappy import Heatmapper from heatmappy import VideoHeatmapper from PIL import Image import numpy as np import argparse import os import sys import csv '' class ClickMapper(): def __init__(self, video_in_path, data_path, video_out_path, test_mode=False): ''' Class to add a heatmap to a vi...
[ "duys@ucsd.edu" ]
duys@ucsd.edu
58e3f57af71f1bca86917ea9775c7ebf04546a90
a34256f1590ccac077bb7c29601cf28b8bcc7fb1
/portfolio/views.py
872ae7f78e8700d9491fcc90dee6349083a825a0
[]
no_license
silverwing2003/django3-personal-portfolio
7ba28b678875ba24ca0efab5349bfd00a5b6fab7
fff4a06e4d1a9c00d8c79c8545c093d51e29d5c7
refs/heads/master
2022-12-16T17:17:42.700560
2020-04-04T20:12:29
2020-04-04T20:12:29
252,366,277
0
0
null
2022-12-08T03:59:10
2020-04-02T05:44:37
Python
UTF-8
Python
false
false
248
py
from django.shortcuts import render from .models import Project # Create your views here. def home(request): projects = Project.objects.all() #database project objects return render(request, 'portfolio/home.html', {'projects':projects})
[ "nsuguitan@gmail.com" ]
nsuguitan@gmail.com
5b47d39363b966b6fd8208f0f5a184dedf934ca4
c9642233f1de71f1a61ae28c695c2d9228825156
/echecs_espoir/service/mahjong/models/hutype/two/siguiyi.py
63d95ac314dad7a3b187dc3c09ab0befe8eacee5
[ "AFL-3.0" ]
permissive
obespoir/echecs
d8314cffa85c8dce316d40e3e713615e9b237648
e4bb8be1d360b6c568725aee4dfe4c037a855a49
refs/heads/master
2022-12-11T04:04:40.021535
2020-03-29T06:58:25
2020-03-29T06:58:25
249,185,889
16
9
null
null
null
null
UTF-8
Python
false
false
2,763
py
# coding=utf-8 import time from service.mahjong.models.hutype.basetype import BaseType from service.mahjong.constants.carddefine import CardType, CARD_SIZE from service.mahjong.models.card.hand_card import HandCard from service.mahjong.models.card.card import Card from service.mahjong.models.utils.cardanalyse import C...
[ "jamonhe1990@gmail.com" ]
jamonhe1990@gmail.com
66fd9ab589205e9cc3c65373bda895c4bf9ed452
9858acce5d06c2a8286837051d115055a519d916
/api/migrations/0001_initial.py
b5cbeeecb70da7fa35c87b9c5cb04b86579bf58d
[]
no_license
DUGASANI-ROJA/hotel
a553e71b3325aaa50273bb0a5fb119b7192bdaa4
3e741f79de202ee2a7e2c378ca93026caa5b664a
refs/heads/master
2022-12-22T09:56:34.575681
2020-09-13T16:19:38
2020-09-13T16:19:38
295,184,914
0
0
null
null
null
null
UTF-8
Python
false
false
1,622
py
# Generated by Django 2.2 on 2020-09-13 12:18 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
[ "rojareddyrosee@gmail.com" ]
rojareddyrosee@gmail.com
f4f3c5018852e7326cf49de99a2a20de72afe0c3
53bcd58b84ee7a6ec944d288a16bf54a843d045e
/setup.py
61551d0183e374a3a4086a3d4a3e87a8bd4c3099
[ "MIT" ]
permissive
ssi-dk/dash-scroll-up
7746831e129e80ffe41f8c05375863d838398c1d
297554a842592335b244b23a5392c32b99bace0b
refs/heads/master
2022-12-09T08:22:46.810866
2019-12-06T07:53:33
2019-12-06T07:53:33
139,981,313
1
0
MIT
2022-12-08T06:40:21
2018-07-06T12:21:13
Python
UTF-8
Python
false
false
362
py
from setuptools import setup exec (open('dash_scroll_up/version.py').read()) setup( name='dash_scroll_up', version=__version__, author='martinbaste', packages=['dash_scroll_up'], include_package_data=True, license='MIT', description='Dash component to add custom button to scroll to the top...
[ "martinbaste@gmail.com" ]
martinbaste@gmail.com
a2415b771f03b5097657f3584941194ed780f778
6f1609aac9e32f19975bcd50b4cff73abeab62de
/uygulama05.py
340316b37b712b9f195e9fc2c84004e5484dfa57
[]
no_license
meryemozdogan/Bby162
26c62411c4ef33544bcdd01f7a3307f42274b6da
3c8659272c68eb73eed495f4f9cab3061210e242
refs/heads/master
2021-09-14T16:55:39.778030
2018-05-16T08:29:33
2018-05-16T08:29:33
123,169,967
0
1
null
null
null
null
UTF-8
Python
false
false
771
py
print("Adam Asmaca Oyununa Hoşgeldin!\nToplam 5 hakkın var, bol şans.\n ") import random kalanHak = 5 i = 0 kelime = random.choice(['zeus','afrodit','athena','poseidon','hades']) harfHavuzu = [] for islem in kelime: harfHavuzu.append("_") print(harfHavuzu) while kalanHak > 0: yazılanHarf = input("...
[ "noreply@github.com" ]
noreply@github.com
19633deb63a2ad3fc7c6c4cf27556287f82554d9
ce705c1d18ecae07f4ecd4a2684301333560fbf6
/model/efficientnet.py
8050a446143135a3fcfbc9e1493bb0aacbcd4934
[]
no_license
tmlr-group/dsnet
2bf6ef2887a9c90803edc1a639385413965fa13c
3b6059a86c5c639dc3fdd79bed6b5edebc2c6b3b
refs/heads/main
2023-07-01T03:35:25.580396
2021-08-01T02:23:53
2021-08-01T02:23:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,566
py
import math import mlconfig import torch from torch import nn from collections import OrderedDict import numpy as np # from utils import count_parameters # from .utils import load_state_dict_from_url try: from torch.hub import load_state_dict_from_url except ImportError: from torch.utils.model_zoo import l...
[ "d12306@github.com" ]
d12306@github.com
fbf08d8efccfafb01a6d89254354da5728fc07a1
f89b72bc46005ccaaa0ac83609db2fbac9c89b94
/Day_5_49_Interactive_Coding_Exercise_Average_Height/__init__.py
5b445fec52afade23ea67bc43648e0a47c15a847
[]
no_license
swiftandquick/100-Days-of-Code-The-Complete-Python-Pro-Bootcamp-for-2021
3b27e744951ef58301efe9fb14af289013e3be6c
a47dbf9b0d3feab9529aab33b145f63756a4c507
refs/heads/master
2023-06-15T11:34:52.881130
2021-06-28T17:31:04
2021-06-28T17:31:04
381,111,792
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
# 🚨 Don't change the code below 👇 student_heights = input("Input a list of student heights ").split() for n in range(0, len(student_heights)): student_heights[n] = int(student_heights[n]) # 🚨 Don't change the code above 👆 #Write your code below this row 👇 # sum of the heights divide by number of entries give u...
[ "chenyMA16@gmail.com" ]
chenyMA16@gmail.com
56c2adbfffabb89ea6c69a685d01c01d8098d791
235de1014c7aa9b05ee3c9cce2e7557c6406f800
/Rationale_Analysis/experiments/hyperparam_search.py
d61afcd61a83d2afaa5a437ea45f96894e5a8e2c
[ "MIT" ]
permissive
yuvalpinter/rationale_analysis
b07336142e7de932238a3cc07c656e6616c0e717
2b25c6027d4459fc27e0f6793da6fee695e409a9
refs/heads/master
2020-09-11T08:16:15.031620
2019-11-17T23:25:11
2019-11-17T23:25:11
222,000,886
0
0
MIT
2019-11-15T20:48:41
2019-11-15T20:48:41
null
UTF-8
Python
false
false
1,617
py
import argparse import os import json import subprocess import hyperopt from hyperopt import hp import numpy as np np.exp = lambda x : 10**x parser = argparse.ArgumentParser() parser.add_argument("--exp-name", type=str, required=True) parser.add_argument("--search-space-file", type=str, required=True) parser.add_argu...
[ "successar@gmail.com" ]
successar@gmail.com
9125b313dd19c955c4e4c723fd0e6a63d05a1619
5aa3c9fb0a736fae3550e0d010f27bd974c66a06
/code/L05/catch/catch_Q_test.py
b654a0ffa0e65dca9ac18b7f071744cd4946b610
[]
no_license
rivkms/2019_omoc_ai
ffb691f8ba2716d1632aa9cf1ab0cf09401d4307
114d20a84bddc477488af6b97a1cfc5949852b11
refs/heads/main
2023-05-13T21:28:34.931488
2021-06-01T02:02:34
2021-06-01T02:02:34
371,994,669
0
0
null
null
null
null
UTF-8
Python
false
false
2,765
py
import os; os.environ['TF_CPP_MIN_LOG_LEVEL']='3' # disable TF logging import numpy as np from catch_MDP import MDP_transition, MDP_initial_state, num_actions, num_row, num_col import tkinter as tk import time as time # sleep for updating graphics num_states = (num_row-1) * num_col * (num_col-2) # 720 ############...
[ "kminsung030120@gmail.com" ]
kminsung030120@gmail.com
afc614636a168d512fd7a9da31c0dc42b2a9191f
afc4e63338fcb6538117ab2da3ebeb7b6d485399
/campoapp/cedis/urls.py
7b9a3a3c63a8bfbeeffb7c13b8791bc8046c038a
[]
no_license
alrvivas/cedis-erp
7531108ba4dd2212788cb6d108ccacdce42d4b37
aa7d3c5d844473b72786ee6168f9b3a71be349f2
refs/heads/master
2022-11-25T14:21:40.365438
2018-09-28T18:06:41
2018-09-28T18:06:41
146,667,529
0
0
null
2022-11-22T02:52:27
2018-08-29T22:52:30
JavaScript
UTF-8
Python
false
false
725
py
from django.conf.urls import url from django.urls import path,re_path from .views import ( CedisView, CedisCreation, RouteCedis, RouteCreation, ClientRoute, ) app_name = 'cedis' urlpatterns = [ path('', CedisView.as_view(), name='cedis'), re_path(r'^nuevo$', CedisCreation.as_view(), name='...
[ "alr.vivas@gmail.com" ]
alr.vivas@gmail.com
fcc48edcfdd4d1fc34b4b877308b372de722ad40
8eab8ab725c2132bb8d090cdb2d23a5f71945249
/virt/Lib/site-packages/win32comext/shell/demos/create_link.py
354561b7c50d6342a359a3c4e10a1c066bef399a
[ "MIT" ]
permissive
JoaoSevergnini/metalpy
6c88a413a82bc25edd9308b8490a76fae8dd76ca
c2d0098a309b6ce8c756ff840bfb53fb291747b6
refs/heads/main
2023-04-18T17:25:26.474485
2022-09-18T20:44:45
2022-09-18T20:44:45
474,773,752
3
1
MIT
2022-11-03T20:07:50
2022-03-27T22:21:01
Python
UTF-8
Python
false
false
2,329
py
# link.py # From a demo by Mark Hammond, corrupted by Mike Fletcher # (and re-corrupted by Mark Hammond :-) from win32com.shell import shell import pythoncom, os class PyShortcut: def __init__(self): self._base = pythoncom.CoCreateInstance( shell.CLSID_ShellLink, None, ...
[ "joao.a.severgnini@gmail.com" ]
joao.a.severgnini@gmail.com
be76c18f61aea5aa12cc8b9ac59cdf56e372a1f9
937246f0282edb3c9f16bd850c32a4ddad4e61b2
/segmentation/unet.py
af3786d0f6a073a21fb69e46ee9562bd4dabd9ca
[]
no_license
fibremint/cm-software_segmentation-predict
feaadb8ecf3e2ff1c6bba4b83102e417ed550a51
abaca533b82c48677611aec4b9153f7e377815d6
refs/heads/master
2022-10-06T08:50:05.547096
2021-01-08T02:39:02
2021-01-08T02:39:02
216,708,502
2
1
null
2022-09-23T22:50:12
2019-10-22T02:42:05
Python
UTF-8
Python
false
false
4,955
py
''' * @author [Zizhao Zhang] * @email [zizhao@cise.ufl.edu] * @create date 2017-05-25 02:21:13 * @modify date 2017-05-25 02:21:13 * @desc [description] ''' import tensorflow as tf from tensorflow import keras Model = keras.models.Model layers = keras.layers K = keras.backend def preprocess_input(x): with tf....
[ "fibremint@gmail.com" ]
fibremint@gmail.com
2bb0272ff16b5ec3b71d3beaad08ec031e12036a
37288344f906430f7ef44184df805f743de64667
/Django/urls.py
2537adf771137ae1ed5d734e774a43fe7875fe73
[]
no_license
LoreinZhong/Django
5db9c0997f1a4c7ac9cdd3921962b35b2956486a
e560d1ebc313068383bca39f5a9b6665f94694ba
refs/heads/master
2016-09-05T22:13:19.758778
2015-03-12T12:10:14
2015-03-12T12:10:14
32,072,743
0
0
null
null
null
null
UTF-8
Python
false
false
690
py
from django.conf.urls import patterns, include, url from django.contrib.auth.views import login,logout #from django.contrib import admin #from Django.view import time from atm import views urlpatterns = patterns('', # Examples: # url(r'^$', 'Django.views.home', name='home'), # url(r'^blog/', include('blog....
[ "laylarzhong@gmail.com" ]
laylarzhong@gmail.com
a06314802075fb526c385787fd3b9a881c27ea21
8a94ed3ae996f0c8e780dd78b91ad2269363575d
/midterm 2562-1/If1.py
0012654f6cb7136303978a226d73042bca8dceae
[]
no_license
thitimon171143/MyPython
30fd44d571005d5f979c34c7356cd755eead760f
d1be644a703e211f14c138179ab79890a7095ecd
refs/heads/master
2022-08-16T14:53:01.006440
2019-09-17T09:01:22
2019-09-17T09:01:22
192,525,122
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
score1 = int(input('First Test Score : ')) score2 = int(input('Second Test Score : ')) score3 = int(input('Third Test Score : ')) average = (score1+score2+score3)/3 print('Average = ',average) if average > 95: print('Congratulate')
[ "Python@Admins-iMac-5.local" ]
Python@Admins-iMac-5.local
0e7cfaaa195066b4e3e8173bb18b4e60539f1cf0
55ef03ff18712d052c3278f0bb81cad04ceec415
/tests/test_retrieve_octocat_list.py
5c41046097f54d8ef4e27d97f837f889c519b8f2
[]
no_license
Ethik-69/Flask_API
3fa41de59dee9f2c5afcb50cfa71c6865abffdf7
b0cfdd6fb33277e4ae04c73f173870e1cb144770
refs/heads/master
2021-02-18T11:33:29.321474
2020-03-05T14:58:36
2020-03-12T13:46:54
245,191,082
0
0
null
null
null
null
UTF-8
Python
false
false
5,386
py
"""Test cases for GET requests sent to the api.octocat_list API endpoint.""" from http import HTTPStatus from tests.util import ( ADMIN_EMAIL, login_user, create_octocat, retrieve_octocat_list, ) NAMES = [ "octocat1", "second_octocat", "octocat-thrice", "tetraWIDG", "PENTA-widg-GO...
[ "ethan.chamik.external@airbus.com" ]
ethan.chamik.external@airbus.com
097ffe889ecca6ba681f647340800b9ee5807fde
4f0d9dbbf1a870b661870ebb1f4ac2306e6e3802
/apps/main/models.py
ccc30a23e7cb0441f0aa491fb824e23c663e04a4
[]
no_license
ItEngine/ItEngine
a5d13af8ae6fc4ebcb4633d0e12e8e7e90a10c63
2932f31f33140b3e066d8108235398276500092e
refs/heads/master
2020-12-03T02:30:36.385719
2016-07-23T00:58:04
2016-07-23T00:58:04
45,215,270
1
0
null
null
null
null
UTF-8
Python
false
false
2,385
py
import datetime from flask import Blueprint from sqlalchemy import event from sqlalchemy.event import listens_for from werkzeug.security import generate_password_hash from app import db, login_manager class User(db.Model): """ Model User """ __tablename__ = 'Users' id = db.Column(db.Integer, pr...
[ "martinpeveri@gmail.com" ]
martinpeveri@gmail.com