blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
4c5d5afbe6cd8443c105488dc6448c1dd69437fc
758d2bc11c5512332fb18ce5ad46f715e1caf542
/Source/settings.py
09c1aa962cc8932092f29ecf5fc08828a182f878
[ "MIT" ]
permissive
j-t-burns/MI-ASS
b0cd610e79b6f84f84ea0a8ea48304f464847d9a
9f70a545521a55dc7af2e504617363bf47241646
refs/heads/master
2021-01-18T05:29:14.158255
2015-10-17T23:58:29
2015-10-17T23:58:29
35,896,106
0
2
null
null
null
null
UTF-8
Python
false
false
1,136
py
# This is a file with all settings and options that we have for the AnnotateCilitate program import multiprocessing Options = { 'Telomeres' : True, 'MDS' : True, 'Pointers' : True, 'TelomereEndLimit' : 100, 'TelomereLength' : 10, 'BlastMaskLowercase' : True, 'RoughBlastTask' : 'megablast', 'RoughBlastWordSize' : 28...
[ "denys.kukushkin@gmail.com" ]
denys.kukushkin@gmail.com
e3cfe05320b107334cd99f3c84823a5075d35ef2
469e966aae6a8074c5ecb852afb685ca0b49cbe2
/jerky_utils.py
ee6964f55b3100780bc8a827d0e22d0339c1282c
[]
no_license
bexcite/behavioral-cloning
975fa11c4f22cb56f1e2fa823b36673a2f868211
495bde8b64ea011d4c4515636749adb1440f62c9
refs/heads/master
2021-06-11T23:13:48.773509
2016-12-30T21:30:10
2016-12-30T21:30:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,887
py
''' Helper functions to remove sections from the datasets. Used for cleaning data from bad driving and narrowing experiments. ''' import os import numpy as np # Mapped Jerky sections that we need to remove - depends on dataset jerky_sections = {} jerky_sections['train1-complete'] = [ [0, 80], [295, 350], [429,...
[ "pavel.bashmakov@gmail.com" ]
pavel.bashmakov@gmail.com
f529b705500ce54a7c0dd741d3ceb9b2a35c1351
332cfcd2b68294fbc7e31b59d21810de3fb283c8
/week0/ProblemF3_Generate file with random integers/solution.py
d03bf3ea9c6b4a09b1b00138385ec06a8d6c6af1
[]
no_license
fyllmax/Programming101
6884b03422ac00710b6e9469ace43738934a5dff
e0d7bc23709bab11fa733a1be09bf2bf7eb9c623
refs/heads/master
2020-03-27T04:22:53.852489
2014-04-22T12:25:10
2014-04-22T12:25:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
from sys import argv, exit from random import randint def main(): if len(argv) < 3: exit("Error: Not enough arguments given!") file_name = argv[1] numbers = int(argv[2]) text_file = open(file_name, 'w+') for i in range(numbers): generated_numbers = (randint(1, numb...
[ "andi_77@abv.bg" ]
andi_77@abv.bg
d0270031a171711e6ed22a2fbe278cad17493cb2
bcbd4a074b79c747b08c941a1a83c774c1168778
/src/Models/Auxiliaries/Transitions.py
42ccd02fb65f33ec3a7feae7a20bde89e573fff2
[ "MIT" ]
permissive
goncaloasimoes/nps
f8c0eab55e4e089972371b2d42357b0bd9b6e636
77f766661229327df16bef1e6813152e02350459
refs/heads/main
2023-07-02T09:55:00.296050
2021-07-26T23:20:03
2021-07-26T23:20:03
389,460,857
1
0
null
null
null
null
UTF-8
Python
false
false
2,156
py
class Transitions: def __init__(self, transitions): self.pair_transitions = {} self.self_transitions = {} for key in transitions.keys(): # Pair Transition if len(key) == 2: initiator = key[0] receiver = key[1] if initi...
[ "goncalo.a.simoes@tecnico.ulisboa.pt" ]
goncalo.a.simoes@tecnico.ulisboa.pt
1fbf6e83617d19f5e3ae903b7b3c847b24814920
aeb3427be6a555e3335f43e54ec5b68497d8f779
/WindowsForm/visualization/visualization/bin/Debug/DataProcessing.py
1a0ca700a6092571ffe8d2936fc2d0bcd255df8c
[]
no_license
s410385015/VisualizationTest
4c78502644a0de994c128e2accf0dacf73fc29fb
aed2b7a023184d2d2bf3d503a8b8d2b672749878
refs/heads/master
2020-03-27T10:31:30.589033
2018-10-30T13:21:46
2018-10-30T13:21:46
146,426,081
0
0
null
null
null
null
UTF-8
Python
false
false
1,154
py
import csv path='D:\Plastics_and_Chemicals_Macro.csv' def main(): pass def ReadFromCSV(): f = open(path,'r') reader=csv.reader(f) l=next(reader) d=list() for row in reader: d.append(row) f.close() return l,d def HandleData(): label,data=ReadFromCSV() #delete the fi...
[ "s410385015@gmail.com" ]
s410385015@gmail.com
4081fa21664237ee4ce3433c17288f030e44006d
e9cfe55ce06842a27b251c1fb827ed71a7be5c0e
/filterCaptions.py
96eae61b4ba015423741cad3824bc814175a4469
[ "MIT" ]
permissive
chcaru/gcnet
eb0c0126e88d0f6b9799449dd34cc9a9dc2cff11
ecbf0089eb4e53e34483e876bf70076675ba1a3d
refs/heads/master
2020-06-18T05:03:41.626813
2016-11-29T05:18:39
2016-11-29T05:18:39
74,945,866
18
3
null
null
null
null
UTF-8
Python
false
false
5,372
py
import gc, math, sys, re, os import numpy as np from sets import Set from collections import Counter # The max resulting size of the vocabulary. # These are the top N most frequent words maxVocab = 6000 # % of words in a caption that must be int # the vocab before it is dropped (below quality threshold) captionQual...
[ "Chris Caruso" ]
Chris Caruso
9aaf935c5e687889d66a3560dfbfc3d661402d47
61223ebc4266db257480602b707195949607264b
/function.py
6bdbec4c26c4cf849b8df909bb7d62b5b0ca92fe
[ "MIT" ]
permissive
tqtrunghnvn/FixMatch-pytorch
311b930091d6197943cf17690dc99e0355114a11
b2a40c4dc1547ae5cf4b7fe28220f8b43d7d8363
refs/heads/master
2022-10-07T22:01:16.316743
2020-06-08T05:48:41
2020-06-08T05:48:41
264,972,120
1
0
MIT
2020-05-18T14:54:50
2020-05-18T14:54:49
null
UTF-8
Python
false
false
3,008
py
import os import random import numpy as np import torch import logging def cdist(x, y): ''' x, y: Tensor ''' return torch.sqrt(torch.sum((x-y)**2)) def cdists_slow(batch): ''' batch: the size of (N, M) N: number of images M: number of classes ''' N, M = batc...
[ "tranquangtrunghnvn@gmail.com" ]
tranquangtrunghnvn@gmail.com
c94bf0cccffed7e38591c260e94b27e2d3dfa261
9a6f1044fe904311c3aa601013324123904a152d
/ProjetoLojaVirtual/inventario/models.py
f937cdf7ff7dc9a091745a708b715ada965df86b
[]
no_license
ldmaia/ProjetoLojaVirtual
4a6b3f10e5e36dc431579a9aa75ee77b6fe7d573
07c5f80dc1d79e6a33b349773dcd013b6468b898
refs/heads/master
2022-12-10T17:20:15.805953
2019-04-04T06:52:01
2019-04-04T06:52:01
179,391,866
0
0
null
null
null
null
UTF-8
Python
false
false
1,436
py
from django.db import models from django.urls import reverse # Create your models here. class Inventory(models.Model): name = models.CharField('Nome', max_length=100) slug = models.SlugField('Identificador', max_length=100) created = models.DateTimeField('Criado em', auto_now_add=True) modified = mode...
[ "ldmaia92@hotmail.com" ]
ldmaia92@hotmail.com
96393a8b5f0fc74faa8c1fb00aaba8a7db75777c
e301a52127959e86cada66a1808cb7eb3aea72bd
/solutions/FrogJmp.py
ec9a8555ca90b7e61b9441565020b0d873d7b12f
[ "Apache-2.0" ]
permissive
PierreSp/Codility_Python_Solutions
59afbcdc596a6543d304cdd5a3e01b10e3cd86b9
471fadcdf7087be66b720b4a775fdc8c630d473f
refs/heads/master
2020-06-03T23:05:13.749053
2019-06-14T13:33:32
2019-06-14T13:33:32
191,768,481
1
0
null
null
null
null
UTF-8
Python
false
false
511
py
def solution(X, Y, D): """Calculates minimum amount of jumps from X to Y with jumps of length D :param X: Start position (int) :param Y: Target position (int) :param D: Jump length (int) :returns: Min number of jumps :rtype: Integer """ # write your code in Python 3.6 distance = Y ...
[ "pierre.springer@tum.de" ]
pierre.springer@tum.de
6e3877952188cded94c414eb37f6d19ebeb95534
5462142b5e72cb39bea5b802dd46f55357c4ea84
/test_pic/vmgirls/dl_vmgirls_pic.py
499ac3f8cef5a386fe97d91b59fd55f04f358de3
[]
no_license
qqmadeinchina/myhomeocde
a0996ba195020da9af32613d6d2822b049e515a0
291a30fac236feb75b47610c4d554392d7b30139
refs/heads/master
2023-03-23T05:28:53.076041
2020-08-24T08:39:00
2020-08-24T08:39:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,874
py
# -*- coding: utf-8 -*- # @time :2020/8/17 9:56 # @Author:老萝卜 # @file:dl_vmgirls_pic # @Software:%{PRODUICT_NAME} ''' 爬取https://www.vmgirls.com/所有图片 ''' import time import requests from lxml import etree import os import json basepath_picsave="e:\\temp\\pythontest\\vmgirls\\" headers={ "user-agent": "Mozi...
[ "newwxm@126.com" ]
newwxm@126.com
8114f87ea4d123ce369f1ad9b8352b6eaf865dbf
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03208/s325634445.py
323b17ee4ad8a29bda1ed175bcbbe1278f12231d
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
def resolve(): n, k = map(int, input().split()) H_sort = list(sorted([int(input()) for _ in range(n)],reverse=True)) ans = 10**9 for i in range(n-k+1): ans = min(ans, H_sort[i]-H_sort[i+k-1]) print(ans) resolve()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
64a803604b6d762457fbc84462c8185a3f0425aa
7a42d40a351824464a3c78dc0c3e78bbd8e0a92f
/bigdog_blog/manage.py
f00bf03a35f34d705c8b341ce90fdc096c01ada7
[]
no_license
AhMay/DerekBlogLearn
6595063eafbc237b932e187b5cb3ad8ff32637fc
fdd5ea2fc5732cdc82ad006f7be0a2a1f30d0ba9
refs/heads/master
2020-07-09T05:20:33.283672
2019-09-29T10:10:23
2019-09-29T10:10:23
203,891,215
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bigdog_blog.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Im...
[ "meizi111082@hotmail.com" ]
meizi111082@hotmail.com
e1082ff198d8db3adc6e0116f59b00b93f5df628
c757d89396a933f057b2bf3a3066797be0e1ff9e
/programa/programa/wsgi.py
9d92066ebfee985a1fe4b50c0ec58f157ec8453b
[]
no_license
brian0496/DJANGO
968136d776de4897f8854794fc4ecb993a45b048
d796963d41f4e1e2c84cb7273a47d55fb65cd9ec
refs/heads/main
2023-07-15T19:22:41.111750
2021-08-02T19:59:06
2021-08-02T19:59:06
392,070,396
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" WSGI config for programa project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
[ "83350243+brian0496@users.noreply.github.com" ]
83350243+brian0496@users.noreply.github.com
ed8e36a1482266337850c9cd2a65b88a5bdb33e3
793cb34cbaf74f48fb495125abc5af1d588bbe51
/examples/mujoco/tools.py
19943882e21c5aee53c28ff57b84119825a5a60d
[ "MIT" ]
permissive
thu-ml/tianshou
33cc2a2590309beef2815e812df80bd8fc40bbb1
600f4bbd555a1995ad5e2dc9ce74304de0941fcb
refs/heads/master
2023-09-04T11:19:10.017664
2023-08-25T21:40:56
2023-08-25T21:40:56
129,815,042
6,964
1,154
MIT
2023-09-05T21:34:24
2018-04-16T22:47:38
Python
UTF-8
Python
false
false
4,560
py
#!/usr/bin/env python3 import argparse import csv import os import re from collections import defaultdict import numpy as np import tqdm from tensorboard.backend.event_processing import event_accumulator def find_all_files(root_dir, pattern): """Find all files under root_dir according to relative pattern.""" ...
[ "noreply@github.com" ]
thu-ml.noreply@github.com
c400a4fb080e92bec33828e9cc29884d4747c74c
f7e6e874c979c18d049d73683a185d52194cd937
/sources/implementations/units/animals/AnimalsLair.py
153678b5b354daf288044f67170be7b122ccceee
[]
no_license
YouRockGarnov/AnotherMirror
fb4f9d9cb965e2770a619f6261b6a4c63a6279b8
bf67c965cfee438547b9a188a425ea7965b2379c
refs/heads/master
2020-03-08T08:49:28.899608
2018-04-04T08:25:21
2018-04-04T08:25:21
128,031,494
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
from implementations.units.animals.AnimalsBreed import AnimalsBreed from implementations.units.animals.Animal import Animal from enum import Enum class AnimalsLair: # factory class STRENGTH(Enum): BABY_STRENGTH = 0.8 ADULT_STRENGTH = 1 LEADER_STRENGTH = 1.2 def __init__(self, breed: ...
[ "hamta@yandex.ru" ]
hamta@yandex.ru
cd2e8bb05fa338f68a4a77971b6ff1cbe8948808
fb0e552591c2fb82a0bc589c887dde601eea336c
/djangoproject/coreapp/decorators.py
b55dfda987966a4d0fec447c445914fe0ab5a8a0
[]
no_license
bsadd/meme-maker
be1cc2a5e8a084713b36b1056e18d7030f91bcc0
06279196a47242015d85d136c2ba4131a785e821
refs/heads/master
2023-01-20T13:24:38.019393
2020-09-03T09:17:54
2020-09-03T09:17:54
263,107,897
0
0
null
null
null
null
UTF-8
Python
false
false
622
py
from functools import wraps from django.core.exceptions import PermissionDenied def ajax_login_required(view): @wraps(view) def wrapper(request, *args, **kwargs): if not request.user.is_authenticated: raise PermissionDenied return view(request, *args, **kwargs) return wrapper ...
[ "subangkar.karmaker@gmail.com" ]
subangkar.karmaker@gmail.com
6f596f42acf015533f00de76f644cd10748b6d87
19ed452b9b734b0988cd5bcb949e965b332451d4
/klaytn-etl/klaytnetl/json_rpc_requests.py
8b855f35a94df1c958dd992b5f5a191d535311dc
[ "Apache-2.0" ]
permissive
jisunglim/docker-airflow
e1c6c82b293127097057e0f113beac8103f525c6
5ddb85c2129eb5533036f0dc6fcf665498a005ee
refs/heads/master
2021-03-14T08:02:37.285199
2020-04-10T04:22:21
2020-04-10T04:22:21
246,752,319
0
0
null
2020-03-12T05:36:26
2020-03-12T05:36:25
null
UTF-8
Python
false
false
2,904
py
# MIT License # # Copyright (c) 2018 Evgeny Medvedev, evge.medvedev@gmail.com # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # ...
[ "jensen.yap@groundx.xyz" ]
jensen.yap@groundx.xyz
b414054bd417e686ac8b5754f00297d08c5689c5
2a82b992b4f4399c6d41a8dd80b6a090edb5ec74
/restAPI.py
1a09b60e6887830e13020f2bc00ed83c9a75302e
[]
no_license
JasonRectorTech/Real_Estate_Python
392bb45fae0cb4631b585a3752c05ec1b1715d0f
35ecd6ece8278b3e517521deff7070066b3ac363
refs/heads/master
2020-04-10T11:28:54.468156
2019-01-02T19:01:33
2019-01-02T19:01:33
160,994,856
0
0
null
null
null
null
UTF-8
Python
false
false
5,093
py
from flask import Flask, jsonify, request import credentials import mysql.connector import traceback import sqlQueries #init Flask application application = Flask(__name__) #handling cors @application.after_request def after_request(response): response.headers.add('Access-Control-Allow-Origin', 'http://real-estate-...
[ "special43543@gmail.com" ]
special43543@gmail.com
ec9438306b6d904c30e1b551c9e6b8500cf64de2
32dd7d178526cb822a462f0682cce74315430aeb
/eventex/subscriptions/migrations/0004_auto_20170619_1924.py
fa01f454a10a04cf200c2737e2d828dbffb56c9b
[]
no_license
leonardocintra/course_django_eventex
fce8e9b0d5694ca1e23a5c32f4af35ba57773c5e
36f919d323bccf2d7271dd655268963151153b62
refs/heads/master
2023-02-12T19:00:40.725169
2021-01-12T04:44:52
2021-01-12T04:44:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
970
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-06-19 19:24 from __future__ import unicode_literals from django.db import migrations, models import eventex.subscriptions.validators class Migration(migrations.Migration): dependencies = [ ('subscriptions', '0003_auto_20170605_2203'), ] ...
[ "toguko@gmail.com" ]
toguko@gmail.com
4bda416be56a2633614710951ef6f707578f0668
8801eec4650286ab80e7fd3d555093352bafb5d5
/flaskblog/forms.py
8edef1a2a47982a22bd767c812ad707a67c0c61a
[]
no_license
ibrahimaltay/document-sharing
9c3b1803fb2de693bd3dffd91f9617736b2ccf02
5283f617f80c88f48ac96c1870acae569331b3ee
refs/heads/master
2022-12-16T20:25:37.871154
2020-09-19T22:31:35
2020-09-19T22:31:35
296,961,591
0
0
null
null
null
null
UTF-8
Python
false
false
3,092
py
from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed from flask_login import current_user from wtforms import StringField, PasswordField, SubmitField, BooleanField, TextAreaField from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError from flaskblog.models ...
[ "ibrahimaltay152@hotmail.com" ]
ibrahimaltay152@hotmail.com
4c37cfa9d7f322fb217de9bcf8b4bc5c7a1da3ac
5e1385521729efb8a5e90af19638dc43c2fadb88
/day02/p1.py
e471865cd0c47985422758a7e9772cdf8e28b778
[]
no_license
pwicks86/adventofcode2017
d8557f1496af0393b58e669f7f3c78a95565e871
11b5bd06ed900b857e726649c8ad2b8d619c2172
refs/heads/master
2021-08-30T16:17:15.609771
2017-12-18T15:59:21
2017-12-18T15:59:21
112,669,332
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
f = open('input.txt') lines = [] for l in f.readlines(): lines.append(map(int, l.split())) checksum = [] for l in lines: lsorted = sorted(l) checksum.append(abs(lsorted[0] - lsorted[-1])) print(sum(checksum))
[ "pwicks86@gmail.com" ]
pwicks86@gmail.com
a77e73006b4448942af52bf9235df27f8e98a948
f22d59ae1534838e2706da26214813b7d66ee482
/poll/polls/migrations/0001_initial.py
81a23fca941088807f15761c536a0b9b62c6e266
[]
no_license
s2krish/pollapp
c097e7bc8a53375fe59fc06631c51ada39f3ea0d
1d3199cadca5278c1535ee9252c79fc915ebc2b0
refs/heads/master
2020-03-27T13:01:14.120494
2018-08-29T11:19:23
2018-08-29T11:19:23
146,585,084
0
0
null
null
null
null
UTF-8
Python
false
false
1,211
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-08-29 10:34 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Create...
[ "krishna.sunuwar@gmail.com" ]
krishna.sunuwar@gmail.com
18dbce8db5ab987948f6a5c8624c7fca006bf3b9
61e3151fe0501f6aa93ef7f3ac9707395da14cd0
/voc_io.py
d3a210db197372ada4ac857d5a8b2dffa187ebe7
[]
no_license
mengruxing/voc-tools
70cf807a9a09464c570c5262e1719acb8b1970fe
1d5e0334b0f6ce95fd563d30bc04a46aef8c87e8
refs/heads/master
2020-06-26T08:27:57.927120
2019-07-30T06:14:58
2019-07-30T06:14:58
199,583,927
0
0
null
null
null
null
UTF-8
Python
false
false
8,247
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Author : mrx @Contact : mengruxing@gmail.com @Date : 2019/7/21 @Project : work_shop @File : voc_io.py @Desc : 生成和读取 voc 格式的 xml 文件 """ import os import re import codecs import logging from xml.etree import ElementTree from xml.etree.ElementTree...
[ "mengruxing@gmail.com" ]
mengruxing@gmail.com
a143fc16f6331dc078310d40e66a6ceb4909e318
acc9d729e0182b17023e9660457eed0e19f4f828
/test/test_token_resource.py
6855ae9531f7996b2e7633ed1cc0a9aede6033b2
[]
no_license
secuwave/nexpose_client
2f00907ef3ffea33c8e9f5cc2543e708f349de6c
5ceff219ae03cadb5407dc48d8858ffa56bb3463
refs/heads/master
2020-05-22T13:54:22.675479
2019-05-13T09:12:09
2019-05-13T09:12:09
186,369,310
0
0
null
null
null
null
UTF-8
Python
false
false
48,871
py
# coding: utf-8 """ InsightVM API # Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ...
[ "root@data-proc.openbase.co.kr" ]
root@data-proc.openbase.co.kr
a7bd0e5000e6bb063933f8431162d23505e600a2
11980553c9883a9711df02e2b7f0dadad67359c5
/tests/django2/mysite/wsgi.py
77f71eb3330749fd7f95158e640a9c45bc35a208
[]
permissive
praekeltfoundation/docker-django-bootstrap
44a1047e12edebb372768884f226fe73668c241a
d3fd6ef9788ab7ac0b9a70e91419cbc68aaf2f5a
refs/heads/develop
2023-07-23T20:05:55.581299
2023-07-18T12:10:59
2023-07-18T12:10:59
52,771,805
106
30
BSD-3-Clause
2023-07-20T07:07:32
2016-02-29T07:16:21
Python
UTF-8
Python
false
false
389
py
""" WSGI config for mysite project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
[ "jhewland@gmail.com" ]
jhewland@gmail.com
cb872b1a2e8169f5130c4fe9920303b6c07c540a
a84c2a94635ed719d355c5eb20fa4b143888ccc3
/controllers/user_controller.py
6fbbb062c7bb75b3dc31c7b6fc5a8b96fa6560df
[]
no_license
caothanhha9/graph_ui
de426449162a33908de5ee953474c00d088aac33
e146a66a4c4073b0e14cc913d9e4aa7ea430e138
refs/heads/master
2021-01-17T16:23:00.323084
2016-06-10T04:59:53
2016-06-10T04:59:53
60,820,706
0
0
null
null
null
null
UTF-8
Python
false
false
1,311
py
from knowledge_network.utility.service import gen_key class Login(object): def __init__(self): """ Create default values :return: """ self.status = False self.token = None self.default_id = 'xdm' self.default_pass = 'iloveyou' self.default_to...
[ "hacaothanh@admicro.vn" ]
hacaothanh@admicro.vn
90fc54f792f717fefdb9834a7e4301d4aa830df0
619651ff76c40873c7a8163ca865ff8957e9bf99
/LeetCode/16. 最接近的三数之和.py
bc7c83e0767a440eb244642f660945a5ce726574
[]
no_license
zjlyyq/algorithm009-class01
4a27f3dd55968b084deaebede36a4435e2013a52
43f6d47f947425d6c4904c826ea01be9a9b0566a
refs/heads/master
2022-11-21T19:04:47.727695
2020-07-26T14:11:41
2020-07-26T14:11:41
264,580,587
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
''' 思路一: 暴力枚举: 1. 先对数组升序排序 2. 枚举三数之和,大于target直接break(由于是升序,越往后越大不用判断了) 3. 在上述过程中记录下和target最接近的三数和 ''' import math class Solution: def threeSumClosest(self, nums: List[int], target: int) -> int: nums.sort() n = len(nums) nearvalue = 1 << 31 - 1 ans = 0 if nums[0] + nums[1] + n...
[ "jialuzhang0805@gmail.com" ]
jialuzhang0805@gmail.com
e1806f01b4c805b9c3859b27e923dd9dd0553b8d
45c9876f294a8f160fc8059bac31bcee2d2f4a9f
/visa/urls.py
9eb34d2b07eb11b7ec86ccc97f92ad4f6c95fa21
[]
no_license
xolmomin/visa
32f8c7e507e238fc7a621d9792337535d8da5c00
b088d1b999baf612a00953d351746bcc61cb50e9
refs/heads/master
2023-01-02T03:42:21.688320
2020-10-26T19:15:41
2020-10-26T19:15:41
307,476,444
2
0
null
null
null
null
UTF-8
Python
false
false
791
py
"""visa URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
[ "xolmomin@gmail.com" ]
xolmomin@gmail.com
78167c95383a13af58d15af1fb240076bb829358
8077979cde078adbe4a38816f287d2552c45bdc2
/mergeexcel/merge/views.py
5f16d4e0325d96ca028f22d86fc3ccb418581ca0
[]
no_license
bogeUser/excel_tools
bf13230a120a31f8a6cb933ad83eceda7ecad6a1
6506c251a9bc9db86c36696a12d23285e92cfe45
refs/heads/master
2020-03-30T08:00:19.775823
2018-09-30T15:52:13
2018-09-30T15:52:13
150,980,903
0
0
null
null
null
null
UTF-8
Python
false
false
4,073
py
import os from django.conf import settings from .utils import * from django.http import HttpResponse, StreamingHttpResponse, JsonResponse from django.shortcuts import render # Create your views here. #上传文件函数 def upload(req): #如果是post则处理上传的文件 if req.method == "POST": # 获得文件 f = req.FILES.getlist(...
[ "1632651707@qq.com" ]
1632651707@qq.com
eb053bc723f385233dc47b22364f966e03d3712c
6a75fbf5aa540842c07e48bb2c1b4d6aa819f02f
/venv/lib/python3.9/site-packages/google/cloud/vision_v1p4beta1/services/image_annotator/transports/grpc_asyncio.py
e42a03579624f84fb0bb9df8ef544940bd5d2087
[]
no_license
echigawa0921/vision-api
46e8f10afc95772592619093fc8699e9f4b61a89
1ae115e452e8e34a4264ab3cae281d1e3e2cc4cd
refs/heads/main
2023-06-18T05:05:51.174620
2021-07-11T14:14:22
2021-07-11T14:14:22
384,146,672
0
0
null
null
null
null
UTF-8
Python
false
false
17,494
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
[ "69971834+echigawa0921@users.noreply.github.com" ]
69971834+echigawa0921@users.noreply.github.com
f03ead6b04d45c647bbcd679325f762ba8667d82
5231237e46f661c825a2bebffe1cd03da05d3a13
/DoDoc_folder_printer.py
5ed661bf7996f422310e5e88a188efb3aebd2384
[]
no_license
peterdemin/DoDoc
40a0e073ebece65f620415896a5e91e172378b07
7d74e909222ca984628f31cc369ad11835d7d93e
refs/heads/master
2021-01-23T06:44:32.466473
2012-02-24T16:50:05
2012-02-24T16:50:05
3,476,905
1
0
null
null
null
null
UTF-8
Python
false
false
2,132
py
#!usr/bin/python # -*- coding: utf8 -*- encoding='utf8' '''утф-8''' import os from OpenOffice_document import * class Odt_printer(OpenOffice): def __init__(self): super(Odt_printer, self).__init__() def startPrinting(self, filename): frame = self.doc.getCurrentController().getFrame() ...
[ "deminpe@otd263" ]
deminpe@otd263
904b1dcf5a624c469500a1a77ca9757a80f1726b
e0832d35207eca2519ee50fdd83fb4737b47e9c5
/AtCoder/ABC145/A.py
f2b38d692d00e1e5d15c1986bcc638b6cc680dce
[]
no_license
soqutto/practice
f202f7f5ba17d2c98b8e8323ac22e541daac8dbf
fa9f4749d5862037416e7c229ed4fda544a16229
refs/heads/master
2023-05-02T07:46:10.885731
2021-05-21T05:44:00
2021-05-21T05:44:00
310,563,016
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
# -*- coding: utf-8 -*- import math # 半径1の円の面積 # 1 * pi # 半径rの円の面積 # r ^ 2 * pi # 半径rの円の面積は # 半径1の円の面積のr^2倍である. r = int(input()) print(r**2)
[ "me@sokutto.com" ]
me@sokutto.com
4787c40faa7bc23195b29472a10384a0f756d117
2be6e84bf811a18d97221c8a203e6df1b7bb791a
/PythonExercicios/ex13.py
eaab6795f33591778e437c7c1fc362ad07dbb6d4
[]
no_license
Lucasalsferreira/video_em_aula
6cf28091546f32125d234ab91f2a3203186338bf
e526066a15417ff2f5e29b4936758dd236d434e8
refs/heads/master
2022-12-23T03:37:26.209529
2020-09-23T11:04:06
2020-09-23T11:04:06
297,459,252
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
s = float(input('Qual o seu sálario: ')) a = s + (s * 15 / 100) print('O valor do seu salário com os 15% de aumento {:.2f}'.format(a))
[ "lucas_araujo.20@live.com" ]
lucas_araujo.20@live.com
4772ff7cf80ba0a1b49144b524c4918ac50fa36c
2a62d34c84b0c2957be73d6c9d18a3d741d31754
/src/loans/helper.py
a9d6a8fe2d6d1afcd140351b69cf782dd17d80eb
[]
no_license
OhioDataSolutions/web-backend
385df7c759d0b4cd95592075a8a729005a0146ae
aa179bc5f926024add3deed4451b43660c66c5cb
refs/heads/master
2023-02-12T15:06:29.439399
2021-01-09T17:06:44
2021-01-09T17:06:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,252
py
"""Helper file for loans""" from pypika import PostgreSQLQuery as Query, Table, Parameter import pypika.functions as ppfns from lbshared.pypika_funcs import Greatest import hashlib from . import models DELETED_LOANS_PERM = 'view_deleted_loans' """The name of the permission that gives a user permission to view ...
[ "noreply@github.com" ]
OhioDataSolutions.noreply@github.com
e0b9725b85f060765c87d3f90c763feba50b9bf3
6f1e5d5e8130608a2b8c112c5600c331347f953c
/src/bridge_sim/model/__init__.py
fa1f792967a10d2125531894d1611d717a032dbe
[ "MIT" ]
permissive
r-snijders/bridge-sim
ed95999385d04db2e6b115bf04f20f4115bd8f6c
20cbb956dc83b9b5e1779048a65b2ebd515f7fe6
refs/heads/master
2022-09-29T08:02:03.959097
2020-05-28T12:04:20
2020-05-28T12:04:20
267,316,873
0
0
MIT
2020-05-27T12:43:37
2020-05-27T12:43:37
null
UTF-8
Python
false
false
47,000
py
"""The core classes: Bridge, Config, PointLoad etc.""" import os from enum import Enum from itertools import chain from timeit import default_timer as timer from typing import List, Union, Tuple, Optional, Callable import numpy as np from matplotlib import cm as cm, colors as colors, pyplot as plt from scipy.interpol...
[ "barischrooneyj@protonmail.com" ]
barischrooneyj@protonmail.com
e2bd9a59636cfd0c2f76a1a4087cc2c5202b1935
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/216/usersdata/274/113966/submittedfiles/av2_p3_civil.py
d9f4bcefea50acc8b1dd920d630cdd854f8a3254
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
# -*- coding: utf-8 -*- import numpy as np L=int(input("Quantidade de Linhas: ")) C=L a=np.zeros((L,C)) x=int(input("Linhas: ")) y=int(input("Colunas: ")) for i in range(0,a.shape[0],1): for j in range(0,a.shape[1],1): a[i,j]=float(input("Valor da Linha: ")) soma1L=0 for i in range(x,C-y,1): soma1L=s...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
fe03327e97fff1983eaee4dd0427062b9d600377
05cda3ab89d001aef2ec19f2975fad9397c8dd0b
/experiments/sawyer/towel_classifier/conf.py
bec399b3897f8ecb885707dcf2e8c6335cc1ab37
[ "MIT" ]
permissive
dhl8282/visual_foresight
ddcc940ad542222d433ca269e37e4d5f747732ea
5e6205a85119c1dec4a39ba7e67d7c89e726a47c
refs/heads/master
2022-09-05T18:16:07.590072
2020-05-26T08:41:52
2020-05-26T08:41:52
266,988,765
0
0
MIT
2020-05-26T08:36:22
2020-05-26T08:36:22
null
UTF-8
Python
false
false
988
py
from visual_mpc.video_prediction.setup_predictor import setup_predictor from visual_mpc.video_prediction.vpred_model_interface import VPred_Model_Interface from video_prediction.models.savp_model import SAVPVideoPredictionModel import robonet modeldir = '/home/sudeep/Documents/video_prediction/pretrained_models/mixed...
[ "sdasari@berkeley.edu" ]
sdasari@berkeley.edu
c0f734b4bdb2f37fdd2a0c33372562496f0016ec
4cce482c0525d7a517595f2117bfae355b157477
/desafio096.py
7633b271eba55f98bd364ec06be712c42ffef31f
[]
no_license
Carlosfrancog/Scripts-Python
c179360fab7db20069bbc7017a6cab0a07f82b0c
f6f5829297710a76eafe86f8ff4ef4e521e4a793
refs/heads/main
2023-06-16T21:12:20.069556
2021-07-09T01:49:59
2021-07-09T01:49:59
384,291,591
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
print('====== DESAFIO 096 ======') def area(x, y): print('-'*40) print(f'''A largura é {x}m e o comprimento é {y}m portanto a área desse terreno é de {x*y} m²''') area(float(input('Digite a largura em metros: ')), float(input('Digite o comprimento em metros: ')))
[ "carlinhosebba123@gmail.com" ]
carlinhosebba123@gmail.com
7e0a4c94cc03b414ea57b6dfec9317df3a16b0a0
ea7f2abf791a12ad68862664b39c5b569efb4e27
/mysite/settings.py
d725f8d5ba29b4570250a5b24ad19ac06a0edf0c
[]
no_license
sparshchaudhary/DO-finHost
628759e377e618b24a566d970b531f4902ceeaad
7df5280121e298c461c759998549d064e43b956f
refs/heads/main
2022-12-28T23:56:03.622114
2020-10-09T15:53:02
2020-10-09T15:53:02
302,612,285
0
0
null
null
null
null
UTF-8
Python
false
false
3,372
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os from...
[ "paritoshsparsh@gmail.com" ]
paritoshsparsh@gmail.com
4cb16d359b699a10e4dea3a8609ef6aa1812ce3a
dfd95c1f541b1b8d8de3e9a99e9ce8308e9e2dcf
/rabbitbreedapi/rabbitbreedapi/wsgi.py
69fbee08e4ff7baec5ad47d7acfd4691583481d0
[]
no_license
seniorita-developer/django-rabbitbreeds-rest-api
b6f68fcd22f96914326375f2082528107b716388
5d337325c76b121b1bfc81ae26e2db0671b87194
refs/heads/master
2023-08-09T12:34:06.589911
2021-03-13T22:39:30
2021-03-13T22:39:30
262,061,173
0
0
null
2021-09-22T19:09:39
2020-05-07T13:41:37
JavaScript
UTF-8
Python
false
false
405
py
""" WSGI config for rabbitbreedapi project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANG...
[ "valeriia.zabkowska@gmail.com" ]
valeriia.zabkowska@gmail.com
76bdac5de824a62ecbd79d5265f6e4a71cfb0fb9
a890d21f8b06b18be4253e53ae1ca99d53fad8d1
/dissect.py
1d281a885b406674cf1b5b1c13310173bbc8f1b8
[]
no_license
mastupristi/memoryLayout
fe2e58e2fc3b11d38bac15d2a2f84e20c6f9d61c
6bf7c0a8e0069ceb9194456b5610662f0a11dfcf
refs/heads/master
2023-08-05T00:47:17.759264
2023-07-19T15:43:17
2023-07-19T15:43:17
257,404,761
5
1
null
2023-08-03T10:13:20
2020-04-20T21:11:15
Python
UTF-8
Python
false
false
3,771
py
#!/usr/bin/env python3 # is required that the GNU ARM toolchais is in PATH import argparse import sys from RegionRetriever import RegionRetriever from MetadataRetriever import MetadataRetriever class LineEmitter: def __init__(self, regionStringExtent=16, symbolStringExtent=40, csv=False): charactersForR...
[ "cialdi@gmail.com" ]
cialdi@gmail.com
273294c58b5523086e8ff42f3418e24ed11ae517
dd2f58d6d885289cf8c455b9d33d82d0bfcbd493
/journal_file.py
57f00207894dbd996533da64afea8d6dd33d0ce5
[]
no_license
emresn/sine_curve_generator_for_nx
3b6a6f8f5e8e0de42bd2d53123ac41c64074e742
1832b00295c3d2a250a47f4056caa49b42c1a4b8
refs/heads/master
2023-01-22T21:54:03.117984
2020-11-22T22:24:19
2020-11-22T22:24:19
315,127,816
0
0
null
null
null
null
UTF-8
Python
false
false
10,470
py
# NX 11.0.0.33 # Journal created by SinCurve Journal Generator for NX # import math import NXOpen import NXOpen.Features import NXOpen.GeometricUtilities import NXOpen.Preferences def main() : theSession = NXOpen.Session.GetSession() workPart = theSession.Parts.Work displayPart = theSession.Parts.Displ...
[ "esonmez357@gmail.com" ]
esonmez357@gmail.com
978f7af95d4e531ed067249293500f71b88e4310
f21e0479bb9f811be2383154c3643b0f29354be7
/lib/data/dataset.py
c8d6dd038cbec357d79472552368f05bd1db899d
[]
no_license
cokeSchlumpf/thesis--text-sumarization
ceb8861ea8a7fbecd553d756b6c3ed7bb6d10432
09f5dd4c02169b1120238d84dc64433737e7b8b7
refs/heads/master
2023-03-26T23:38:48.542816
2021-03-27T22:03:11
2021-03-27T22:03:11
323,384,132
0
0
null
null
null
null
UTF-8
Python
false
false
125
py
from pydantic import BaseModel class Dataset(BaseModel): id: str name: str language: str description: str
[ "michael.wellner@gmail.com" ]
michael.wellner@gmail.com
9d8c079179f285f75f1695a88d4e3807acf800c1
ced968634cb9c6ee4677cd747b02b0a656ba3221
/env/bin/easy_install
98cbe45bf86c8f2fafe9ddf8b0ac9682e7acd4e4
[]
no_license
veganna/hori
ad5c171fd0ea936f047cc375991e9f7a438df7ab
92e195d9844e08bd9c9cbbbb4d1e1e6eef738461
refs/heads/main
2023-09-02T05:53:50.756717
2021-11-07T18:12:09
2021-11-07T18:12:09
425,580,033
0
0
null
null
null
null
UTF-8
Python
false
false
244
#!/home/mainsite/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "root@vultr.guest" ]
root@vultr.guest
f25ea43254cfc51bed417f8fa0f96ef3c0c306be
ef561ee66e8550945a449d4acce616f9224434eb
/dataset.py
d5f0e3010442affed117392f6fb4e48fba065945
[]
no_license
cmax1018/genre-rator
995ebc547c13d95a198d43c9470d8d6a2bfa32ef
de4d7a04b696fa31ffc35696d45180d3842e207c
refs/heads/master
2022-12-30T19:41:55.803059
2020-10-01T23:11:05
2020-10-01T23:11:05
300,445,749
1
0
null
null
null
null
UTF-8
Python
false
false
1,977
py
import os import librosa import math import json DATASET_PATH = "genres" JSON_PATH = "data.json" SAMPLE_RATE = 22050 DURATION = 30 SAMPLES_PER_TRACK = SAMPLE_RATE * DURATION def save_mfcc(dataset_path, json_path, n_mfcc=13, n_fft=2048, hop_length=512, num_segments=5): #build dictionary to store data data = { ...
[ "cmax1018@gmail.com" ]
cmax1018@gmail.com
4191a07d0866f458056fcfa0ba8eb8a28f71667e
42862caf177ef92b4c289f219556ba4da34692f2
/43-oop-in.py
78333f93f0658076047911a87f111eaf2c636179
[]
no_license
w3cp/hukush-pakush
d3691c1e78db8f9b9f6f15d9bc1922d339a69cb5
2c5b96c2f180e8b1943da05b50197b16738a8d84
refs/heads/master
2021-01-10T01:36:11.873953
2016-01-28T02:48:47
2016-01-28T02:48:47
50,080,537
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
class Calculator: def set( self, first, second ): self.a = first self.b = second def add( self ): return self.a + self.b class NewCalculator( Calculator ): def multiply( self ): return self.a * self.b calc = NewCalculator() calc.set( 2, 3 ) print calc.multiply()
[ "jannat.books@gmail.com" ]
jannat.books@gmail.com
3814c9fa8ee783a4e7673e4446b3dd43435c865e
b2f808055ad24641b7b866d70d520f1232f33f6f
/Week_3/1_read.py
18f6fca6bcbf396c7d3d7d410ee432a2baba2515
[]
no_license
JayVer2/Python_openCV_Workshop
361d9a467c85baf88626fb3e03c30f1071a66b35
5bafd8123c266461ea8c524ff43b1dc63b571cd5
refs/heads/main
2023-08-10T16:12:57.360355
2021-09-12T05:29:34
2021-09-12T05:29:34
401,165,403
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
import cv2 as cv import numpy img = cv.imread('Images/stock-photo.jpg') cv.imshow('Stock Photo', img) capture = cv.VideoCapture('Images/fire.mp4') while True: isTrue,frame=capture.read() #show frame cv.imshow('',frame) #if the d key is pressed, kill screen if cv.waitKey(20) & 0xFF==ord('d'):...
[ "jver5037@uni.sydney.edu.au" ]
jver5037@uni.sydney.edu.au
1b52c2c3ffe41c8ab7b25027361501a0cca289be
d7fda884eda22406b364f6658ecdbaaf940e5c66
/func/Wordcloud.py
11dc2828e7561070b869e1a4d4574667be43ce4b
[]
no_license
seraph05230/Wordcloud
96715150e02fdf671a5d4c020d324dc3f9c874d9
b2eda65c846f2dd192fdb09c0dc5191f18ca7a74
refs/heads/master
2022-12-06T09:48:20.978646
2020-09-02T16:30:16
2020-09-02T16:30:16
292,337,358
0
0
null
null
null
null
UTF-8
Python
false
false
798
py
from wordcloud import WordCloud def Wordcloud(arg): with open('Top {} keyword.txt'.format(arg), 'r', encoding = 'utf-8') as file: datas = file.read() seg_list = datas.replace('\n', ' ') wc = WordCloud( background_color = 'black', #背景顏色 max_words = 200, #最大...
[ "endlesslove05230@gmail.com" ]
endlesslove05230@gmail.com
88ef0b98fb4afcc20cacebf64dc4d096901e441b
bd027b28f96e3191c7098ed5cc73c3d12b5cd88d
/depth-estimation/python/disparity2depth_calib.py
ab19e2e3fe456c9fe1b29190db47d0f72181a8a7
[]
no_license
joaovictorcfs/learnopencv
893d5be505ec0374ee51912748ef793b6ad5b874
94ad009bb189659bb76a9b0e526ea93b4ae5071a
refs/heads/master
2023-03-14T23:32:03.493002
2021-03-27T22:34:13
2021-03-27T22:34:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,290
py
import numpy as np import cv2 import matplotlib import matplotlib.pyplot as plt # Check for left and right camera IDs # These values can change depending on the system CamL_id = 2 # Camera ID for left camera CamR_id = 0 # Camera ID for right camera CamL= cv2.VideoCapture(CamL_id) CamR= cv2.VideoCapture(CamR_id) # ...
[ "noreply@github.com" ]
joaovictorcfs.noreply@github.com
00fd8f43ef3c1be530fe652d3726866583d2d0da
0c24fcbf802ed1881abdfbf14b867d4545237602
/students/y2336/laboratory_works/Sorokina Mariya/mysite/core/migrations/0003_attraction_image.py
279eae79239c358f95ab6d3c8a4029611ed1d1f6
[]
no_license
TonikX/ITMO_FSPO_Web_Django_2020
d435d2984778d668f6d04c86d78c991b3f390c1a
267141d6e4ee231ca689c8929f3db25fef15a5fd
refs/heads/master
2023-01-18T17:38:05.964240
2020-11-20T18:08:57
2020-11-20T18:08:57
245,081,715
2
139
null
2023-04-25T18:54:50
2020-03-05T05:59:54
Python
UTF-8
Python
false
false
395
py
# Generated by Django 3.0.5 on 2020-09-10 18:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0002_auto_20200910_1929'), ] operations = [ migrations.AddField( model_name='attraction', name='image', ...
[ "63239279+MariSorok@users.noreply.github.com" ]
63239279+MariSorok@users.noreply.github.com
f26896d45c1284b627b806fe97f62f1b741e4edb
70a6c77d3a5cd1fee91f5332ac6ef1a030693fe5
/Baekjoon/5585-거스름돈.py
25c4bc5830d12bca67a7e8d790b7d6f63f462bfa
[]
no_license
devplutus/Python3
2ab32c33e9f326d2bedb18a77bcff05585e7973f
0026c7a5c86c1dcc4685fdd922b94d6387e1752c
refs/heads/master
2020-07-11T02:55:00.629864
2019-10-24T06:13:21
2019-10-24T06:13:21
204,431,195
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
n = 1000 - int(input()) result = 0 _num = [500, 100, 50, 10, 5, 1] for i in range(len(_num)): result += n // _num[i] if n % _num[i] == 0: break else: n = n % _num[i] print(result)
[ "JungByeongMan@baggeunmin-ui-MacBookPro.local" ]
JungByeongMan@baggeunmin-ui-MacBookPro.local
98638a754497de4b925c7afe2cfe4613cca99f49
9c409d4a6ddef7fb924e93f382149e1b5507ba81
/v3/upg26.py
a990b532b49ab566e65c94f535c69c729558e5d1
[]
no_license
amaroka/KYH-Practice
ded21136418f6845931a611a3a048617faaa3ba2
8014afcbec08618fccd2b5acc338fff6a9f62623
refs/heads/master
2023-01-12T02:15:30.864185
2020-11-16T09:38:45
2020-11-16T09:38:45
291,672,334
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
#from pprint import pprint import requests film = input("Sök på en film: ") r = requests.get("http://www.omdbapi.com/", params={"t": film, "apikey": "9f6d550c"}) data = r.json() #Title Year Director #Actors #imdbRating #Awards #Runtime print("*** Resultat från OMDB! ***") print(f"{data['Title']} ({data['Year']}) r...
[ "daniel.yngve@student.kyh.se" ]
daniel.yngve@student.kyh.se
bdf93bfcb0c310da6292671da0b63c8f011fef5b
331409f6fc5639df4231b942e82c214e552b4c23
/organizaEvento/wsgi.py
0ea91946a1dd54ae116d81a2b68a20967a50d9e0
[]
no_license
LuanHB/Atividade01
6fe67acf4dfa0c48051ccb477f9c9fef43848dc7
68478033925f371a315512ef4eccf6c97b4c11cf
refs/heads/master
2020-03-07T15:48:10.760238
2018-03-31T19:25:20
2018-03-31T19:25:20
127,560,251
1
0
null
null
null
null
UTF-8
Python
false
false
405
py
""" WSGI config for organizaEvento project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANG...
[ "luan.hackbart@gmail.com" ]
luan.hackbart@gmail.com
78278e990a57092f2ec56732405baf87e7f9f84d
1fe8d4133981e53e88abf633046060b56fae883e
/venv/lib/python3.8/site-packages/tensorflow/python/layers/normalization.py
2ff79b4f2e9ffe0a6b49bfc40e106c0aa66daffd
[]
no_license
Akira331/flask-cifar10
6c49db8485038731ce67d23f0972b9574746c7a7
283e7a2867c77d4b6aba7aea9013bf241d35d76c
refs/heads/master
2023-06-14T16:35:06.384755
2021-07-05T14:09:15
2021-07-05T14:09:15
382,864,970
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:6ba7d44e910c3440fadfac158cda4aa0136a4447c84f005b7144e6cd9b29444d size 17101
[ "business030301@gmail.com" ]
business030301@gmail.com
85ae43871dcc3db57959c181396ab5c178961f2e
330285bea42e66b1975d62e2f4dd742d4c3ab360
/franka_moveit/scripts/create_demo_planning_scene.py
9916a164cc43bf4866b219c232f5d029ec8d94c9
[ "Apache-2.0" ]
permissive
justagist/franka_ros_interface
946182e0430d21a9c119470729d7ec5e96caa404
f1f3649a4b030a9191e0577d980680ec95afa6ab
refs/heads/master
2021-12-24T22:22:14.599033
2021-12-22T13:42:30
2021-12-22T13:42:30
199,485,892
130
51
Apache-2.0
2021-05-03T17:11:32
2019-07-29T16:07:08
Python
UTF-8
Python
false
false
3,226
py
#!/usr/bin/env python # /*************************************************************************** # # @package: franka_moveit # @metapackage: franka_ros_interface # @author: Saif Sidhik <sxs1412@bham.ac.uk> # # **************************************************************************/ # /*********************...
[ "saifksidhik@gmail.com" ]
saifksidhik@gmail.com
c9905c4f0826bb701e09958514299e45c73b5843
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/173/usersdata/265/86697/submittedfiles/moedas.py
a742b7f67e4b1843dcb579ac41fef535ec50768c
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
# -*- coding: utf-8 -*- a = int(input('digite o valor de a: ')) b = int(input('digite o valor de b: ')) c = int(input('digite o valor de c: ')) for qa in range (0,c,1): if (((c-(qa*a))%)b==0): print(qa) qb=(c-(qa*a))//b print(qb) break else: print('N')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
9b00852b273076dfd5b240a68081bbe544c1bafa
f06cac9dad8ae3da0640cd23a6f5e84ac9420dbd
/carcosa.py
594160b0919fbf2210c7ab0a3babe74e6b0c2409
[]
no_license
funkaoshi/carcosa
f060c66423ce2747b46fa911c1e00e873fb9d701
f2fbd7082caf032239cbfdc3cd362ca3af0daf49
refs/heads/master
2021-09-08T18:30:50.499485
2021-09-02T15:21:01
2021-09-02T15:21:01
7,251,850
2
0
null
null
null
null
UTF-8
Python
false
false
2,688
py
import random from flask import render_template, Flask import colour import dice import dinosaur import monster import settings import settlement import spawn import weapon import weird app = Flask(__name__) app.config.from_object(settings) def random_hex(): return "%02d%02d" % (dice.d(40), dice.d(40)) @app.r...
[ "ramanan@funkaoshi.com" ]
ramanan@funkaoshi.com
af9b32fe82f8d824bff595d6996da2de74b51b69
c4c7140f84673b8268bf25225120916cbd9515e1
/accounts/serializers.py
0bd5469f63f2901c69d6f1ec63eb9d41589a9687
[]
no_license
semyonich/edu
692f11da22102de7984f59b966a7a9cb4c53ec54
e91961ae45d781ed606481c5a0961de387c8824b
refs/heads/master
2020-12-02T21:01:23.944816
2017-08-06T17:17:43
2017-08-06T17:17:43
96,244,738
0
0
null
null
null
null
UTF-8
Python
false
false
1,634
py
from rest_framework import serializers from accounts.models import User from blog.models import Article from blog.serializers import ArticleSerializer class UserSerializer(serializers.ModelSerializer): likes_number = serializers.SerializerMethodField() articles = serializers.SerializerMethodField() def ...
[ "s.semenihin@gmail.com" ]
s.semenihin@gmail.com
fca8609d88669b97081aaea80299bdcffd7d7a2d
4555d586dc9cc8dd5cab58e4ab49b92c5405b9c4
/talkingdata/tuning_xgb_test_fe2.py
d78c9fe568e1b44eeee54847a7bea2952dbf07a0
[]
no_license
statchaitya/Kaggle
7704fcde90f2c953c9deaa7578653df8170d784d
012987027876f47b94e10cc9840283c2596ab7db
refs/heads/master
2021-01-25T14:03:22.568640
2019-10-18T23:32:23
2019-10-18T23:32:23
123,641,160
0
0
null
null
null
null
UTF-8
Python
false
false
14,192
py
# -*- coding: utf-8 -*- """ Created on Tue Apr 10 23:43:51 2018 @author: cgokh """ # -*- coding: utf-8 -*- """ Created on Tue Apr 10 13:26:41 2018 @author: cgokh """ #from sklearn.decomposition import PCA import gc import pandas as pd import numpy as np import lightgbm as lgb import xgboost as xgb from sklearn.cros...
[ "statchaitya@gmail.com" ]
statchaitya@gmail.com
f404474ad275a09ec62b37505c04bd7782010f35
8e8b6eb254e4d24cd94a2dc17db5507929d059c2
/python/craftassist/voxel_models/geoscorer/models.py
4e7e9a9fc046975e1dd449f620a97ca0869b9149
[ "MIT" ]
permissive
afree2004/craftassist
087a3d4dbb162c91b88ce30723ca320d15b7a0be
dff78e8773e3d907f6ea1a4623a2c0ade7185906
refs/heads/master
2020-12-21T13:45:37.276045
2020-01-17T14:18:09
2020-01-17T14:18:09
236,448,535
1
0
MIT
2020-01-27T08:38:53
2020-01-27T08:38:52
null
UTF-8
Python
false
false
17,761
py
""" Copyright (c) Facebook, Inc. and its affiliates. """ import argparse import torch import torch.optim as optim import torch.nn as nn import os import random import string from shutil import copyfile def conv3x3x3(in_planes, out_planes, stride=1, bias=True): """3x3x3 convolution with padding""" return nn.C...
[ "drotherm@fb.com" ]
drotherm@fb.com
e0e94e4d38d76f3390d1bccd9905611afc425cc0
692f9d0f891fa670c56d88b96312c8295fcf06b3
/olivemain/tests/core/full_node/full_sync/test_full_sync.py
a5dba0bbfdcc896e275950cd9f6b04545b81cccc
[ "Apache-2.0" ]
permissive
aisuyi065/Olive-blockchain
97302c1002eb140957fa57eb1932f683847b4d64
a4f5d48597af90343279597a81fd6441f4de9223
refs/heads/main
2023-06-30T04:41:09.882393
2021-08-07T03:53:27
2021-08-07T03:53:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,659
py
# flake8: noqa: F811, F401 import asyncio import logging import time from typing import List import pytest from olive.full_node.weight_proof import _validate_sub_epoch_summaries from olive.protocols import full_node_protocol from olive.types.blockchain_format.sub_epoch_summary import SubEpochSummary from olive.types....
[ "87711356+Olive-blockchain@users.noreply.github.com" ]
87711356+Olive-blockchain@users.noreply.github.com
ffbb923905cedb23748806a6e5a210f52377acc7
c42672aeac984ab3f57d840710e145f4e918ba01
/nasws/cnn/search_space/monodepth/analysis.py
872b130085e3b8170a5f7d4627a9b3fd1c6b5248
[ "MIT" ]
permissive
kcyu2014/nas-landmarkreg
00212b6015d1fef3e7198bfa596fa69a898167c2
a00c3619bf4042e446e1919087f0b09fe9fa3a65
refs/heads/main
2023-07-21T19:52:19.392719
2021-08-24T09:37:24
2021-08-24T09:37:24
350,368,390
10
0
null
null
null
null
UTF-8
Python
false
false
3,434
py
import os import glob from collections import defaultdict from monodepth.utils.reporter import tensorboard_check_tags, tensorboard_load_summary, count_parameters_in_MB_search from monodepth.utils.checkpointer import load_args from monodepth.models import MidasNet, MidasNetSearch from nni.nas.pytorch.fixed import FixedA...
[ "16794548+kcyu2014@users.noreply.github.com" ]
16794548+kcyu2014@users.noreply.github.com
1d7242ee228c3499a7daee0cb5dc3b945a4c01c4
66eefa859d8e28a1872acf0876bdfd1452fff05b
/RadioButtons.py
37c6ee279aff9b8d0b9ad0d61fad31379de1fd69
[]
no_license
Aravinda93/Python_KinterApp_application
e42fb4dd954953401e7bb9e03f95cf4f1ddaed5f
d45b26be589bcdc0151fb06186561cb6ac68a258
refs/heads/master
2022-06-04T23:52:16.104014
2020-05-03T08:50:00
2020-05-03T08:54:42
260,862,076
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
from tkinter import * from PIL import ImageTk, Image root = Tk() root.title('Radio Buttons') root.iconbitmap('./Icon_File.ico') #r = IntVar() #r.set('2') #Radiobutton(root,text='Option 1', variable=r, value=1, command= lambda: clicked(r.get())).pack() #Radiobutton(root,text='Option 2', variable=r, value=2, command= ...
[ "ABaliga@its.jnj.com" ]
ABaliga@its.jnj.com
c2173d4f6bb9c57954235c69d64e9d11d6ea7e15
c083798cc6d9a7d0df5ab5534a07f5e7fd915095
/Curso estadistica descriptiva/datos cuantitativos/boxplots_con_python.py
a017310c7c626376f78b0e16852e76421966e807
[ "MIT" ]
permissive
DarkShadow4/Python
2e26be4d4e8660a5bf7e6d0748379e70d41189c5
4cd94e0cf53ee06c9c31e9272572ca9656697c30
refs/heads/master
2021-07-07T19:01:35.596813
2020-08-19T17:51:06
2020-08-19T17:51:06
174,096,874
0
1
null
null
null
null
UTF-8
Python
false
false
899
py
import numpy as np import matplotlib.pyplot as plt np.random.seed(19990519) dist1 = 100*np.random.rand(50) dist2 = 50*np.random.rand(25) dist3 = 100+100*np.random.rand(10) dist4 = -100*np.random.rand(10) data = np.concatenate((dist1, dist2, dist3, dist4)) plt.boxplot(data) plt.boxplot(data, notch=True) # Boxplot ...
[ "exxericxx@gmail.com" ]
exxericxx@gmail.com
00868bf5c2508b4f24084132b710bd214998c056
524acbbc16eac0ef28da58ff9f79d02d7cadcf1b
/backend/shop_time/categories/views.py
be8c7d554b3cbf84338a20c5cf0a4fe64763644b
[]
no_license
ZandTree/art-shop
47eb6ed6f328157c852cef6e324e4be5ab3592f8
faa506fb62f845168b9874a720c0b62808245058
refs/heads/master
2023-06-01T06:40:28.755068
2021-06-18T23:53:57
2021-06-18T23:53:57
376,624,201
0
0
null
null
null
null
UTF-8
Python
false
false
1,802
py
from rest_framework.views import APIView from .models import Category from .serializer import CategorySerializer from rest_framework.permissions import AllowAny from rest_framework import status from rest_framework.response import Response class CategoryList(APIView): """ get all categories with tree structure"...
[ "diafox2015@gmail.com" ]
diafox2015@gmail.com
e8b5600959c1d3b58f0f27611d842e52ea095e4e
4b8cf3702215220b875556e3c3600990f17e44e5
/ctci/hackerrank_ctci_problems/ice_cream_two_sum.py
d739b117f48778223666961dd23fee8f71ad2e20
[]
no_license
celeritas17/practice-makes-perfect
8842795ab7cd397a8c916ed5ebec791970467656
600e65fbb30935f4fbd5e1951617ad4bf6e84755
refs/heads/master
2020-07-29T13:33:21.276609
2016-11-21T07:10:22
2016-11-21T07:10:22
73,665,026
2
0
null
null
null
null
UTF-8
Python
false
false
392
py
t = int(input().strip()) for a0 in range(t): m = int(input().strip()) n = int(input().strip()) a = [int(x) for x in input().strip().split(' ')] cost_map = {} for index, cost in enumerate(a): if (m - cost) in cost_map: print('{0:d} {1:d}'.format(cost_map[m - cost] + 1, index ...
[ "ryan.koven@clicktripz.com" ]
ryan.koven@clicktripz.com
fba04c2e430f603715e62015d0f0dff369156857
4eff087e9d93b70f8c137ff28000aff30030fbd0
/OpenCV/Detect & Shot.py
66851939eb1aff4e267e11cbeae0e35c1bd1436f
[]
no_license
hatamiarash7/Python-Projects
3955fbc2653b6fac28498b7f3c3353e3ea533ef5
8de7a184d73666bcc9539ac710f54d79692de444
refs/heads/master
2022-07-27T04:22:34.039112
2022-05-25T06:43:53
2022-05-25T06:43:53
66,276,150
4
4
null
2022-05-05T13:23:15
2016-08-22T13:42:14
Python
UTF-8
Python
false
false
1,115
py
import cv2, math camera_port = 0 image_number = 0 ramp_frames = 30 frame = 0 cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') camera = cv2.VideoCapture(camera_port) def take_shot(): retval, im = camera.read() return im def snapshot(): global image_number, frame for i in xrange(ramp...
[ "hatamiarash7@gmail.com" ]
hatamiarash7@gmail.com
d116cf499ae6b5ea0e40f3a62ee8e3bcd94e6a5e
824f19d20cdfa26c607db1ff3cdc91f69509e590
/random/strings/345. Reverse Vowels of a String.py
88e11095e0c062114eea3783f47a5500cedfc1f9
[]
no_license
almamuncsit/LeetCode
01d7e32300eebf92ab54c983de6e183242b3c985
17aa340649574c37067ec170ceea8d9326be2d6a
refs/heads/master
2021-07-07T09:48:18.069020
2021-03-28T11:26:47
2021-03-28T11:26:47
230,956,634
4
0
null
null
null
null
UTF-8
Python
false
false
689
py
class Solution: def reverseVowels(self, s: str) -> str: s_list = list(s) vowels = set({'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'}) left = 0 right = len(s_list)-1 while right > left: if s_list[left] in vowels and s_list[right] in vowels: s_li...
[ "msarkar.cse@gmail.com" ]
msarkar.cse@gmail.com
429956eddb56a7394a8ae202690bba6666176a3c
451bc23c13bf5e4ea6894c5c388122396cb2266f
/06-Lessons/2/Activities/08-Evr_Itinerary/Solved/config.py
a45f08592bdc3a307e4e2d8d733fbfefb696f9e4
[]
no_license
junepwk/UCF-VIRT-DATA-PT-04-2021-U-B
92f54f5a13a9b48eec6e8ceca978bfa563ca6c39
30494d208a4af0ad6259056ffbf1c5f0009eb404
refs/heads/main
2023-07-17T23:21:33.939288
2021-09-02T00:55:08
2021-09-02T00:55:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
28
py
# Google API key g_key = ""
[ "43150545+wjosil@users.noreply.github.com" ]
43150545+wjosil@users.noreply.github.com
b96e448d5371d3490fb2925a38ecd17ddd7f10ef
55ea867594ea4a7de0148da49707179f22f62e38
/tags/annot-01-20-05/bin/gene_table.py
aaa0b48152afe673f5c34d1ee11cab1d59599173
[]
no_license
polyactis/annot
2120a1b717e0e8c211d8e7d4e83b6b91aa30b5f3
14ae017a68afa1afca2b96f848288fc3138361b1
refs/heads/master
2021-01-02T08:21:47.919049
2011-01-26T00:05:32
2011-01-26T00:05:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,579
py
#!/usr/bin/env python """ Usage: gene_table.py -k SCHEMA -g ORGANISM [OPTION] DATADIR Option: -z ..., --hostname=... the hostname, zhoudb(default) DATADIR is the directory containing all the datasets -d ..., --dbname=... the database name, graphdb(default) -k ..., --schema=... which schema in the database -g ...,...
[ "(no author)@4ebff559-900f-0410-a220-daa186eb8a63" ]
(no author)@4ebff559-900f-0410-a220-daa186eb8a63
fca18013fb07368f89be1b33993994ad6bf196ec
c9ff31d952ad987ac82252cd105bb469bf9ece8b
/email_bot2.py
b90d73bb290914c742cecd4b51679393e733c32a
[]
no_license
jasdevdevelopment912/email_bot
d8b05a13cff70733e5e79dbba09f27e67c3abda7
18f4777051a4f8e3116a26302f2e3094942f97fc
refs/heads/main
2023-07-24T03:42:49.715345
2021-09-07T06:13:17
2021-09-07T06:13:17
403,854,801
0
0
null
null
null
null
UTF-8
Python
false
false
1,311
py
import smtplib import speech_recognition as sr import pyttsx3 from email.message import EmailMessage listener = sr.Recognizer() engine = pyttsx3.init() def talk(text): engine.say(text) engine.runAndWait() def get_info(): try: with sr.Microphone() as source: print('listening...') ...
[ "noreply@github.com" ]
jasdevdevelopment912.noreply@github.com
37c2f232d97c06d15de91eb5e0f0b6de7178a0a7
2b864a4979078e66cb8da2fbd7a8583bcaa00815
/day_8/caser-cipher-3.py
85a240e72c3f44b33f8dcd5beb2d4fc382ced904
[]
no_license
yuvipatil007/python_new
e5bf2ab25b6f427a83ea6af1a40f4e4f7f924e09
25a4fdec6225134b1d756ff48356b48ee2b600b3
refs/heads/master
2023-08-22T21:43:45.207906
2021-10-06T19:50:46
2021-10-06T19:50:46
413,180,148
0
0
null
null
null
null
UTF-8
Python
false
false
1,733
py
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] direction = input("Type 'encode' to encrypt, ty...
[ "yuvipatil007@gmail.com" ]
yuvipatil007@gmail.com
1b88da6362b35e870c5a429dd1a976a8098479b0
69e5d9167378621a17514ef1f802365aef6f7baf
/kits19/src/config.py
116fca0562e8c07270d14c9559b29e4242763b21
[]
no_license
ylochman/ML-algorithms
beb0656e39a8aaa8ec68840236199bc35d7b02b5
3be362b35cfadbadd9d14e52dc28c6fce5ea3cc3
refs/heads/master
2023-05-22T18:29:46.788626
2020-03-25T05:40:58
2020-03-25T05:40:58
175,162,185
0
1
null
2021-06-15T11:30:50
2019-03-12T07:59:32
Jupyter Notebook
UTF-8
Python
false
false
221
py
import torch config = { 'CHECKPOINT': "unet.pth", 'LR': 0.001, 'L2': 0, 'DEBUG': False, 'CUDA': torch.cuda.is_available(), 'DEVICE': torch.device("cuda" if torch.cuda.is_available() else "cpu") }
[ "sasha.chepurnoii@gmail.com" ]
sasha.chepurnoii@gmail.com
68dccaff016d11cce153e1b9db7affab3c07bd9b
01ea95d7301b9ad3b84f11c8cbcfe02d00017250
/bin/until/echarts/Line.py
74f27f3640b6945c26b0de1fc9a04cfdff387304
[]
no_license
windyStreet/MQSTATIC
82962ae7a43d015dac61cb6ffce8d8853e6774df
b5a3d3862bd824b4a08b1c29436e417a9590dcab
refs/heads/master
2020-12-02T21:13:37.952192
2017-07-20T10:20:14
2017-07-20T10:20:14
96,275,208
0
0
null
null
null
null
UTF-8
Python
false
false
6,518
py
#!/usr/bin/env python # !-*- coding:utf-8 -*- import datetime from bin.until import Logger from bin.until import Time from bin.until import Mongo from bin.until import DBCODE from bin.until import Filter from bin.logic import BO from bin.until import Data L = Logger.getInstance() class Line(object): # search_fil...
[ "yq904276384@foxmail.com" ]
yq904276384@foxmail.com
daa5151ecdd0e6255246f351a7bd9fe8a6322de9
f323c22aa12212d2b32730fa435485dc66fafb7e
/bookseller/wsgi.py
aae45180e8fbb3ca91959823022aa61f5bda28b2
[]
no_license
xinleima/azure-app-service-demo
617b7519bd96e1607cbc75dc13fc2978b33d6942
c83c834db651831b8ea1c058e85aeaebb4d5ea47
refs/heads/master
2023-04-26T23:14:01.094517
2019-11-26T11:16:58
2019-11-26T11:16:58
224,163,169
0
0
null
2023-04-21T20:42:37
2019-11-26T10:22:20
HTML
UTF-8
Python
false
false
413
py
""" WSGI config for bookseller project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefau...
[ "1376260753@qq.com" ]
1376260753@qq.com
4442f06af05e88ccdffcc17cb294b3645525b836
29d1b8d1e01cda9c963b68074a4de18a67ef8c00
/home_work_12 (2).py
99d9ac6838eaff5c464b28f3ff3759fcacf019b8
[ "MIT" ]
permissive
acc-cosc-1336/cosc-1336-fall-2017-stevepaul135
fd515d3c7fdb75f408a045f4329efd6dfb783323
691cafe85cabd8f5829323fec77676d96c9225d4
refs/heads/master
2021-08-28T03:09:16.436604
2017-12-11T04:58:15
2017-12-11T04:58:15
103,597,729
0
0
null
null
null
null
UTF-8
Python
false
false
9,082
py
#Stephen Paul's 12th homework assignment class Person: def __init__(self, first_name, last_name): self.name = first_name + ' ' + last_name def displayPerson(self): print("This persons name is", self.name) class Student(Person): def __init__(self, student_id, firs...
[ "noreply@github.com" ]
acc-cosc-1336.noreply@github.com
d12baed8bb90fd2eb5fc8f373ff621f866f1a512
1f3bbec6cce4c8d5388fdc978c61767112e286ef
/tests/unit/plugins/test_stackoverflow.py
8604d6cd69dc601600aed40a767d3be5c54c2ffd
[ "MIT" ]
permissive
igorsobreira/eizzek
615caae8c3a998084273e5b5d5743708d96bb95d
2144e859f56130cbfa05a2a6604d3255ac81dbbf
refs/heads/master
2021-01-02T23:14:03.834318
2010-09-21T04:25:07
2010-09-21T04:25:07
754,462
3
0
null
null
null
null
UTF-8
Python
false
false
6,219
py
import os.path import unittest from eizzek.plugins.stackoverflow import build_response, QuestionsParser, TaggedQuestionsParser from eizzek import registry, PluginResolver class RegexTestCase(unittest.TestCase): def setUp(self): # unregister the original plugin self.stackoverflow_regex, self.s...
[ "igor@igorsobreira.com" ]
igor@igorsobreira.com
de34a902c1cf0f225a3a4a48862d4adbda05a125
b628c03aeaa7f77c2044ed4f65b92ca68dd48f6c
/absoluteCLF/src/util.py
be1604da231b2f1af13036ed5161bcd25f19dd84
[ "MIT" ]
permissive
horoiwa/VisionML
75ff8907cd1fe7b4fcaafd8d9ad6687a7284fef7
95fa454a4c309f5e985dff1d067dd8341d260a3c
refs/heads/master
2020-08-31T22:20:22.618305
2019-11-02T15:20:20
2019-11-02T15:20:20
218,785,495
0
0
null
null
null
null
UTF-8
Python
false
false
1,398
py
import os import shutil def cleanup(mode='all'): folders = ['__dataset__', '__checkpoints__', 'image_test', 'config_test'] for folder in folders: if os.path.exists(folder): shutil.rmtree(folder) def folder_check(): if 'train' not in os.listdir('images'): raise...
[ "horoiwa195@gmail.com" ]
horoiwa195@gmail.com
90d6f660fc707b3274db7f0914067230d68bc7f1
cc3553618de66276b7bd72175c7f975cf073ce89
/Examples/scripts/binning_2.py
9446c4b4205c8d723bf4ca669713ebf34ba53ff7
[ "MIT" ]
permissive
brianpm/hacknostics
4c221cb1c2beafc759ee39dcafa143071dd4e7fe
a792eae6f50ef3efd4bea646bac82963d07c23a1
refs/heads/master
2022-08-07T06:42:33.019906
2022-06-22T23:11:22
2022-06-22T23:11:22
190,219,024
3
2
MIT
2020-02-21T04:34:35
2019-06-04T14:33:50
Jupyter Notebook
UTF-8
Python
false
false
5,013
py
;*************************************************************** ; binning_2.ncl ; ; Concepts illustrated: ; - Create an array that spans the desired area ; - Read data [ here, create bogus data] ; - Loop over data and count instances of occurence ; - Plot the data ; ;*******************************************...
[ "brianpm@ucar.edu" ]
brianpm@ucar.edu
34f47be9ef55d3d72a7abc700bc1d17d771fd10e
f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e
/scripts/client/gui/scaleform/daapi/view/meta/serverstatsmeta.py
4a28fbbfafb863429e1181c69015f9b805026cc8
[]
no_license
webiumsk/WOT0.10.0
4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b
a84f536c73f86d9e8fab559e97f88f99f2ad7e95
refs/heads/master
2021-01-09T21:55:00.662437
2015-10-23T20:46:45
2015-10-23T20:46:45
44,835,654
1
0
null
null
null
null
UTF-8
Python
false
false
1,339
py
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/ServerStatsMeta.py from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent class ServerStatsMeta(BaseDAAPIComponent): def getServers(self): self._printOverrideError('getServers') def relogin(self, id): ...
[ "info@webium.sk" ]
info@webium.sk
02a29652ff4002ff213de2e6753b4912bb85ea9e
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_392/ch4_2019_06_05_14_33_33_171155.py
cdcdf2b3d67996003e841afaca8af0a2d1c0ff25
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
def classifica_idade(x): if x <= 11: return'crianca' elif x >= 12 and x <= 17: return 'adolescente' else: return 'adulto'
[ "you@example.com" ]
you@example.com
10d9141cdba16b8dd41e1990f2c5db77784d943c
b5c64bde359a14e21b785b85fc26ae740044cba8
/uploads/settings.py
d77dafd24d517f42d1f2bcf538796b6a96aa77c2
[ "MIT" ]
permissive
werwlo/Horoskop
8ef6c739fed94282b1c39681db301e2f6871f468
361f448828d6d01b26be817fb82f7f793782d64d
refs/heads/master
2022-04-29T18:21:21.465464
2020-01-20T12:17:22
2020-01-20T12:17:22
222,987,759
0
1
MIT
2022-04-22T22:45:12
2019-11-20T17:07:08
HTML
UTF-8
Python
false
false
3,497
py
""" Django settings for uploads project. Generated by 'django-admin startproject' using Django 1.9.8. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ ...
[ "noreply@github.com" ]
werwlo.noreply@github.com
e7317c8785753725ec1d2975e007271c55247b94
179806a654a1fae15ee9af53d79d14874cd86ccc
/class/polymorphism.py
e7d3f29d45cbe956eeab5fec150bd05bb3bf14e6
[]
no_license
Suhaiz/first
6400cd26eb0e703482847133cf6bcf6fa0cb1df3
253f86cc5438b4d2963588f7e01d45ac068e1f0e
refs/heads/master
2020-11-29T20:02:51.519735
2019-12-26T06:21:04
2019-12-26T06:21:04
230,205,240
0
0
null
null
null
null
UTF-8
Python
false
false
647
py
# many forms...........same name different functionalities # # 1.method overloading # implements in the same class # so there will be two methods with the same name inside a class but different parameters # doesnt support directly in python # 2.memaththod overiding # inheritance is mandatory # class parent: # ...
[ "suhaizalikb@gmail.com" ]
suhaizalikb@gmail.com
01dd6b0b9583bab5ad28d39492df06c720c411a8
a85cbde1520cc5299eae7220a9739d948ce5dea1
/ERAN/tf_verify/deeppoly_nodes.py
1ae03b1fe9de2d44b3f74b958c22c2f40cf2eda5
[]
no_license
nikos-kekatos/SapoForNN
8c819f84604972cbebad771794205f80dc8b94c2
44a38cd36d442e7e555c2babc59dd91b8337a0ea
refs/heads/main
2023-01-20T05:20:08.185279
2020-11-30T09:11:19
2020-11-30T09:11:19
304,479,761
0
0
null
2020-10-16T00:34:25
2020-10-16T00:34:24
null
UTF-8
Python
false
false
24,862
py
''' @author: Adrian Hoffmann ''' import numpy as np from config import config, Device if config.device == Device.CPU: from fppoly import * else: from fppoly_gpu import * from elina_interval import * from elina_abstract0 import * from elina_manager import * from ai_milp import * from functools import reduce...
[ "pippia.eleonora@gmail.com" ]
pippia.eleonora@gmail.com
00b9b8a260c605b4020f1ce3da5e814c4811049e
45e00ebe0707c04711caba76d0199899eda4ab7b
/finallabexam.py
bc88cb8d0b344c589280c55c591ffc679263b318
[]
no_license
inwk6312winter2019/openbookfinal-kalpana-27
383039a1dd71087431406086e07f5ed6c4b8de50
fbfef714683b99ce9d2ad4d47f3a7f561fc6a039
refs/heads/master
2020-04-23T04:17:11.488759
2019-02-15T19:26:55
2019-02-15T19:26:55
170,903,404
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
fin = open("Book1.txt","r") fin1 = open("Book2.txt","r") fin2 = open("Book3.txt","r") def unique_words(task1): list1 = [] for line in task1: word = line.strip() word = word.split() list1.append(word) if word not in list1: list1.append(word) return list1 print(unique_words(fin)) print(...
[ "kalpana@dal.ca" ]
kalpana@dal.ca
8d14c06e58e1672981c98743bcf34772582e938e
f947eedcf7e9ab25d163608c87b3640f627eab63
/change_bit.py
876a472e0823ba5c1d6612611bef173e6990b0a2
[]
no_license
FRsparrow/python
1b6b6fcd8f3e46f94c68e9b96d3cf746c922e606
24ab8945bb8dd2d5c7bcb10532be440a0f14a348
refs/heads/master
2020-08-27T21:34:53.112323
2019-10-25T09:03:20
2019-10-25T09:03:20
217,494,209
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
s = input() length = len(s) print(length) for row in range(2,13): if length % row == 0: temp = "" col = int(length / row) for i in range(col): for j in range(i, length, col): temp += s[j] print(temp)
[ "noreply@github.com" ]
FRsparrow.noreply@github.com
d437ea75e960d5ce81adcf104535caa79226f268
50eb3e1604ee4ad27a592ab827dd5f4cfe85e608
/labelImg.py
638dd713e50c62d89626f41404bbe739e4b15d35
[ "MIT", "GPL-1.0-or-later" ]
permissive
Xuner1213/labelImg-1.8.2
a150825e0ecca76a34782f710ccdcd067ebdd20c
ce936dcfe17a5e8ae845f3a9b8718f239cf6e023
refs/heads/master
2022-07-21T01:34:32.685441
2019-08-31T14:24:39
2019-08-31T14:24:39
205,554,190
0
0
MIT
2022-07-06T20:14:55
2019-08-31T14:23:23
Python
UTF-8
Python
false
false
59,028
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import codecs import distutils.spawn import os.path import platform import re import sys import subprocess from functools import partial from collections import defaultdict # hello try: from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets i...
[ "1531002208@qq.com" ]
1531002208@qq.com
b1bf135e5fda6f5f89bcad4b6a5e4891984e99e2
e2d56728bf7cd4506367bedf58e6f9f33ffd74b8
/youTubePlaylistTime.py
1f7a259a3b8b0dcaa2ba1a44f785e327a8ef3fc2
[]
no_license
trilok01/youtubePlaylistTime
69b11e9fab0056b44599f6dfd7c0e2f19befb7ec
0b563bb4599fff846ba1bdd6978742292eaf03fb
refs/heads/main
2023-06-04T06:27:02.174236
2021-06-19T15:03:02
2021-06-19T15:03:02
378,438,009
0
0
null
null
null
null
UTF-8
Python
false
false
2,202
py
from selenium import webdriver from selenium.common.exceptions import NoSuchElementException import time PATH = 'C:\\Program Files (x86)\\chromedriver.exe' driver = webdriver.Chrome(PATH) time.sleep(5) playlistURL = input('\n\n\nEnter Youtube playlist URL: ') # Open playlist driver.get(playlistURL) tim...
[ "noreply@github.com" ]
trilok01.noreply@github.com
3726d7e50f4e7e01a69b4c4868584ae6e4ceac20
8fbcf2903d74c346bbf9e51b569db810a8f1a8fd
/detect-video-iou.py
155275bc80de153b02a1323ad030940070b1bb4f
[]
no_license
chanbunlee/UI-Demo-for-object-detection
a45ead288203b2b74cf66ecc68db102302bde369
22e70a2d4212f905ae2650af7c969b9cb020b0c2
refs/heads/main
2023-06-06T03:12:54.228920
2021-06-23T09:37:39
2021-06-23T09:37:39
379,546,663
0
0
null
null
null
null
UTF-8
Python
false
false
7,605
py
import argparse import os import shutil import time from pathlib import Path import cv2 import torch import torch.backends.cudnn as cudnn from numpy import random from models.experimental import attempt_load from utils.datasets import LoadStreams, LoadImages from utils.general import ( check_img_size, non_max_sup...
[ "chanbunlee@163.com" ]
chanbunlee@163.com
bfc18eaa66e8178ea1f6ceae0421145d57bb023a
8821970a489ea190ab7dd6a2da8f672681138543
/piston/web/__init__.py
acfc64d31c318a7da92d7c776160f900b4897930
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
grey580/piston
ab293d449728c9fbcc442adc0463135628548deb
5a3472517e2de14e75eb688cf9335b2c98c3e6f4
refs/heads/master
2021-01-09T05:35:52.587268
2017-02-02T09:37:50
2017-02-02T09:37:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,583
py
import re from ..utils import strfdelta, strfage from ..storage import configStorage as configStore from .app import app, socketio from ..steem import SteemConnector from . import views, assets import logging log = logging.getLogger(__name__) steem = SteemConnector().getSteem() __ALL__ = [ "app", "assets", ...
[ "mail@xeroc.org" ]
mail@xeroc.org
be8b3285716a1e4bdb01c378d9222a6232ea5d36
b803e175e8080ebf8b713b09f81925a6336a8443
/Word.py
fe21f15d0a189d1372eba36d42ef25ba307a4ca0
[]
no_license
NDudeck/MachineLearningTest
dd346fbe35ac080c791142c0e9ec00e67626268d
4d5f352a981a65b9de8b4e969ed4993a88b4369b
refs/heads/master
2022-04-02T21:45:41.101882
2020-02-06T16:16:32
2020-02-06T16:16:32
197,981,435
0
0
null
null
null
null
UTF-8
Python
false
false
2,033
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jul 12 11:26:16 2019 @author: ndudeck This script defines a function object. To construct a function object, it needs a lambda function to create. """ import numpy as np; #This does some math stuff easily class Word: #Any variable defined ...
[ "noreply@github.com" ]
NDudeck.noreply@github.com
34d6d85b02c3b8d0e8734802762acb51523c3fa1
b56c584ba04de13c7a05f6633893b318eb3fb19d
/课后作业/第五天作业/guoqijun/Chapter 12/scapy_ping_one_new.py
a64b040c34aa4916e5a8141ec9405dfbff24807a
[]
no_license
I318928/Python-Homework
42133f1291cc3da90293f994ae1a09dce618bdad
139b450f4bf2e4831688df80c12f43edcc00e468
refs/heads/master
2020-06-01T06:53:50.733061
2019-04-17T12:12:16
2019-04-17T12:12:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
#!/usr/bin/env python3 # -*- coding=utf-8 -*- from scapy.all import * def qytang_ping(ip): ping_pkt = IP(dst=ip) / ICMP() ping_result = sr1(ping_pkt, timeout=1, verbose=False) if ping_result: return ip, 1 else: return ip, 0 if __name__ == '__main__': result = qytang_ping('192.16...
[ "xiaoyang429670@gmail.com" ]
xiaoyang429670@gmail.com
14b05dbce16975b542d6409149a24a4079334f70
3b4f985759e44dc169134ae7dcee8e92747c4b01
/tests/tests_app/components/multi_node/test_trainer.py
249d7868652bb9800f69f27af8365d32b7063452
[ "Apache-2.0" ]
permissive
SkafteNicki/pytorch-lightning
4b09863bf222241ca7128d13df94ff60b71e50aa
7df627b43746a85aa87671bec3e6dada0d98b556
refs/heads/master
2023-07-15T21:20:02.468216
2023-05-04T08:12:33
2023-05-04T08:12:33
248,216,299
3
1
Apache-2.0
2023-07-10T02:40:24
2020-03-18T11:44:20
Python
UTF-8
Python
false
false
3,538
py
import os from copy import deepcopy from functools import partial from unittest import mock import pytest from lightning_utilities.core.imports import module_available from lightning_utilities.test.warning import no_warning_call import pytorch_lightning as pl from lightning.app.components.multi_node.trainer import _L...
[ "noreply@github.com" ]
SkafteNicki.noreply@github.com
7c0f8ef2e5e76dd512f4593f86eb29756a26e302
be6e1acc03149aee1ffbdaa315cf8b7d175fffe9
/event_log.py
6d347539f3034a82bf2d2298b62c74976e512faf
[ "MIT" ]
permissive
rebcabin/cartpoleplusplus
763c22d41fc6f13b01a1519da3b51de91cfd03f7
f986f495755369f571dcbb9a79d21680b916c0f4
refs/heads/master
2020-04-05T08:27:28.420983
2018-11-24T01:17:47
2018-11-24T01:17:47
156,716,591
0
0
MIT
2018-11-08T14:10:29
2018-11-08T14:10:28
null
UTF-8
Python
false
false
6,521
py
#!/usr/bin/env python import event_pb2 import gzip import matplotlib.pyplot as plt import numpy as np import StringIO import struct def rgb_to_png(rgb): """convert RGB data from render to png""" sio = StringIO.StringIO() plt.imsave(sio, rgb) return sio.getvalue() def png_to_rgb(png_bytes): """convert png (f...
[ "matthew.kelcey@gmail.com" ]
matthew.kelcey@gmail.com
2335ab5ef2d8e308ecae55994013a93003c46571
44d3091c8a93f49aebbdf2f9ffd2d81b44fbbaf9
/23_list_check/list_check.py
646ea04db8e24244e34bf88fb8ecb866cc37ac8e
[]
no_license
Tim-Birk/python-ds-practice
9d54d4f5fb601c55de5371cbc83b7da696273758
9990672cf52b8e4d7be7425dabbbc954909f2886
refs/heads/master
2023-02-05T07:58:09.969208
2020-12-28T15:53:57
2020-12-28T15:53:57
324,801,231
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
def list_check(lst): """Are all items in lst a list? >>> list_check([[1], [2, 3]]) True >>> list_check([[1], "nope"]) False """ return len([item for item in lst if type(item) == list]) == len(lst)
[ "timbirkmire@yahoo.com" ]
timbirkmire@yahoo.com
9c0f49814adb26d4b6bde24af40fb90845ccac80
d34da4a69ebef62d4b17b8b56f0eca72f0c021e4
/traffic_sign/subset_coco.py
4e117ea2e1cf5dff2b36cba086a24552a7c93498
[]
no_license
gy20073/aws
91c193e18a15ab4d20acf9d58078bda791b39c38
1d73ce215026b1baa91a359628c26edeb59a22ce
refs/heads/master
2020-03-19T03:55:24.406320
2019-10-12T05:35:30
2019-10-12T05:35:30
135,775,172
3
0
null
null
null
null
UTF-8
Python
false
false
1,296
py
import os # for each label file, check whether stop sign in it. # if do, then create new label file with only stop sign, in label dir, and add an entry of this image in the index file subset="train2014" label_path = "/scratch/yang/aws_data/coco/labels_bak/" + subset out_path = "/scratch/yang/aws_data/coco/labels/" + ...
[ "gy20073@gmail.com" ]
gy20073@gmail.com
2f032123bf187d3ba42c9136a45b41b4a8508e62
bdee85d47d4fcdca9fa70a75de6f4317a015c1f8
/dailyfresh/df_goods/apps.py
64c11b12d446edf6485ebc43170ad5da11180c46
[]
no_license
renjw234/django
ac8d6cdb7fe54bb9625ae5cdd07cd93e13a62135
5b25b9e754001697f6bc5043bbcf80c1c3201f66
refs/heads/master
2020-05-18T00:38:57.267327
2019-04-30T01:24:56
2019-04-30T01:24:56
184,068,295
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
from __future__ import unicode_literals from django.apps import AppConfig class DfGoodsConfig(AppConfig): name = 'df_goods'
[ "renjw234@126.com" ]
renjw234@126.com
44b7e6b025a9917ce35e63a322c922264b4455b4
5922398212b6e113f416a54d37c2765d7d119bb0
/python/O(1) Check Power of 2.py
d664954d5d2b872362cab07d682b5469322e34d5
[]
no_license
CrazyCoder4Carrot/lintcode
e777f73e1fdfe3b8abc9dbfc07d26602bf614151
33dcd7f0e2d9bee58840a3370837cb2db82de1eb
refs/heads/master
2021-01-09T20:38:59.813198
2017-01-16T22:34:26
2017-01-16T22:34:26
60,287,619
1
0
null
null
null
null
UTF-8
Python
false
false
218
py
class Solution: """ @param n: An integer @return: True or false """ def checkPowerOf2(self, n): # write your code here if n == 0: return False return n&(n-1) == 0
[ "liuzhenbang1988@gmail.com" ]
liuzhenbang1988@gmail.com
56da055426260d4e0c162b598de7480b3212e963
23a7baccb26c45c7c00da896d870ff0518c5fe75
/ex5.py
61f60c42b90dc5e2ac0cd85281071869a3427aea
[]
no_license
JMadamba/LPTHW
01f2fd5877972eb261c89e5b3d0289a9227ec1f3
63871ba1318d1ffffe65fdf13b4f2744140238bc
refs/heads/master
2021-05-09T08:45:22.005050
2018-01-29T15:36:05
2018-01-29T15:36:05
119,401,865
0
0
null
null
null
null
UTF-8
Python
false
false
547
py
name = 'Zed A.Shaw' age = 35 height = 74 weight = 180 eyes= 'Blue' teeth = 'White' hair = 'Brown' convert = height * 2.54 convertWeight = weight *2.20462 print "Let's talk about %s." % name print "He's %d centimeters tall." % convert print "He's %d kilograms heavy." % convertWeight print "Actually that's not too heav...
[ "Jmadamba@tonicdesign.com" ]
Jmadamba@tonicdesign.com
74c3ac8794131b67abc018da9e9b245ba196e45a
bd241c395589b147b12632821f74171aba313801
/tanimoto.py
816352b55a23164b390326b3894d200fda2ce12f
[]
no_license
timakin/dustbox
133e1babec854905d801650dd29273c26c1dcc1b
de87022c9b64139bf8dd37b111438a9ab27a49de
refs/heads/master
2021-01-17T04:21:58.961809
2015-04-28T12:23:58
2015-04-28T12:23:58
9,006,622
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Tanimoto係数。 A,Bという2つの集合のアイテムの類似度を示す。 # Cは共通集合を示している。クラスタリングされた集合の類似度を示している。 def tanimoto(a,b): c=[v for v in a if v in b] return float(len(c))/(len(a)+len(b)+len(c))
[ "timaki.st@gmail.com" ]
timaki.st@gmail.com