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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b4fa49cf355f09d1450eb1ca40682cf2d8d11acf | 125cd1609acc13b0f5d953b7ff0faed7c177eb81 | /hookah/migrations/0003_auto_20201229_0052.py | b02a0d09132405eacb7d5b309ba6239544158ce3 | [] | no_license | anibalvf/DjangoWeb | 6e0a7d356b691fec4a9200f2e645e66cbb57371a | 0aa3c6528e5d2bbc305b76faf0c2fca4b88801aa | refs/heads/main | 2023-02-06T19:25:39.520929 | 2020-12-30T05:16:50 | 2020-12-30T05:16:50 | 325,130,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.1.4 on 2020-12-28 23:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('hookah', '0002_company_tax_number'),
]
operations = [
migrations.AlterModelOptions(
name='company',
options={'ordering': ['-... | [
"33007157+anibalvf@users.noreply.github.com"
] | 33007157+anibalvf@users.noreply.github.com |
7cdac0289ed04736e9910a28e91eb9cdaa0cd0f4 | 74e999d3d92e339d78566bdead1bce2b72426cac | /ex014.py | d46a4e90d17c6a51d181fb74f3a7c08661b0bb12 | [] | no_license | xandaoudi/python-excercicios | 8c32b7b821692052ea09ed43959ae55896796d14 | a0db3957ca152d6d5f5cf0e17490d7662a208f7b | refs/heads/master | 2022-04-17T11:22:07.303316 | 2020-04-16T15:01:41 | 2020-04-16T15:01:41 | 255,937,618 | 1 | 0 | null | 2020-04-16T15:01:43 | 2020-04-15T14:12:16 | null | UTF-8 | Python | false | false | 287 | py | '''
c = float(input('Informe a temperatura em ºC: '))
f = ((9 * c) / 5) + 32
print('A temperatura de {} ºC corresponde a {} ªF'.format(c, f))
'''
c = float(input('Informe a temperatura em ºC: '))
f = 9 * c / 5 + 32
print('A temperatura de {} ºC corresponde a {} ºF'.format(c, f))
| [
"alexandrecostaoliv88@gmail.com"
] | alexandrecostaoliv88@gmail.com |
b53fb9567516569729de2c7e54c259ae8eb494da | c53480e8d0fa431a3ac90e713010fae44e8db1a8 | /maskara/gallery/migrations/0032_auto__add_spaceimage__add_spacevideo.py | 1aac354e39aa52798ab2f7e8a4931575710530ca | [] | no_license | batpad/gallerym | 6b5fd2e89ebade106e4c9f5c917c11791b156d08 | 3e1c17dc30b5b23ab40772b6b88c6d1f05393cf2 | refs/heads/master | 2016-09-06T11:36:02.461954 | 2014-10-10T07:48:49 | 2014-10-10T07:48:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,066 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'SpaceImage'
db.create_table('gallery_spaceimage', (
('id', self.gf('django.db.mo... | [
"b@pad.ma"
] | b@pad.ma |
c26ffb09a1356c9c9ceaa840c51d5db720aede9f | a9f670dcd205fcbeda273b3de367dcddbfe084e1 | /api/views.py | 02c7cf2f743cc60fbc17fc762b459e1f065d5b7a | [] | no_license | juli212/teamKyle | 46521633bcb6ca46d622e558d5cf47a6a9be7644 | ff6632055f94024f4584f385a2f7ac41e335e295 | refs/heads/master | 2020-03-25T12:04:13.560376 | 2018-08-06T17:38:18 | 2018-08-06T17:38:18 | 143,758,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | from rest_framework import viewsets, filters
from rest_framework.response import Response
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework.decorators import action
from django.views.decorators.csrf import csrf_exempt
from api.models import Location, Player, Schedule, Game, Attending
f... | [
"jjgiraldi@gmail.com"
] | jjgiraldi@gmail.com |
83dde2b826ec281476013ca779abb5abbedd1de5 | 1617a9a9c92146bcdac89b5efb1ef0d18408160b | /contlab7/31/solution.py | f68d9662c990a36c62a4e6b0cab797991dbca222 | [] | no_license | LitRidl/checker-content | 1b1329b4462b87731e0755ab33480ff063a94a00 | b5d0456c8d4d28db6e6022e272a95a385f253797 | refs/heads/master | 2023-08-17T18:08:07.377680 | 2018-02-04T11:16:34 | 2018-02-04T11:16:34 | 120,077,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
u'''
Составить алгоритм кодирования слова в латинском алфавите по Цезарю со сдвигом, равным 13 (см. шифр rot13).
Входное слово представляет собой последовательность малых латинских букв a-z.
последовательность малых латинских букв, полученная из исходной путём применения шифра... | [
"tutkarma@gmail.com"
] | tutkarma@gmail.com |
b1765af903660d0e87c9af07c6a93fb38abd8230 | 13c8ed4c7de9b521f071b67ebb78abd903b99a6b | /chokozainerrl/experiments/evaluator.py | 10bcff26991a6542b24c08bb4efb3f2fad6bc308 | [
"BSD-2-Clause"
] | permissive | chokozainer/chokozainerrl | 1c290c72b390825e6c7b7c69d01347af5145bf70 | 7745e307dba715f11887ccccce8cf1067ecfb99f | refs/heads/master | 2020-09-21T21:25:18.954837 | 2020-02-22T05:15:10 | 2020-02-22T05:15:10 | 224,937,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,877 | py | from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
from builtins import * # NOQA
from future import standard_library
standard_library.install_aliases() # NOQA
import logging
import multiprocessing as mp
import os
import... | [
"fgtohru@gmail.com"
] | fgtohru@gmail.com |
d053f1aa99c52c1d1d5d13ab8292f780896e0960 | 6e83ae69b7ab2d85fe38d56fa650c522f68a5183 | /packages/output.py | 42e1fa91c5898fc03ad7761b87b80c6c6f36d334 | [
"MIT"
] | permissive | DjangoFett/cloud-insight | d558887d0be5a892c7689fcffd7e18da8d551caa | 11443b189f230cb11c9aafebe810c8bcd8223fe2 | refs/heads/master | 2020-03-27T13:56:51.238695 | 2018-08-16T12:58:07 | 2018-08-16T12:58:07 | 138,950,332 | 0 | 0 | MIT | 2018-08-28T22:50:52 | 2018-06-28T01:19:42 | Python | UTF-8 | Python | false | false | 3,533 | py | #!/usr/bin/python
import plotly
import sys
from prettytable import PrettyTable
def main(app, services):
# IF OUTPUT IS ENABLED
if app.config.get_section_dict('output')['enabled']:
app.log.info('OUTPUT: Output enabled')
# IF OUTPUT TYPE IS HTML TABLE
if app.config.get_section_dict('... | [
"noreply@github.com"
] | noreply@github.com |
066e5664df0a50e956687b5f7e4c722d5ee4ec28 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/module_test1_20200420155724.py | ac696c9fa98c42a760ab8d2fbdbab7e551b5fc27 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | list_a = [1,2,7,4,5,6,3]
list_a.sort()
print(list_a) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
76b3398ecf893cdddd836905c143fddd1837f88e | 79cdea703899d0382e8dc2a5bc9cf173dc949774 | /ex19/ex19_3.py | 9a38bc0fceacaa2e710c5cb1d0f31c2c4a581542 | [] | no_license | stuckat1/Learn_Python_The_Hard_Way | e0a54b16e2499d9c7c211d08c868ee650964843a | 2e20cb099c01cef3027ecaabe02b191ae8ea78d7 | refs/heads/master | 2020-04-21T02:54:30.388514 | 2014-05-28T15:10:54 | 2014-05-28T15:10:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | def myfun( x, y) :
return x ** 2 + y
for i in range(5) :
for j in range(5) :
print "myfun(%d, %d) => %d" % (i,j,myfun(i,j))
| [
"keweima@yahoo.com"
] | keweima@yahoo.com |
6676eac5fc5e81f0c48ba54549b17c496bd677be | b26526afc67ffd03a8614b0ed910802552ea2b2c | /Day 3/D3Q1.py | c1f45fd79cf87573daac22fd895edbbf5b3817c5 | [] | no_license | rutujakardile1998/LetsUpgradePython-Basics | 01674dc45923e9b59a75cacbc1089eadbe999eb7 | 0025c0e530d56e8f6d21a1191b68184917a965f0 | refs/heads/master | 2022-12-15T01:20:20.803334 | 2020-09-13T14:15:41 | 2020-09-13T14:15:41 | 281,371,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | # Q1. Answer
n=10
sum=0
while (n>=0):
sum=sum+n
n=n-1
print("sum of n numbers",sum )
| [
"noreply@github.com"
] | noreply@github.com |
4bf36122eebd4758e10d0efe274b28c6a3a86784 | 70a22c904680f67e4f66e992ac7398101e3effb5 | /imports/BS_floorValue.py | b832ef36d9effd9161a268d33263fe31ae107043 | [] | no_license | git-rishabh/nlp-score | cfa5c125f03710f6faef7933d0ee1c167c844618 | 7cc7044929cf2bf788f3db8d711b567c74954f2c | refs/heads/master | 2021-09-04T19:14:43.099589 | 2018-01-21T15:57:40 | 2018-01-21T15:57:40 | 112,838,150 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | def binarySearch(list,x,low,high):
if len(list) == 0:
return -1
if(x <= list[low]):
return low;
if(x > list[high]):
return -1
mid = (low + high)/2
if(list[mid] == x):
return mid
elif(list[mid] < x):
if(mid + 1 <= high and x < list[mid+1]):
return mid + 1
else:
return ... | [
"noreply@github.com"
] | noreply@github.com |
0cbcf055710932035d5fe14bfe3ddb2cbcb85a59 | c1a6fbce1c5b084f9aec40a5761d542878a1d79a | /optimizer.py | c1172faf0100e9217c90784c3538ac4145ef9d19 | [
"MIT"
] | permissive | baucheng/sdu-face-alignment | 66376114d5cd873af576e66d9f5cd2c210947eb6 | b142e7ed4efdffd463bf32c7b95d14806ad6e033 | refs/heads/master | 2020-04-29T04:46:10.687089 | 2019-03-15T01:38:41 | 2019-03-15T01:38:41 | 175,858,127 | 1 | 0 | null | 2019-03-15T16:46:29 | 2019-03-15T16:46:29 | null | UTF-8 | Python | false | false | 2,348 | py | import mxnet as mx
import mxnet.optimizer as optimizer
from mxnet.ndarray import (NDArray, zeros, clip, sqrt, cast, maximum, abs as NDabs)
#from mxnet.ndarray import (sgd_update, sgd_mom_update, adam_update, rmsprop_update, rmspropalex_update,
# mp_sgd_update, mp_sgd_mom_update, square, ftrl_up... | [
"xcliu1893@gmail.com"
] | xcliu1893@gmail.com |
7344067b334837bae68914a740aef98b30cfc183 | e577343baa715fb3577bc8ac12e432496775de6f | /minja/core/func.py | 3a20325fde5f3caed7e1fad0b9b94a20bc98d4d7 | [] | no_license | bkzk/minja | f4ab000083ef0c1bb232eb83bd02453df00ba33b | 0195fc2015c16e5d7f0dbdbe4cc15c4b3cc553d4 | refs/heads/master | 2023-02-08T21:19:34.591209 | 2023-01-28T19:27:29 | 2023-01-28T19:27:29 | 199,888,584 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,560 | py | # --------------------------------------------------------------------------- #
# func.py
# --------------------------------------------------------------------------- #
import sys
import tempfile
import os
import errno
import os.path
import hashlib
from urllib2 import Request, urlopen, URLError, HTTPError
from pprint... | [
"admin@bkzk.net"
] | admin@bkzk.net |
ec110c3c60ec70bacc66f8684d7557de3dfa7d15 | 629dd4f412dd919dad07456d8cf22690e22acaae | /hippounit/scores/score_ZScore_PSPAttenuation.py | d35488b289d5a56def47bef3774a610dcc93d2cd | [] | permissive | KaliLab/hippounit | 0d79e249aa3a60ec8695057f9d6d6a648d7840ad | cff69c1046a3a2ce9ddc22d374c7b26f3b63bf6d | refs/heads/master | 2023-07-07T14:16:22.939565 | 2023-04-05T09:07:12 | 2023-04-05T09:07:12 | 113,314,551 | 2 | 10 | BSD-3-Clause | 2023-04-05T09:07:14 | 2017-12-06T12:39:06 | Python | UTF-8 | Python | false | false | 1,750 | py | from __future__ import division
from builtins import str
from builtins import range
from sciunit import Score
import numpy
from sciunit.utils import assert_dimensionless
import collections
class ZScore_PSPAttenuation(Score):
"""
Average of Z scores. A float indicating the average of standardized difference
... | [
"saraysari@gmail.com"
] | saraysari@gmail.com |
51fa2818f7e6c8201e3fe811869a83049bb9780c | 8a5b29fcd2915ae2d73b0240594b6e2ca8d5cee2 | /es21/config.py | 6e6007f2c70e5b8115301aa79a1759745db4162a | [] | no_license | Unviray/ES21 | 20e1ced8c47afaf97dcaaead30a3494f17b848c7 | c5b92454cfe99acee3f1f9984ed022ae37978151 | refs/heads/master | 2023-05-12T23:55:25.699128 | 2021-08-24T11:06:33 | 2021-08-24T11:06:33 | 260,291,886 | 2 | 1 | null | 2023-05-01T21:48:15 | 2020-04-30T18:47:30 | Python | UTF-8 | Python | false | false | 3,477 | py | """
es21.config
===========
Base Configuration of es21.
"""
from pathlib import Path
from datetime import date
from .const import month_name, month_short2long
from ._type import _int
class MonthBase(object):
"""
Dynamic class for working month
"""
MONTH_NAME = (
'jan',
'feb',
... | [
"unviray@gmail.com"
] | unviray@gmail.com |
d70c87e261956e3d381b2fac3f1dc1fe02bde460 | 5d304c6ec0f01edee73e3b612f84307060c0da54 | /add_two_numbers.py | d9649cba9d5f094e5a6a7c4bdc848c78665f5ec0 | [] | no_license | xartisan/leetcode-solutions-in-python | cfa06b9e02f7ec0446cf6b71df4ea46caa359adc | 7e3929a4b5bd0344f93373979c9d1acc4ae192a7 | refs/heads/master | 2020-03-14T17:10:07.957089 | 2018-07-29T10:11:01 | 2018-07-29T10:11:01 | 131,713,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x, next_node=None):
self.val = x
self.next = next_node
def __repr__(self):
rv = str(self.val)
if self.next is not None:
rv += ' -> ' + repr(self.next)
return rv
class Solution:
de... | [
"codeartisan@outlook.com"
] | codeartisan@outlook.com |
8df527d8514642a74412f0560138d7a67cdd2774 | fcf5109e14f717cf8fb392d3c03d3687d7f4b6bc | /luxbox_sender.py | d2c222572dd562bbfc04393085412a26963b55e8 | [] | no_license | luxboxio/rpi_luxbox | b14981fac1bc2736231c9f9106a0232f9944f304 | e02ce8b7e52fad49840d7ccb1f27b68f95aedac8 | refs/heads/master | 2021-01-12T12:00:51.893290 | 2016-11-01T18:26:54 | 2016-11-01T18:26:54 | 69,996,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | #!/usr/bin/python3
import socket
import time
import sys
UDP_IP = "192.168.10.255"
UDP_PORT = 11110
MESSAGE = """{
"light_id": "hackermap",
"name": "Hackermap",
"areas": [
{
"number": 0,
"name": "BackgroundLight",
"color_type": "rgb",
"supported_modes": "0",
"values": [
... | [
"noppelmax@googlemail.com"
] | noppelmax@googlemail.com |
1d7d09411e8e1745eeb4db330972104eba8afa79 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/WR5000/WR5000_Zp1000_HN100_mumu_cfg.py | 59e93042f1fff94bb505ee06a633c5fd7a303381 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 6,270 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/ThirteenTeV/WRToNuMuToMuMuJJ_MW-3400_MNu-1700_TuneCUETP8M1_13TeV-pythia8_cfg.py --fileout step1.root --m... | [
"saptaparna.bhattacharya@cern.ch"
] | saptaparna.bhattacharya@cern.ch |
2efbeedfb1feb7576a382150e2e2754a57d664e2 | 003372621424577306aff35de88f7366fcc4baa0 | /sa_tools_core/libs/qcloud/qcloudsdkbmeip/EipBmBindVpcIpRequest.py | 65b528a54cc4dd083a6ef835f2228e02f6de0ceb | [] | no_license | stoensin/sa-tools-core | ab28ca5f7a8d5703952db9e6554b104682507964 | c0faeef4de8ba677817384d88cb107ad2308c03e | refs/heads/master | 2020-07-11T06:59:33.224305 | 2019-08-22T07:36:46 | 2019-08-22T07:36:46 | 204,472,284 | 1 | 0 | null | 2019-08-26T12:36:18 | 2019-08-26T12:36:18 | null | UTF-8 | Python | false | false | 852 | py | # -*- coding: utf-8 -*-
from ..qcloudsdkcore.request import Request
class EipBmBindVpcIpRequest(Request):
def __init__(self):
super(EipBmBindVpcIpRequest, self).__init__(
'bmeip', 'qcloudcliV1', 'EipBmBindVpcIp', 'bmeip.api.qcloud.com')
def get_eipId(self):
return self.get_params... | [
"tclh123@gmail.com"
] | tclh123@gmail.com |
6a870a8186f0d1d115eb9c2e456458322618ccef | 7f9db0055a814352514848b74b17a68b0d3b2fc9 | /src/HyperoptObjective.py | d7156e496f5683fee3307d8d672a340e567b2f4a | [] | no_license | OmriKaduri/gbdt-meta-learning | 1635dd48c2bf3911080cfd67e143252fadc21379 | 079d4fc8e714078176561b31b822ebb00210af0e | refs/heads/master | 2022-12-13T21:27:11.889349 | 2020-09-20T15:39:45 | 2020-09-20T15:39:45 | 279,674,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | from sklearn.preprocessing import LabelEncoder
from hyperopt import STATUS_OK
from .metrics import evaluate_metrics
from sklearn.multiclass import OneVsRestClassifier
from timeit import default_timer as timer
class HyperoptObjective(object):
def __init__(self, x_train, y_train, x_test, y_test, model, const_param... | [
"kaduriomri@gmail.com"
] | kaduriomri@gmail.com |
8e4cf1ea8a3d50644e44b648e07e40b6eb0a5932 | 9f031e8e43a7d957108822b5ddf6faac84b64eb8 | /utils.py | f5656e139c4ef3b5d510adbf179d8a673fe4964f | [] | no_license | parth-shastri/ImprovedGANS | 8fad4b50063c0fb217d1d94af1595d8d5b2a4a6f | da022b26c3fb5728af0e7ca086bc2a7b6f503b70 | refs/heads/main | 2023-04-25T05:31:08.242605 | 2021-05-17T18:52:36 | 2021-05-17T18:52:36 | 368,286,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | import tensorflow as tf
from keras.layers import Layer
class MinibatchDiscriminator(Layer):
def __init__(self, kernel_shape):
super().__init__()
self.kernel_shape = kernel_shape # BxC in the paper
def build(self, input_shape):
self.batchT = self.add_weight(shape=(input_shap... | [
"noreply@github.com"
] | noreply@github.com |
55b7536a054de0a55848639515962924284c30e3 | 4dec0f934760ca69e40b62fa56b37a1aa3918b24 | /test/test_web_deface_utils.py | 418c9c67aa4f0448c4eb77b11bd8eeb6df758bdc | [
"MIT"
] | permissive | rejahrehim/SecureTea-Project | 28ebc89f27ed59e3845b8c82f9316108cda40a24 | 43dec187e5848b9ced8a6b4957b6e9028d4d43cd | refs/heads/master | 2020-03-27T12:36:21.779426 | 2019-09-02T16:01:55 | 2019-09-02T16:01:55 | 146,556,097 | 1 | 0 | MIT | 2018-08-29T06:35:54 | 2018-08-29T06:35:53 | null | UTF-8 | Python | false | false | 1,228 | py | # -*- coding: utf-8 -*-
import unittest
from securetea.lib.web_deface import utils
try:
# if python 3.x.x
from unittest.mock import patch
except ImportError: # python 2.x.x
from mock import patch
class TestUtils(unittest.TestCase):
"""
Test class for SecureTea Web Deface Utils.
"""
@patc... | [
"abhishek_official@hotmail.com"
] | abhishek_official@hotmail.com |
3bd3248d2c6bde2df7607b256dd029658457051f | aef69557d8960205a780e61b7c2dfbb1d7733449 | /Code/SarahBeth/tests.py | 7bbcce152ea94f86ce923360be692fa4a260987c | [] | no_license | sbtries/class_pandaaaa | 579d6be89a511bdc36b0ce8c95545b9b704a734a | bbf9c419a00879118a55c2c19e5b46b08af806bc | refs/heads/master | 2023-07-18T14:18:25.881333 | 2021-09-02T22:48:29 | 2021-09-02T22:48:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | # card1= input('what's your first card?')
# card2= input('what's your first card?')
# card3= input('what's your first card?')
cards2 = ['q', '1', '2']
| [
"sarahbtracy17@gmail.com"
] | sarahbtracy17@gmail.com |
f306abeb9943386980a9fab8052b64edeafd17a8 | c3395a4d46d0d8fc3e316d5b2c4ff5271bc8552d | /sweetsplusproject/sweetsplusproject/urls.py | c31ee451439958fae01e24cd6af92a8df31edc20 | [] | no_license | mderamus19/sweets-plus-backend-capstone | 38384fe89013d9224c85f0c2a6a07c30246d7932 | 3fe0b9af97c7828dfbbe316b42d1c8276d52f020 | refs/heads/master | 2023-04-27T03:00:24.684139 | 2019-11-08T12:29:51 | 2019-11-08T12:29:51 | 217,101,400 | 0 | 0 | null | 2023-04-21T20:38:49 | 2019-10-23T16:17:18 | Python | UTF-8 | Python | false | false | 934 | py | """sweetsplusproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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... | [
"mistyderamus@gmail.com"
] | mistyderamus@gmail.com |
633ad32619aa7ff4e3cb0b97af3e59685cf2a359 | 5d3a26f35eb9c074c43b90db2d1ff78a6c9198c2 | /Codes in book/PyJulia.py | 5c60c9dcc954860fcf62d4296ff69d3d63acbd41 | [] | no_license | asukaminato0721/PyOpenGL-Practise | 3585364a4f99c2e6252d7e71864b6c12431289ed | d065fd1b6f8a4944c1eb5225f934eca6bee856a2 | refs/heads/master | 2023-09-04T11:17:31.003716 | 2020-07-04T17:20:50 | 2020-07-04T17:20:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,298 | py | # PyJulia.py
# Plot a Julia set
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
from numpy import *
import sys
# Initalize screen dimensions and the screen origin
width = 400
height = 400
hcenter = 0.0
vcenter = 0.0
axrng = 1.5
hstep = 2*axrng/width
vstep = 2*axrng/height
... | [
"noreply@github.com"
] | noreply@github.com |
4e4f094620d381ce0326dcaeba12079f27824293 | 1f336720d4d79312ff11ea27be6e3eab5f7b142e | /1-dataviz/6-lin.py | 4a916be5889ba514096d941dcab9b453f6931287 | [] | no_license | marcusfreire0504/DataScienceDoZero-2 | df6a5db95083ec59085a8b8b9a8fcff15f7b5c06 | e4a208937f4a71aadd565517a2499d5578f2f16b | refs/heads/master | 2022-03-26T15:27:08.424602 | 2020-01-10T18:05:44 | 2020-01-10T18:05:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | import matplotlib.pyplot as plt
variance = [1,2,4,8,16,32,64,128,256]
bias_squared = [256,128,64,32,16,8,4,2,1]
total_error = [x + y for x,y in zip(variance,bias_squared)]
xs = [i for i, _ in enumerate(variance)]
#podemos fazer multiplas chamadas para plt.plot
#para mostrar multiplas series no mesmo grafico
plt.plot... | [
"nilberth@protonmail.com"
] | nilberth@protonmail.com |
3170717deab4907adb3968420a93b4be31911af6 | 303a4d41da8f2cd2000630ff30424d2875490e67 | /hotglycol/genangletarg.py | e3e3568faeabd27bb319e698874ecd591da9fe3c | [] | no_license | noobermin/sharks | beb1d3d6a593e8d62f3d7416697d4de1fe9558b1 | af87113781eb67af45a9c2f79b73b1512ae0a1fa | refs/heads/master | 2022-05-10T11:55:17.200591 | 2021-09-30T14:27:22 | 2021-09-30T14:27:22 | 19,997,024 | 0 | 2 | null | 2016-05-20T19:27:49 | 2014-05-20T20:49:16 | Common Lisp | UTF-8 | Python | false | false | 1,559 | py | #!/usr/bin/env python2
import numpy as np;
def mk45(dim=[-5e-4,5e-4,-5e-4,5e-4,],
N0=1.08e22,
width=0.5e-4,
dropcorners=False,):
xlim = dim[:2];
ylim = dim[2:];
def _corner(x,y,good):
ret = y < width/np.sqrt(2) + ylim[0] -(x-xlim[0])
ret|= y > -width/np.sqrt(2) + ... | [
"ngirmang.1@osu.edu"
] | ngirmang.1@osu.edu |
f91f6579324bac309cb6e4d1a8a4bdeb440f516a | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/l2/egrbytespart1h.py | 69cf9a1ee5ebf125e11163cd4ef07ba94c3b17cf | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 22,891 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
15e3e7fd280ed96ea086aab5efc0b2fc21e4b360 | a904c2fd006d6652d28af8eb8634d29d66d0024f | /net/PRESUBMIT.py | e82166c7b55e59fde047d70a83ff671f5f61f6a2 | [
"BSD-3-Clause"
] | permissive | esprehn/mojo | 1cba014abe08168509ebb202dd4b032f61f06713 | e50a99d5c5b046aa24a5415744f6661cb12a66c3 | refs/heads/master | 2020-12-01T13:05:42.886923 | 2014-10-30T22:23:04 | 2014-10-30T22:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Chromium presubmit script for src/net.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details on the presubmit ... | [
"jamesr@chromium.org"
] | jamesr@chromium.org |
35e94a777c8f8bc8a326cf67aab84070f19105e0 | e4dcd63ed6b66b2cc164e4a9667e163e9c40601c | /virtual/bin/confusable_homoglyphs | 8f58c52f317751308d6728b3aa7fd3e3d40eeb4d | [] | no_license | kepha-okari/tabler | 8e95803843f5fd9a8726e4ee85a57b48a77d2a2e | f682a77d581834151f723cdd2de2a37353369047 | refs/heads/master | 2022-12-22T21:52:45.879263 | 2018-07-18T15:45:52 | 2018-07-18T15:45:52 | 136,938,470 | 0 | 0 | null | 2022-12-08T00:59:12 | 2018-06-11T14:32:53 | Python | UTF-8 | Python | false | false | 269 | #!/home/rkepha/Documents/hir/timetabler/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from confusable_homoglyphs.cli import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(cli())
| [
"kephaokari@gmail.com"
] | kephaokari@gmail.com | |
849ba02554db2a936628594122273762a0249024 | 86e54486608ce85266b6768bb27635ebc9965f4e | /Cardinality Extension/2017-9-28-10-20-AM-cardinality-distinct count-test-1000000TPS-no_window_30mins/script_event_logger.py | 3e1fcaae0cac2f3556182f96ea606f688edc6293 | [] | no_license | ChamodDamitha/TestResults | 8f68e4ee906a4fd9eb5b4d6e92a6e7a1df17e51b | c75ed6cc01bd0d3a771ad87cc3085362ebdc0a61 | refs/heads/master | 2021-01-20T23:09:56.104492 | 2017-11-30T01:43:33 | 2017-11-30T01:43:33 | 101,841,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | csv_file = open("distinct_count.csv", "w")
csv_file.write("Distinct Count" + "\n")
def extractData(filepath):
log_file = open(filepath, "r")
log_file_content = log_file.readlines()
str = "";
for line in log_file_content:
line = line.strip()
if line == "" :
break
elif line[0:5] == "Even... | [
"chamod.14@cse.mrt.ac.lk"
] | chamod.14@cse.mrt.ac.lk |
162b7c7d54d7e54396254a83baab693ecdbb5587 | 213b022cb0a1feebb4c7074c09456cedbd28a025 | /trial.py | 7287577271df387bcfb7d340314ca76d9539b5cc | [] | no_license | LakshmiKumar23/OCR | f0c51e25eddef09c121f12a225c4ebdcac1f4abd | 12974eed81f3ae5dfd277265657d015fc51b6b3f | refs/heads/master | 2021-08-22T11:00:13.301679 | 2017-11-30T02:08:56 | 2017-11-30T02:08:56 | 112,550,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | from matplotlib import pyplot as plt
from skimage import io
from skimage.measure import label
from skimage.measure import regionprops
from skimage.measure import moments
from skimage.measure import moments_central
from skimage.measure import moments_normalized
from skimage.measure import moments_hu
import numpy as np
f... | [
"kumar.lakshmi1994@gmail.com"
] | kumar.lakshmi1994@gmail.com |
0e9bfbe6ff9cbd59f6d974a7fcdad2def28cc125 | 15010ed52a0465522a1f7bf29e274c2c46e4c4cc | /main.py | 4e10fc48e3c7d55895e045837207d53b9fe1b86f | [] | no_license | Roy-Ermers/watch | 9e324e3bb6c2f3dcbc076bf65d8d0f9d4b6d5a21 | be683295990c5f3127bb3b29aa91e6aeb8ea7821 | refs/heads/master | 2023-03-26T17:28:27.718799 | 2021-03-12T20:21:46 | 2021-03-12T20:21:46 | 327,652,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | import lvgl as lv
import drivers.display as display
import screens.clock_screen as clock
from drivers.watch import watch
from style import background
pages = [{
"x": 0,
"y": 0
}, {
"x": 0,
"y": -1
}, {
"x": -1,
"y": 0
}, {
"x": 1,
"y": 0
}, {
"x": 2,
"y": 0
}, {
"x": 0,
... | [
"dangergamesnl@gmail.com"
] | dangergamesnl@gmail.com |
dec13df906d40499c856aa48ae564cdbd2217e81 | 587028dea449eeadcbef35159c5f448a33755b69 | /jogo_damas_minimax/minimax.py | e85fa9f2c4abe760d4fad5ac2048f442e78943b9 | [] | no_license | cunhamurilo/universityworks | 1f017543eb09614f580a4889e489f55d77590081 | 9655b918c9e37635be4e278237b1330575a6d275 | refs/heads/master | 2022-12-04T22:35:47.383843 | 2020-08-18T10:55:15 | 2020-08-18T10:55:15 | 194,305,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,048 | py | import sys
from board import *
class Minimax:
ROW = 10
COL = 10
def __init__(self, boar, player):
self.board = boar
self.current_player = player
def move(self):
return self.max_value(self.board,self.current_player)
# minimiza a jogada do oponente
def min_value(self,board,player):
if self.terminal_te... | [
"murilocunha"
] | murilocunha |
d10efafe97295a51e6a6b2a9f58f1b17ba7bccb0 | de3b74961249985791c2fbccc4a3b723e9f2e186 | /NewTest/read_xml.py | bf83424b308adabcb316c493958ff624ff56f8c5 | [] | no_license | 5BF/NewTowin | 85f6a5e91f450ad587a93656ec42c0425e78f0be | b437d1292aef4c6d703b87a85f3523e2379d4a88 | refs/heads/master | 2021-09-06T00:53:17.637936 | 2018-02-01T03:29:38 | 2018-02-01T03:29:38 | 116,648,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import xml.dom.minidom
dom=xml.dom.minidom.parse('web.xml')
root=dom.documentElement
tagname=root.getElementsByTagName('maxid')
print(tagname[0].tagName)
tagname=root.getElementsByTagName('caption')
tagname2=dom.getElementsByTagName('caption')
print(tagname[1].tagName)
print(tagname[2].tagName)
print(tagname2[2].f... | [
"1083133642@qq.com"
] | 1083133642@qq.com |
e220e3c9fa395821a6498103e506c1d33acc8373 | 3f609fb40f1486dac6d4b099bead13ca23279b1b | /Python/rabbitssl_consume.py | 0bf8237e78cd4ec257b7d9babb25c8600721c133 | [
"Apache-2.0"
] | permissive | heidsoft/RabbitSSL | f1cb43a23835b217f89538b59736c1c8fd25ba77 | 1ff2b16104051b402127c35daec084329b2ae06d | refs/heads/master | 2020-03-23T10:21:15.740794 | 2017-12-05T11:54:45 | 2017-12-05T11:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | # Copyright 2017 Andreas Sekulski
#
# 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 writi... | [
"andreas.sekulski@gmail.com"
] | andreas.sekulski@gmail.com |
6e1089864a88e9728c0edc61da6a8df769c15bc2 | f3adc6b5635978e71f71823f23b64541c1246418 | /model/linear_response.py | 86d0f76c48b564caef31824b2a336d4ec019b7a6 | [] | no_license | RaushanCSBinghamton/DataIncubatorsection3 | 9ffc0473fe42b7c1759bc9fc085d8cb0a2874962 | 8810c6dd9cb7ae3205b63b34483677ce5d1286f5 | refs/heads/master | 2020-09-03T22:41:27.162312 | 2019-11-04T20:24:16 | 2019-11-04T20:24:16 | 219,588,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,356 | py | import numpy as np
import sys
import global_var
sys.path.append(global_var.project_path+"/model")
import getSamples as gs
from sklearn.metrics import mean_squared_error
from sklearn import linear_model
from preprocessing.fileprocessor import *
from preprocessing.preprocessor import *
from preprocessing.calculateError i... | [
"rrausha1@binghamton.edu"
] | rrausha1@binghamton.edu |
b5f12a0b6e7391d5bbb499c9a85a3a1ef63765bd | 0fe034739932f816f1b755738ed4a2752116c177 | /models.py | c214e3376805eddef9443c8ac43c99d29cba313a | [
"MIT"
] | permissive | sweetpotatoman/flask-restapi | b95336d055f4f6a5dd3e5803f18d19c86628b452 | 2e1edc84e71cb429e59b7121f254acbc892dfead | refs/heads/main | 2023-04-04T05:22:37.380511 | 2021-04-19T16:03:54 | 2021-04-19T16:03:54 | 350,644,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | from exts import db
from passlib.apps import custom_app_context as pwd_context
class Category(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(10))
class Foo(db.Model):
__tablename__ = 'foo'
id = db.Column(db.INTEGER, primary_key=True, autoincrement=True)
name = d... | [
"851951875@qq.com"
] | 851951875@qq.com |
3a7bdda39741debb75955c2f59f63452671e3ca7 | a0adf2e7fa8d7d9c79aee50b7e99ed77d291c13e | /Friendsfeed_Scripts/CodesForStructuredData/Comments/remnoneng.py | 1824ccd48c7a7aaacf37d90b36feb7ca755a36f8 | [] | no_license | havishc19/IRE_MajorProject | bcb819aedfe30f2e3e3c00bce5361ee46a5175f1 | 3622fe60af3199f6782f552e94c37f5e7bb8921e | refs/heads/master | 2021-05-28T15:44:17.247797 | 2015-04-16T12:15:58 | 2015-04-16T12:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py |
#the script retains only the lines which are in english and eliminates rest of the lines
fo = open("./INPUT_FILE", "r+")
out1=open("./OUTPUT_FILE", "a")
# while (str = fo.readline()!=null):
# print "Read String is : ", str
# # Close opened file
import nltk
def isEnglish(s):
try:
s.decode('ascii')
... | [
"havish.roger@gmail.com"
] | havish.roger@gmail.com |
24751a4824ce7849dc18ec5f36edf37de73f5f80 | 29b6d5c211e93bc401a36036c7f349f6a851d114 | /cia/tools/message_generator.py | a1ee19bbb095a5e5ed80904ba60f9c07f567295f | [] | no_license | afolson/cia | cfc9f03c4a6ea27af22db2d003249035e0de1d09 | e4f4672edd4070321be712f7868889b546463faa | refs/heads/master | 2016-09-05T19:42:11.341336 | 2015-03-12T17:41:33 | 2015-03-12T17:41:33 | 32,091,851 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | #!/usr/bin/env python
"""
Submit randomly timed random messages to CIA.
Unlike torture_stats, which uses random messages to
stress-test and profile CIA, this simulates a slightly
more normal level of activity.
"""
import Client, RandomMessage
import time, random, socket
class MessageGenerator(Client.App):
def mai... | [
"amanda@pagerduty.com"
] | amanda@pagerduty.com |
0872b8ae6fd54a0177c8e8bc0a1dcb97b506dd72 | 946a9dcf4e644f0d3f806f016a23ae8d96095082 | /LeetCode/DP/375_GuessNumberHigherOrLower2.py | 2ac71345a5c550d6ff8bd1d9657c2b24b4745021 | [] | no_license | HzCeee/Algorithms | 3dea898f071f4103ca3eb038f63b01ba4ba95383 | e05f29071d0badd081535e773f43ebc303aa12c4 | refs/heads/master | 2018-10-20T21:54:37.154631 | 2018-10-11T20:46:34 | 2018-10-11T20:46:34 | 116,142,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | class Solution(object):
def getMoneyAmount(self, n):
"""
:type n: int
:rtype: int
"""
# dp[low][high] refers to the minimum money need to guarantee a win within range [low, high]
# dp[low][high] = min([guess + max(dp[low][guess], dp[guess][high]) for guess in range(lo... | [
"huangzixihzx@gmail.com"
] | huangzixihzx@gmail.com |
b0e65df1cfdddbb776f4aa566a8952a36b7a28d3 | c0860b2b357a34169a136e898e3f112395f96168 | /coaches/migrations/0001_initial.py | 97b5aa76b450b7dac8f8f832a69d2aa978b02e84 | [] | no_license | Code-Institute-Submissions/go-tennis | 715034e749c74ae29acee199a9dae6ca43f421cd | af3f325a9cfb2faba4d935824492f4aea6d10309 | refs/heads/master | 2023-06-15T03:36:24.411318 | 2021-07-16T19:35:55 | 2021-07-16T19:35:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,878 | py | # Generated by Django 3.2.3 on 2021-07-04 18: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),
]
ope... | [
"wallarand@gmail.com"
] | wallarand@gmail.com |
b0a7dbf1e9f1a38e8c3c7c3f7498e5b970e34a7f | d92fc7ba34412e8a1633b87bea5761c0bdbf196e | /utils/OfflineDataLoader.py | 4a6d8b8f8004d9e9b3de5a094691bbe7da61e89e | [
"MIT"
] | permissive | yigitozgumus/PolimiRecSys2018 | d37876c8d678aecc52d8c4558f2b6d40d1a03d83 | 1e63f46b83bd52399dc600b1abbf254bf47db094 | refs/heads/master | 2023-02-17T16:24:39.853937 | 2022-08-13T08:24:13 | 2022-08-13T08:24:13 | 152,449,643 | 0 | 0 | MIT | 2023-02-10T22:42:06 | 2018-10-10T15:49:36 | Python | UTF-8 | Python | false | false | 2,954 | py | from utils.util import working_directory
import os
import re
import models as m
class OfflineDataLoader(object):
def __init__(self,model_folder="saved_models",parameter_folder="saved_parameters"):
super(OfflineDataLoader, self).__init__()
self.repository = "tuned_parameters"
self.model_fold... | [
"yigitozgumus1@gmail.com"
] | yigitozgumus1@gmail.com |
9fb7d5cdb255d327f6c6e5c858b701c425c23762 | 7aa047e2e9a0f3cff1150aef8abc0150192e34c8 | /Tkinter_examples/Py3_example_Hello_World_v6.py | 3a79c42b38c8e47481f9ab29ff162b6829415d11 | [
"MIT"
] | permissive | ThompkWT/bench_computer | 26b3c28477dd429376969ea3716b691ad077d953 | 77122b458b634b5ac5244b0f1301be651a282595 | refs/heads/master | 2022-12-07T03:24:55.574344 | 2020-09-08T16:53:55 | 2020-09-08T16:53:55 | 293,368,409 | 0 | 0 | MIT | 2020-09-06T21:59:50 | 2020-09-06T21:59:50 | null | UTF-8 | Python | false | false | 2,177 | py | # Python 3 example Hello World v6
# Shows how to customise widget style
# Written by Peter Dalmaris, feel free to use and share
from tkinter import *
from tkinter.ttk import *
class HelloWorld:
def __init__(self, master):
frame = Frame(master)
frame.pack()
self.button = Button(
fram... | [
"peter@futureshock.com.au"
] | peter@futureshock.com.au |
74c12ef05865dbd875ac6205f740b241f5cb6a9a | 7a2b5dc31c335c6db80077b8d5eb98dde5f7cf09 | /cap_crmlead_portal/models/__init__.py | 7f4199aad52ad19f34e69bcb2cac50ba4cd6ce77 | [] | no_license | jrodery/whitecoatinsurancegroup | c944851c444e06e12b3b302bbc33c9bd30810146 | bf5049cb3a1222c6568f6ed69b0b93153b3f1430 | refs/heads/master | 2022-06-05T15:24:26.768606 | 2020-04-13T12:13:41 | 2020-04-13T12:13:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from . import crm_lead
# from . import ir_attachment
| [
"nathan.qjm@gmail.com"
] | nathan.qjm@gmail.com |
96dd055c7d280932b3b7316c8fe71f01411a827f | 5c5cb74562b438366b7e4c54886bceca955b64a8 | /Python/artists_songs/server.py | ee7225ffcc749305ed0da9a4e2da74830e089b0a | [] | no_license | hmp36/Lectures | 1f50f37042c092efede9eeb4a5a453bbcdb2f2e4 | 77e5526ad18c253fbe5d74cae05e6c89bf1bce30 | refs/heads/master | 2021-05-10T14:20:29.336429 | 2018-01-17T20:26:23 | 2018-01-17T20:26:23 | 118,513,275 | 1 | 0 | null | 2018-01-22T20:48:11 | 2018-01-22T20:48:11 | null | UTF-8 | Python | false | false | 1,882 | py | from flask import Flask,render_template,request,redirect,session,flash
from mysqlconnector import MySQLConnector
app = Flask(__name__)
app.secret_key = "as98d7a089s6gh23jhklfhjdvsd890f7v"
# Pass our flask application as well as our db name we'd like to connect to.
db = MySQLConnector(app,"songs_artists")
@app.route(... | [
"morrantho@gmail.com"
] | morrantho@gmail.com |
b70086c254d390e7da81c47b916d724ab71b774a | ca1498f87653ca3870295877fb21070dd51eee50 | /project_dj/email_pj/views.py | 598132955e2c7a8fefc9440a2ee1b9e75de45219 | [] | no_license | moonshin94/pjt3 | 701eeb1bcbeb66af1f150d5cf912bbaf245537b5 | 1a20fcce8553e610994e3b281ca6dc1a7992d55f | refs/heads/main | 2023-06-06T03:45:24.677398 | 2021-06-19T05:41:23 | 2021-06-19T05:41:23 | 363,592,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse("안녕하세요 email_pj 사이트 입니다")
# Create your views here.
| [
"overult01@gmail.com"
] | overult01@gmail.com |
e18292f3203af3b07da2eabe2cbae4e3147fd60b | b6be7bef4c8ffd48c3a1c89fa2ad84bc8d042eb7 | /Inception.py | 57388fe850812ec59514d31ce4604505005ffc93 | [] | no_license | Wushaoyong/tensflowtest | 48e747c1a6cdd7374313013d43cb095a97f3bc34 | f393a945e733fcfe0c63f5dcfffc44c60d2a5862 | refs/heads/master | 2023-01-10T01:47:38.764265 | 2020-11-10T02:26:16 | 2020-11-10T02:26:16 | 305,975,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,758 | py | import tensorflow as tf
with tf.variable_scope('conv7') as scope:
input_image = pool6
input_1 = 110
input_2 = 120
input_3 = input_2 * 3
weights = tf.get_variable('weights',shape=[3, 3, input_1, input_2],
dtype=tf.float32,
initializer=tf.truncated_normal_initializer(stddev=0.05, dtype=tf.float32))
... | [
"1123893617@qq.com"
] | 1123893617@qq.com |
dde8ce33f41abb767cc6c00643052aeb98027f76 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /tests/components/modern_forms/test_init.py | fd6ff49547078e61218c25b6e6b05643814c2186 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 1,766 | py | """Tests for the Modern Forms integration."""
from unittest.mock import MagicMock, patch
from aiomodernforms import ModernFormsConnectionError
from homeassistant.components.modern_forms.const import DOMAIN
from homeassistant.config_entries import ConfigEntryState
from homeassistant.core import HomeAssistant
from home... | [
"noreply@github.com"
] | noreply@github.com |
ada9d930c55912cb44b847bea562775d77d54a14 | 83a6b042b03ed917981e12cc05291a1081b915a1 | /ex26_event.py | f3f3433259ca6f054fd1d53a121287a84bd6676f | [] | no_license | xiaolongbjcp/learnpy | 7ef5681bbded138da2e53d3f4812cc1187f9b2a9 | 2a866d0cc55c37428b77a7bf38e521fdd4bd71df | refs/heads/master | 2021-01-21T12:59:11.621594 | 2016-04-18T04:21:39 | 2016-04-18T04:21:39 | 44,436,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py |
from html.parser import HTMLParser
from html.entities import name2codepoint
class EventHtmlParser(HTMLParser):
def __init__(self):
super(EventHtmlParser, self).__init__()
self.event_list = []
self.event_location = []
self.event_time = []
self.target = ''
def handle_starttag(self, tag, attrs):
if tag... | [
"lightboy110@126.com"
] | lightboy110@126.com |
8b4d685728055ef9a43698520218e69e45ae14de | 7d89d9282b1c72de8704d435bbe101511475a63a | /mrec/mf/warp.py | e57ba3110c7778e88fe2ac511723c8a905458c9b | [
"BSD-3-Clause"
] | permissive | denisparra/mrec | 1b175a48474fe008c05633449901f8a5c9ebe911 | 01897eab7cea323b5c86007c8c06b4cbdd8df310 | refs/heads/master | 2021-01-14T08:39:52.566106 | 2014-03-11T18:43:31 | 2014-03-11T18:43:31 | 13,704,550 | 0 | 0 | NOASSERTION | 2021-01-08T17:50:22 | 2013-10-19T16:40:10 | Python | UTF-8 | Python | false | false | 14,747 | py | import numpy as np
import random
import math
from bisect import bisect_left
from collections import defaultdict
from recommender import MatrixFactorizationRecommender
class Sampler(object):
"""
Pair sampler for WARP loss estimation.
Parameters
==========
data : scipy.sparse.csr_matrix
The... | [
"mark.levy@mendeley.com"
] | mark.levy@mendeley.com |
dc5a3278983f47405e0458a16bd2e986587b8ded | 3cd7d77df3a99e2c306f0d7c869389a9fd503567 | /modeling/model.py | ce3f0868f8764fa4429033ab3a5479dd2661f64a | [
"MIT"
] | permissive | nazariinyzhnyk/kaggle-cleaned-vs-dirty | b8704fd2558f34715fcfb185a774eedbd408083d | cba2626626dffba56a7b1c7a9688aa170b928bbb | refs/heads/master | 2022-12-23T22:04:14.576447 | 2020-09-28T08:08:22 | 2020-09-28T08:08:22 | 299,234,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,535 | py | import torch
from torchvision import models
from torch.utils.tensorboard import SummaryWriter
class NNet(torch.nn.Module):
def __init__(self, backbone=models.resnet152):
super(NNet, self).__init__()
self.net = backbone(pretrained=True)
self.freeze_conv()
self.modify_fc()
def ... | [
"nazar.nyzhnyk@gmail.com"
] | nazar.nyzhnyk@gmail.com |
70d9bb72380119b2bed9fafce8ef3bfec3161060 | 8999141e2f0e370006535932cdf9e13e867ce8fb | /lib/models/laneatt_vp_no_attten.py | 632e0b8fbb07becc6ff4625126fb24af3c35bab0 | [
"MIT"
] | permissive | wumengyangok/SGNet | d916d7215bf6bc78542af186d3d0c14eda96030d | fcf35edaf332c1a4e2713acad5a0fc0e21509c3e | refs/heads/master | 2023-08-14T07:20:20.981147 | 2021-10-14T11:58:11 | 2021-10-14T11:58:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,956 | py | import math
import cv2
import torch
import numpy as np
import torch.nn as nn
from torchvision.models import resnet18, resnet34
from nms import nms
from lib.lane import Lane
from lib.focal_loss import FocalLoss
#from .resnet import resnet122 as resnet122_cifar
from .resnet import Resnet50
from .matching import match_... | [
"hadoop-mapcv@zw03-data-hdp-dn-gpu0437.mt"
] | hadoop-mapcv@zw03-data-hdp-dn-gpu0437.mt |
9576d20b2bc1b3db84404ed47284aafb968d4034 | 06561be6f87d61ea76fded1eb4c100b316a986b2 | /face_mood.py | 2b1709dc6748c881703ffbd0e3498e6ef26f3d0b | [] | no_license | Pushpit07/Mood_Detection_and_Gesture_Control | 16f6d9a60a926d3679b03bf7aac883f54c52c337 | 7c68d4b5adfbca36a5dbac943f246bfaf84c7c64 | refs/heads/main | 2023-05-31T08:47:51.304827 | 2021-06-28T08:06:15 | 2021-06-28T08:06:15 | 380,916,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | import cv2
import dlib
import numpy as np
from sklearn.neighbors import KNeighborsClassifier
data = np.load("./expression_data.npy")
X = data[:, 1:].astype(int)
y = data[:, 0]
model = KNeighborsClassifier()
model.fit(X, y)
cap = cv2.VideoCapture(0)
detector = dlib.get_frontal_face_detector()
predictor = dlib.shap... | [
"pushpit07@gmail.com"
] | pushpit07@gmail.com |
b278c5842913ecc6fcd52c01eed3ecd5dea35cb8 | e2afc3f46175e8ad84d8d882273610d6b4f53b16 | /game.py | aa3242e91f7b0497189cd089c333f94d15f40ef3 | [] | no_license | JackyLai327/flappy_bird | 1ac3d7daf5c745e64f8b51d91e7bd245ebdde131 | fac13fa175085cdd0014a462253fe276a5ec582b | refs/heads/main | 2023-06-18T22:05:16.211802 | 2021-07-26T05:39:19 | 2021-07-26T05:39:19 | 389,417,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,845 | py | import sys, pygame, sounds, background, bird_sprite, pipes_all, score
class Game:
def __init__(self):
self.sounds = sounds.Sounds()
self.game_active = False
self.screen = background.Background().screen
self.bird = bird_sprite.Bird()
self.pipes = pipes_all.Pipes()
se... | [
"s3878874@student.rmit.edu.au"
] | s3878874@student.rmit.edu.au |
fba9c9fb11348d71edd5aefb214e2c3e4c9e517c | 14fe0febc91e52903af0f49c5c5cd0e77af1e00c | /CFDTut/AutomatedCylinder/scripts/controller.py | 6ca819c6e5ae0976f136655fdb164b571bec57bc | [] | no_license | Vance-Turner/MCCapstone13-14 | 8cbb06cb27353d52e4208e2a28a9223c10b5c2ba | 1f62c59be03366f8d732bdbc42be6ca4421f1959 | refs/heads/master | 2020-05-19T08:52:31.525435 | 2014-03-16T07:56:16 | 2014-03-16T07:56:16 | 13,387,707 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | import subprocess
subprocess.call(["/home/vance/Downloads/Capstone/salome_meca/install/appli_V6_6_0/runSalomeMeca","-t","-u","/home/vance/Downloads/Capstone/MCCapstone13-14/CFDTut/AutomatedCylinder/scripts/automater.py"])
| [
"vance.turner1@gmail.com"
] | vance.turner1@gmail.com |
3a801ecc0c5fdc7891d75192545846fbb79e28f5 | 58ff923a903cf2393c87988559e55ab6d0fd5be2 | /venv/lib/python3.9/site-packages/evalml/tests/component_tests/test_estimators.py | a34b16f71e38c2eb5f4463b1ed57a3b3d6748c16 | [] | no_license | gurmeet1109/AVJat0621 | 9930d08b9ae719918ee1e53b673e541c7900f940 | e845a4a5b48f5a63fd2833fbd18b91133d5ca736 | refs/heads/master | 2023-06-11T21:01:21.686729 | 2021-07-03T14:21:51 | 2021-07-03T14:21:51 | 382,629,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,867 | py | import string
import numpy as np
import pandas as pd
import pytest
import woodwork as ww
from evalml.exceptions import ComponentNotYetFittedError
from evalml.model_family import ModelFamily
from evalml.pipelines.components import Estimator
from evalml.pipelines.components.utils import (
_all_estimators_used_in_se... | [
"gurmeet1109@gmail.com"
] | gurmeet1109@gmail.com |
733c5fc0b3c7af4a6567fb54996574d7ef8d69bc | 5f652abb5726d7a00fdbce6c7f3ccfe3ed7c7622 | /xml-server/migrations/versions/ed6021c67b9f_complete_xsd.py | 4ee93727ffa5be706dfc235d31bd74eb21da5335 | [
"MIT"
] | permissive | sopherrmann/SoDaMap | ee8acef4834dda4ca9aca612c006bf2c28522e66 | 09e11925ea98ec44611e919d1726cb83ba16f512 | refs/heads/master | 2020-09-05T20:43:35.971412 | 2020-01-16T19:31:59 | 2020-01-16T19:31:59 | 220,208,590 | 0 | 0 | MIT | 2019-12-30T17:31:10 | 2019-11-07T10:18:25 | Python | UTF-8 | Python | false | false | 7,947 | py | """complete xsd
Revision ID: ed6021c67b9f
Revises:
Create Date: 2019-10-24 12:15:08.223688
"""
from alembic import op
import sqlalchemy as sa
from geoalchemy2.types import Geometry
# revision identifiers, used by Alembic.
revision = 'ed6021c67b9f'
down_revision = None
branch_labels = None
depends_on = None
def up... | [
"sophieherrmann13@yahoo.de"
] | sophieherrmann13@yahoo.de |
09b3f65e630d45fd733c137af91e1b09de954409 | 2599edd14dfccc23cbdb76a334a843596871b788 | /app01/admin.py | 082ed1503386064e41664ab5b5e8008c28afc3c8 | [] | no_license | baixue11/SearchProject | 0b88213f2ef3fb45a17244a042492fe106bfa8de | 09533130ba98420be3e3b1028b1619817b299be3 | refs/heads/master | 2022-12-10T13:53:06.211810 | 2020-09-14T01:57:19 | 2020-09-14T01:57:19 | 294,646,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.ProductInfo)
| [
"1106876186@qq.com"
] | 1106876186@qq.com |
00923b7e71becc4f1b62a7a1b4e52557e75f8cd9 | e344904487c0d7a5fb2a682a8ac7e3e4d8e63f51 | /ex3/ex3.py | 2ef6bc87ac9b26e723e960ac136e8d6379af2b49 | [] | no_license | weeshree/ML-AndrewNg | e2fee8b8421a84666f2946bd6eda92ee21444a2a | b74b1693acc37e9f87e6307204749c1bdbee10fd | refs/heads/master | 2020-03-23T22:36:57.675448 | 2018-08-01T18:08:02 | 2018-08-01T18:08:02 | 142,185,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 20 21:35:10 2018
@author: weesh
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import scipy.optimize as opt
from scipy.io import loadmat
from scipy.optimize import minimize
def sigmoid(z):
''' Sigmoid function '''
return 1/(1+np.exp(-z))
... | [
"weeshree@gmail.com"
] | weeshree@gmail.com |
c884435d30bd679c40000595e344a49974533d43 | 09d3d9a84df6c5797f0330c7b0d7ebaa23cbf9e5 | /projeto/migrations/0009_documento_documento_x_projeto.py | 59825bb93720068bb4179843df6d24b7b8e25443 | [] | no_license | oscip-iabs/sigep | f9f02f248f739f2ee60d9efba52dfbc9c61c6e2d | e1f149f34f8a908a0014ae3447f8ffcfe8678187 | refs/heads/master | 2021-06-23T05:01:16.740171 | 2019-06-06T15:15:41 | 2019-06-06T15:15:41 | 135,350,597 | 0 | 0 | null | 2021-06-10T20:26:22 | 2018-05-29T20:40:18 | TSQL | UTF-8 | Python | false | false | 1,218 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-09-27 19:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('projeto', '0008_auto_20180927_1758'),
]
operation... | [
"t-pedro@iabs.org.br"
] | t-pedro@iabs.org.br |
2ac05a8ce20667dc6ca62cd5a23ac3d6825a9e76 | c1fd96e92379b7a5eda183a0e9522d3bc8a1cd3d | /kaa/filetype/python/pythonmode.py | cc86751f85387bc8ba2e2653a1a6c95f79cbeac4 | [
"MIT"
] | permissive | okazu-dm/kaa | 3b2c59652f2468ed4a78d764667f7f896e759a33 | 3326100c64ca6f638db6361ca72bc56a4aef7b8f | refs/heads/master | 2020-05-23T10:09:05.153521 | 2013-10-22T13:05:45 | 2013-10-22T13:05:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | import keyword, copy
from kaa.filetype.default import defaultmode, theme
from kaa.highlight import Tokenizer, Keywords, Span
from kaa.theme import Theme, Style
from gappedbuf import re as gre
from kaa.command import Commands, command, norec, norerun
from kaa.keyboard import *
PythonThemes = {
'default':
Th... | [
"ishimoto@gembook.org"
] | ishimoto@gembook.org |
071971cd548b3b7550a6f87df20e4f4c3eb46705 | 2ce3cb6295596ee9a1d4cb42a08ca593498066a0 | /TemplatesForWebsite/main_website/cgi/htmlTail.py | 79d90782ede9913893f3641e6c16e36214ac700f | [
"MIT",
"Apache-2.0"
] | permissive | arjunraj1523/craverrapp | 0b3b9449c8101059116d71e45e243a1c1d3984b6 | af6a9612790247a50ca53aaa592e4fa8d5d7ad46 | refs/heads/master | 2021-05-29T04:28:37.485504 | 2015-06-10T12:31:14 | 2015-06-10T12:31:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | def htmlTail():
print("""</body>
</html>""")
| [
"arjraj1523@gmail.com"
] | arjraj1523@gmail.com |
c26b8aa6536d91d003c6e93a96c012aadcbfaffb | 2cf46d2c5fbd886ee919f30d394aa659ec0cb955 | /Spider-master/scrapy/taobao/taobao/middlewares.py | aa44a51d2d54c4f689b54b1f3abbe3eea5116386 | [] | no_license | tinice/spider | 6476496ea69ecd99ff20631faca5f0330b8a1d34 | 443745d67997f9be087473725ac06e8a5e91e043 | refs/heads/master | 2021-01-20T03:41:41.727420 | 2017-09-15T07:44:29 | 2017-09-15T07:44:29 | 101,365,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,542 | py | from scrapy.http import HtmlResponse
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
import time
import logging as log
impor... | [
"373826647@qq.com"
] | 373826647@qq.com |
a7400342bf208ab71ea4d0afc882765b0042397c | 83f848c47ce2f6d13b522aed5a2721520c066a56 | /inkpy_jinja/backends/base.py | 8a9b86aad5102eebff24532544ef746dddcc8227 | [
"Apache-2.0"
] | permissive | allegro/inkpy-jinja | a944ad5e0ab21c9515e6a9cfad8fbeb2eea38a4c | 4967bd87aa97469c6a405937c596ce1c51c2e40c | refs/heads/master | 2023-07-07T06:25:18.364742 | 2018-07-02T05:25:46 | 2018-07-02T05:25:46 | 61,032,737 | 8 | 5 | NOASSERTION | 2023-03-20T21:48:45 | 2016-06-13T11:59:56 | Python | UTF-8 | Python | false | false | 313 | py | from abc import ABCMeta, abstractmethod
from six import add_metaclass
@add_metaclass(ABCMeta)
class PDFBackend(object):
def __init__(self, input_path, output_path, **kwargs):
self.input_path = input_path
self.output_path = output_path
@abstractmethod
def render(self):
pass
| [
"arkadiusz.adamski@ext.allegrogroup.com"
] | arkadiusz.adamski@ext.allegrogroup.com |
28007371e3e659d83d2c31cdc863fc80409f654d | 1ea327db1f4c694abc229da627d963e87cca1968 | /ATIVI02.py | 916276df446141d06dfa3287cc8cf430032e1069 | [
"Apache-2.0"
] | permissive | kauaas/ATIVIDADE-DE-PYTHON-N3 | 54081e1c42443829cf16125e274c87b9ff076bb7 | c596f866f9b825ceb7e330317a018e1740187df4 | refs/heads/master | 2022-12-04T00:56:51.799960 | 2020-08-25T01:50:47 | 2020-08-25T01:50:47 | 290,068,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | print('faça o seu cadrasto')
usuario = str(input('Informe o seu nome de usuário: '))
senha = str(input('Informe uma senha: '))
while usuario==senha:
print('Tente Novamente!')
usuario = str(input('Informe o nome de usuário: '))
senha = str(input('Informe a senha: '))
else:
print('Cadrasto efetuado!')
| [
"noreply@github.com"
] | noreply@github.com |
98cd066602908f0338ab4df8272204012c614b56 | c606f8d3f554e227df0b2809e360f060f1d0f9fc | /Unit 4/nltk_ex.py | 77784e6f29c68729840dffb05b0716a880a20f09 | [] | no_license | arisachue/Artificial_Intelligence | 0dfe851412fc120345a83a4d45a10be22e8bfdb9 | 6c1696f263cf12cba4a3a4643e941274dd6a3ce3 | refs/heads/main | 2023-07-24T04:03:34.463812 | 2021-09-02T23:46:07 | 2021-09-02T23:46:07 | 402,587,827 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,296 | py | # -*- coding: utf-8 -*-
import nltk
# ch2, ex4
# from nltk.corpus import state_union
# cfd = nltk.ConditionalFreqDist(
# (target, fileid[:4])
# for fileid in state_union.fileids()
# for w in state_union.words(fileid)
# for target in ['men', 'women', 'people']
# if w.lower().startswith(target))
... | [
"noreply@github.com"
] | noreply@github.com |
1608fa8e1c84cd41b61e54ffed640e62909cec44 | c1f15f5834062b0d5a6d6857a89124f3f114b2bd | /quick/features.py | fea39d60247ca6a9a0113700e9d9fa359c349cb5 | [] | no_license | msoedov/quick.py | 4bd3294daf8136989bbb0d2316224360657330c3 | 5c89c11c7f6bc1fabbee757a8bb217dea08e359c | refs/heads/master | 2023-01-09T20:20:49.811969 | 2020-04-13T12:46:52 | 2020-04-13T12:46:52 | 44,098,220 | 15 | 4 | null | 2022-12-26T20:21:03 | 2015-10-12T09:41:22 | Python | UTF-8 | Python | false | false | 4,243 | py | import functools
import sys
import unittest
from collections import namedtuple
from copy import deepcopy
from typing import Any, Callable, List
from .common import *
from .core import Schema, flatten, generate
from .shrink import shrink
config = {"max_count": 100, "max_scale": sys.maxsize}
experiment = namedtuple("ex... | [
"msoedov@gmail.com"
] | msoedov@gmail.com |
87430d7e52a19dcf3b8af38625d2539395a13f8d | 3a824e16ee53c61f42c37d20a5e6ad85eafeae16 | /func/vkusmart/_old/people_matcher.py | a09ea926a874dcbd49cef076bd32a406ff793978 | [] | no_license | Lonerien/smart_shop | 1320244387e27d02fc7c6f34e75f11ba2453361e | 294baab2d4b3370798658ec9276a15ad745a9d46 | refs/heads/master | 2023-03-07T10:36:29.098218 | 2021-02-15T17:03:54 | 2021-02-15T17:03:54 | 339,143,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,974 | py | from collections import defaultdict
from .types import BB_FVs
import numpy as np
from scipy.spatial.distance import cosine
def dist_metric_euc(previous_features_of_person, cur_features):
a = previous_features_of_person
b = cur_features
a, b = np.asarray(a), np.asarray(b)
return np.linalg.norm(a - b)
... | [
"lonerien@gmail.com"
] | lonerien@gmail.com |
f6ed4013a5b3d2fab745eb90420ce0f3941cc2e1 | 933dda9c48a9f1297fb74a7219507892c6640075 | /LetsUpgrade Python Essentials/Assignment day-3/question2.py | babd842569f59ea6c5f79c6f8c5b74c9ac48bf7f | [] | no_license | salim-mahat-au7/LetsUpgrade-AWS | c1534ff50da93f955ff26366d5a3a6e4506aa99b | 2575612e0f37261ba5e71db943c5c1a4af033c8b | refs/heads/master | 2022-12-19T03:40:36.740560 | 2020-09-23T16:37:06 | 2020-09-23T16:37:06 | 289,228,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | n=200
for a in range(2,n+1):
k=0
for i in range(2,a//2+1):
if(a%i==0):
k=k+1
if(k<=0):
print(a)
| [
"salimmahat22@gmail.com"
] | salimmahat22@gmail.com |
66b27b05be83a50da137ee7f48fde9bb96f02249 | 0a58654346d82abd924d621837d2c815bafa170b | /ex065.py | a9959401f0db98d86fde11a212f9b4bb044e3e47 | [
"MIT"
] | permissive | gabrieleliasdev/python-cev | 24812a6083d055930ee1f3219a25aa4fee5fd276 | 45390963b5112a982e673f6a6866da422bf9ae6d | refs/heads/master | 2022-12-05T07:23:39.533768 | 2020-08-18T23:38:18 | 2020-08-18T23:38:18 | 286,889,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | """
Crie um programa que leia vários números inteiros pelo teclado.
No final da execução, mostre a média entre todos os valores e qual foi o maior e o menor valores lidos.
O programa deve perguntar ao usuário se ele quer ou não continuar a digitar valores.
"""
lst = []
n = sm = cont = s = 0
while s != "N":
n = in... | [
"gabrieleliascaribe@gmail.com"
] | gabrieleliascaribe@gmail.com |
a2f142591850d088c6f62a70894d53b1e1240482 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-2831.py | 4512483516b5634c39d0789325e695f5c4f83524 | [] | 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 | 13,350 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
1b536776465b6471ac7919c7d731b1aa70131af3 | 3731eb27779223c98d2164d8b6aaa7ab5f99bb56 | /Python Basics/Classes.py | 96f20cb58671776ed61fa53bf15032e5125582ac | [] | no_license | ShriPunta/Python-Learnings | bea27f4d956fb54e8a6199977912e92126e224fd | 4455fea2c3de0cbbe309e8107b06fea9a290e3d4 | refs/heads/master | 2021-09-03T07:26:19.502488 | 2017-11-28T22:46:31 | 2017-11-28T22:46:31 | 106,886,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | class Enemy:
health_points = 5
_foo__is_dead = False
#Defining a Constructor
def __init__(self):
print("This is basically a constructor {}")
#Always returns a string || called when the object is to be "printed"
def __repr__(self):
return str(self.health_points)+':'+str(self._fo... | [
"shridhar.puntambekar@gmail.com"
] | shridhar.puntambekar@gmail.com |
5d1521e857446d4c299a55cea304f846627708f2 | 3c552d2e490c050fcbd2e2ceba2435959e3da010 | /Day 22 (Graphs)/Toposort.py | 3dcf6aabde27ac7c720798b9c3ccaeb5da66521a | [] | no_license | AkshayKumarTripathi/Algorithms-And-Data-Structures | 63edb39813e45c32a9377415e432ba25bc00cd2e | 895446f0a42ec9ea7a381e177e182ef8dc118b01 | refs/heads/main | 2023-04-07T01:10:22.457185 | 2021-04-10T15:58:31 | 2021-04-10T15:58:31 | 313,888,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # SPOJ question
import heapq
nodes,edges=list(map(int,input().split()))
graph=[[] for _ in range(nodes)]
ans=[]
heap=[]
enter=[0]*nodes
for _ in range(edges):
u,v=list(map(int,input().split()))
graph[u-1]+=[v]
enter[v-1]+=1
for x in range(nodes):
if enter[x]==0:
heapq.heappush(heap,x+1)
while... | [
"tripathiakshay5@gmail.com"
] | tripathiakshay5@gmail.com |
18ea1a3b36d880daac335394ef41d0779e3a6053 | 3683351abe683838595feb2b52ea0837786bf670 | /Excecoes.py | 86e46dda5d083c0ca089af0982aed301c01c5a59 | [] | no_license | slsmoraes/app_python | e9f99c622e841ad39df19376816739711317b3a2 | 510aa6fa94d9cf4e1bf7894426a924629ff41b0e | refs/heads/master | 2022-12-28T23:35:47.267269 | 2020-10-13T20:08:41 | 2020-10-13T20:08:41 | 303,815,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py |
def divisao_zero():
try:
divisao = 10 / 0
except ZeroDivisionError:
print('Não é possivel realizer uma divisão por zero')
def exececao_encadeada():
try:
arquivo = open('teste.txt', 'r')
texto = arquivo.read()
lista = [1, 10]
divisao = 10 / 0
numero =... | [
"slsmoraes@gmail.com"
] | slsmoraes@gmail.com |
6a5b2a1653b8091cfd2d1d9848355cce9d99e1ae | 559e781218b486b210e6c81d4e6c91848f83a89c | /2-Python高级语法/2-3 调试、文件/2-1-5.py | 76199f6c17c013874be806fb01b8d0af20ff319e | [] | no_license | Mayym/learnPython | 1a538185b4109ca943e3c13effd213eed5e121b1 | c68a7d2cd9afe4fc454f9929a2193402500b64d0 | refs/heads/master | 2020-04-21T20:40:22.728902 | 2019-03-10T09:01:39 | 2019-03-10T09:01:39 | 169,853,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # 关于读取文件的练习
# 打开文件,三个字符一组读取内容,然后显示在屏幕上
# 每读一次,休息1秒钟(让程序暂停,可以使用time下的sleep函数)
import time
with open(r'test01.txt', 'r', encoding='utf-8') as f:
# read参数的单位是字符,可以理解成一个汉字就是一个字符
strChar = f.read(3)
while strChar:
print(strChar, end='')
# sleep参数单位是秒
time.sleep(1)
strChar = f.re... | [
"mayyzym@gmail.com"
] | mayyzym@gmail.com |
b40616b31df98d43d1b6a084948c93946dd914ac | c2dd6b06b56a4db596e196b77a072caeb53042ce | /python_modules/dagster/dagster_tests/cli_tests/test_workspace_config_schema.py | 82bc9e9410785d896141188fad8721e511b626fe | [
"Apache-2.0"
] | permissive | shasha79/dagster | ed8beac9a134dc22e3c23b0db3bb60884fe2e1de | b138d2454eb4a7f7e19a9d1763fa6c06bbb239e6 | refs/heads/master | 2022-11-11T16:59:11.144130 | 2020-07-03T16:44:19 | 2020-07-03T16:44:19 | 276,888,663 | 0 | 0 | Apache-2.0 | 2020-07-03T11:55:59 | 2020-07-03T11:55:58 | null | UTF-8 | Python | false | false | 3,371 | py | import yaml
from dagster.cli.workspace.config_schema import validate_workspace_config
def _validate_yaml_contents(yaml_contents):
return validate_workspace_config(yaml.safe_load(yaml_contents))
def test_repository_yaml_parsing():
valid_yaml_contents = '''
repository:
module: some_module
fn: a_repo
... | [
"schrockn@elementl.com"
] | schrockn@elementl.com |
fa7efe8e766090860b55bbb4d12133c3856318e3 | 2a94512335bfae258128e18809cff52a1a383f7e | /matching_pennies/pages.py | 52b73a852da58ddd81e0f56e178a2923f131999f | [
"MIT"
] | permissive | joselarcom/lotsizing | c61d4953f98137b3afe45a83f27de663c79c8a2b | 8d9f635ef046ce3cda23fa304a43e7bb4ca90989 | refs/heads/master | 2021-07-12T06:59:03.892958 | 2020-09-22T17:41:28 | 2020-09-22T17:41:28 | 206,135,057 | 0 | 1 | NOASSERTION | 2019-09-11T21:01:00 | 2019-09-03T17:33:10 | HTML | UTF-8 | Python | false | false | 953 | py | from ._builtin import Page, WaitPage
from otree.api import Currency as c, currency_range
from .models import Constants
class Choice(Page):
form_model = 'player'
form_fields = ['penny_side']
def vars_for_template(self):
return {
'player_in_previous_rounds': self.player.in_previous_roun... | [
"jlarco@utec.edu.pe"
] | jlarco@utec.edu.pe |
475bf452e96eb7b3da9b84450fd7a7e25de9f5e5 | 87b55de0379ef16e38a7579ff7920e0966148e16 | /backend/association/migrations/0002_event_image.py | eea8e5233a4b9cf147ab6e8e8780572c1a3da943 | [] | no_license | whoissamirthapa/bmc_project | fc7cc8e3ff13cc8991aa4c43efe056a1ebfa7e41 | c58a6af30b1fe811d24cf43f4effc7c195d7b413 | refs/heads/master | 2023-06-08T23:34:36.111360 | 2021-06-30T02:31:30 | 2021-06-30T02:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # Generated by Django 3.2.4 on 2021-06-18 09:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('association', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='event',
name='image',
f... | [
"romanchhetri02@gmail.com"
] | romanchhetri02@gmail.com |
db53a329ef4705bdbd512dcc044c8a8a69cba074 | f6003f9f25dcc182e9fbce7a96d0dabb9341744c | /Exercícios/Lista 6 - Seção 13 - Leitura e escrita em arquivo/Questão 20 - Enunciado no código .py | 6605ae8200a5865776d234e52d03e8f1a7195514 | [] | no_license | henriquecl/Aprendendo_Python | 60a87959714f82894e996c06b0a1b767838c38fc | 672029855431795defafd7e20e8da319bf34e502 | refs/heads/master | 2023-06-08T10:48:13.667893 | 2021-06-22T00:55:14 | 2021-06-22T00:55:14 | 261,029,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | """
Questão 20 - Crie um programa que receba como entrada o número de alunos. Receba em uma lista o nome dos alunos e o seg
undo contém suas notas finais. Crie um arquivo que armazene a cada linha o nome do aluno e sua nota final. O nome tem
que ter no máximo 40 caracteres. Se não tiver 40, preencher com espaço em bra... | [
"64755074+henriquecl@users.noreply.github.com"
] | 64755074+henriquecl@users.noreply.github.com |
ed84ffd40ba97ed8a0f3ce68ae9b1d6dc466b978 | 9d82d98f3ed3fa892ff7dae3a7a0afe40194df35 | /OOP/bankingsys.py | d4294a978eedc6d7cacb52bee056ffce4663b09d | [] | no_license | Drishtantr/Python-Programs-Algorithms-OOP | 92b322b65d81d0a5d1436296c596219409d14544 | 5056f5ca36d417b8d0f18b0f61914ce36de85e32 | refs/heads/master | 2022-12-06T08:13:20.969087 | 2020-09-01T05:29:55 | 2020-09-01T05:29:55 | 263,679,113 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | import random
# print(random.randint(10000, 100000))
class Library:
accounts=[]
# for i in range(1,6):
# accounts.append(random.randint(10000, 100000))
names=[]
moneys=[]
x=0
def val(self,accno,name):
if accno in self.accounts and name in self.names:
print("W... | [
"drishtantregmi777@gmail.com"
] | drishtantregmi777@gmail.com |
5e441479566f625c8ec8b672cfb4e25d50e510c8 | d602dd3c0d4cc216a9f42c8b3e0977a8ce87ab5a | /venv/Scripts/pip3-script.py | dfd0ca87adc9992480d17c42341681553e67080c | [] | no_license | VionaGonsalves/assessment2.0 | 2f9918d2f4256e46a381bc1cec14e8aa5682c821 | 09a6911bd475201b84f693525daed1eaeec7deb3 | refs/heads/master | 2020-04-15T10:01:56.796509 | 2019-01-08T06:13:02 | 2019-01-08T06:13:02 | 164,577,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!C:\Users\acer\PycharmProjects\assessment1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.ar... | [
"gonsalvesviona@gmail.com"
] | gonsalvesviona@gmail.com |
585a15038cbe46a4c4f66b1b6a2115aebaf1140e | 3d75e08dab0994121a2cd0bbbe537bbf80117d12 | /rango/admin.py | 30617b2aa7d669c9961f31237fc5a97c4e4f714b | [] | no_license | Sevenarth/tango_with_django_project | 2a89297b04b562d0861e72f878a10ca007681562 | 1ba5273111648627eb361e20c1f1cb787bf1177c | refs/heads/master | 2021-05-12T07:55:20.605012 | 2018-02-10T23:27:43 | 2018-02-10T23:27:43 | 117,262,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | from django.contrib import admin
from rango.models import Category, Page, UserProfile
# Register your models here.
class CategoryAdmin(admin.ModelAdmin):
prepopulated_fields = {'slug':('name',)}
class PageAdmin(admin.ModelAdmin):
# ...
list_display = ('title', 'category', 'url')
admin.site.register(Categ... | [
"2252593v@student.gla.ac.uk"
] | 2252593v@student.gla.ac.uk |
e09330360ea056ea1da722b2a8e3ffdb01226106 | 4276cc354af4d6d07f94ee6760653a265bd79247 | /heatrapy/dimension_2/__init__.py | 26e9201440992be5e0487ea7e22ded049643a887 | [
"MIT"
] | permissive | djsilva99/heatrapy | fd73fcfe5bc906fdce4cfe60e17960d8ede44b6d | 1720a89e1d7863872a184d6e7d60c3684fe54c0e | refs/heads/master | 2022-11-26T18:55:55.266187 | 2022-07-21T14:41:26 | 2022-07-21T14:41:26 | 96,101,778 | 46 | 8 | MIT | 2022-11-22T10:29:17 | 2017-07-03T11:00:33 | Python | UTF-8 | Python | false | false | 1,166 | py | """dimension_2.
This submodule allows to create two-dimensional thermal objects, establish
thermal contact between them, activate or deactivate the whole, or part, of the
materials, add heat sources, modify thermal properties, define boundary
conditions, and compute the respective heat transfer processes.
The submodu... | [
"djsilva@gmx.com"
] | djsilva@gmx.com |
e526231d4aa69e086067ac6a9b45dd8350f09eeb | f6baef505e2fbdbf870e600d2e08eb8ee729a041 | /PlexilPlanStorage.py | 28fb7e9a66fc32bc15931e230e1e3ddbebba1aec | [] | no_license | Ras-al-Ghul/PlexilPlanStorage | ff5e32259f8cd06ec0227044e795967e2426d2c8 | 9b4cc3d06cae5a7b8bdb156c5980a888f46c8b21 | refs/heads/master | 2021-01-13T03:42:20.544227 | 2016-12-24T15:50:58 | 2016-12-24T15:50:58 | 77,269,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,576 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
##############################################################################
## license :
##============================================================================
##
## File : PlexilPlanStorage.py
##
## Project : Plexil Plan Storage
##
## This file is ... | [
"dipankar1995@gmail.com"
] | dipankar1995@gmail.com |
1f56dc258abd0c1de41d880b932a036a3b241428 | 2aaeacc816a2f1376d0ec9a98bbbad129ed53026 | /pyglet/window/__init__.py | af815e7eb402dcf13ccd08b2d689fb6dfd3fbbf2 | [] | no_license | xinmingzhang/cryptogram | affcf0af4655c88372d58e46befa97d47348305e | 425f3fdeb34ae8c1ddf07f8aa6616fb478d39b52 | refs/heads/master | 2020-12-24T07:52:59.580620 | 2017-06-04T00:18:45 | 2017-06-04T00:18:45 | 73,360,292 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64,805 | py | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
"252004372@qq.com"
] | 252004372@qq.com |
eefcf322c3e8e7e63d7711880786f89780463144 | bc38c5338eab16da4d05a17a4634ceea83d168f6 | /Python_Kompendium med komentarer/Kapitel 6/6.3.py | 000ff0b724d5641ec03963f54bf45b3741008be1 | [] | no_license | abbindustrigymnasium/py_kompendium_simon | ba57f33f0f07dd6ff6b8826d12f463ce78b42453 | 7b06c94dd47b1a1bf184e98af85fa2fb0af4a257 | refs/heads/master | 2020-05-17T06:50:37.181495 | 2019-05-30T14:58:30 | 2019-05-30T14:58:30 | 183,566,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | import requests # importerar function request som tillåter oss att göra ett html anrop
url = "https://5hyqtreww2.execute-api.eu-north-1.amazonaws.com/artists/" # sätter url till den inskrivna apien
r = requests.get(url) # sätter r till det motagande dictionariet
response_dictionary = r.json() # sätter det motagnade ... | [
"noreply@github.com"
] | noreply@github.com |
4215eccc2bf7961801568bcd08c126602fea900f | f08ade59ac9fc7e228b045a9a71b767e352df0c1 | /dataloader/custom_transforms.py | 94ab66528484af50217c1293cc94c3fcc25c983d | [] | no_license | EnchanterXiao/NST | 40b9869641f59cfc8fc9ea0928c570665d0419f3 | 43514ddae4eadaa5fac106688809403897dc87ea | refs/heads/master | 2023-03-28T09:39:04.820237 | 2021-03-26T08:42:53 | 2021-03-26T08:42:53 | 294,849,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,503 | py | import random
import cv2
import numpy as np
import torch
import math
from torch.autograd import Variable
class Resize(object):
"""Randomly resize the image and the ground truth to specified scales.
Args:
scales (list): the list of scales
"""
def __init__(self, scales=(512, 512)):
self... | [
"396008241@qq.com"
] | 396008241@qq.com |
694921cddd5317e34bdf2a9edff2af8af3ca2361 | 84e9749b490b7440d1251f919847b6d6a12157f0 | /subway.py | 7ef81f365f64a3dff3d2ff64a01ddfc7754e731c | [] | no_license | Andrea227/dailyexercise | 2cf171051614b51fb0ec74f35cd8184a1a62847e | f7a759b1df40aeda7877b8159e9affeb50d3214b | refs/heads/master | 2021-10-20T19:33:27.123408 | 2021-10-15T21:09:07 | 2021-10-15T21:09:07 | 193,038,731 | 0 | 0 | null | 2019-06-21T05:58:05 | 2019-06-21T05:51:46 | null | UTF-8 | Python | false | false | 695 | py | def platter(n):
x = 0
b = 0
for i in range(1, 1000):
if x <= 3*n:
if i == 8:
x = x - 1
elif i % 4 == 0 and (i-8) % 7 != 0:
x = x + 1
if x == 3 * n:
b = i
elif (i-8) % 7 == 0 and i % 4 != 0 and i>8... | [
"andreayangsh@outlook.com"
] | andreayangsh@outlook.com |
08e1dae6779310c3ef1245ab50e50fd567f152b6 | e8c6ee0f1ed18a3e3dc6658a1ce582df864c0e7f | /PHOEBE.py | 432b784e8091d6477affd0a324dca07e88306725 | [] | no_license | dingxu6207/newcode | fa0b3f544ca6efc859340f726fcb0fa08dc8229d | fc06b2529cc5f8844859b12d1496c3b1f8c92036 | refs/heads/master | 2020-08-28T08:38:32.007032 | 2020-07-11T03:47:34 | 2020-07-11T03:47:34 | 217,651,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 14 22:38:03 2020
@author: dingxu
"""
import phoebe
from phoebe import u # units
import numpy as np
import matplotlib.pyplot as plt
logger = phoebe.logger()
b = phoebe.default_binary(contact_binary=True)
b.add_dataset('mesh', compute_times=[0], dataset='mesh01')
b.add... | [
"32772701+dingxu6207@users.noreply.github.com"
] | 32772701+dingxu6207@users.noreply.github.com |
689df46f7b895f0325dd2aa9407ac9eaec2f709b | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/다양한 출력포맷_20200705141045.py | b9bbcf137e8d3e41db97353267569be16ddbb422 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # 빈 자리는 빈공간을 두고, 오른쪽 정렬을 하되, 총 10자리 공간을 확보
print("{0: >10}".format(500))
# 양수일 때는 +로 표시, 음수일 땐 -로 표시
print("{0: >+10}".format(500))
print("{0: >+10}".format(-500))
# 왼쪽 정렬하고, 빈칸을 _로 채움
print("{0:_<+10}".format(500))
# 3자리 마다 콤마 찍어주기
print("{0:,}".format(100000000000))
# 3자리 마다 콤마 찍어주기, +- 부호도 붙이기
print("{0:+,}".format(... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
a8850b436950019ca2805d8d01cab8e7be953e13 | f46a85deb23789e76b5982997e0c45d1ec3df1b2 | /extraction/extract_side_effects.py | d55ac5470393721b57d917527ff1df9844cd5cb1 | [] | no_license | HalaSalameh/extraction | 57fceeb2437b2908a4e47f6193abad8558647a62 | c26866516b3a72c1ef61839d3ed64cb009cff6e8 | refs/heads/master | 2022-12-08T05:06:00.282111 | 2021-01-15T19:37:06 | 2021-01-15T19:37:06 | 219,051,004 | 1 | 0 | null | 2022-12-08T02:42:11 | 2019-11-01T19:37:08 | Python | UTF-8 | Python | false | false | 16,980 | py | # -*- coding: utf-8 -*-
import os
import re
import pkg_resources
from nltk.tokenize import StanfordSegmenter
from nltk.tag.stanford import StanfordPOSTagger as POS_Tag
from snowballstemmer import stemmer
import nltk
from extraction.store_side_effect import store_side_effect
from extraction.utils.spell_correction imp... | [
"haladaoud13@gmail.com"
] | haladaoud13@gmail.com |
b377f143b2a469e862286cf230e2ce11adc8858a | 748e54267007261fbad2c9379761012692726bff | /compilerapp/forms.py | 10aac69dbbb3283c3b9a433bae5c2ac1a2fcb0e4 | [] | no_license | ravichandra178/tmm | f2fbfd3b6acebd2a87370a77dbf2b443679cd5ce | 9989464ab94c7a59a669e6ace5f0a63851cff3fe | refs/heads/master | 2022-12-09T00:05:39.615257 | 2020-02-24T09:50:11 | 2020-02-24T09:50:11 | 241,540,673 | 0 | 1 | null | 2022-11-22T04:58:29 | 2020-02-19T05:28:37 | Python | UTF-8 | Python | false | false | 156 | py | from django import forms
from .models import Source
class SourceForm(forms.ModelForm):
class Meta:
model = Source
fields = ['source']
| [
"ravichandra178@gmail.com"
] | ravichandra178@gmail.com |
884b46354d41c94d063040008cbf7a37e56bd9f4 | 35cc7165668f226ef0d6afb8caac1a4557fa8c25 | /app_server/src/utils/tornado_utils.py | d337b264fa790b9fc74133121666a1a274b1f1ab | [
"MIT"
] | permissive | detector-m/AppPythonServer | 3cbed59a6bfefd9b56d446f8cc9612cd2359bb55 | 93494d50a14f172434829db14a9ac920dee6d928 | refs/heads/master | 2022-12-06T16:50:01.858958 | 2020-09-01T07:44:20 | 2020-09-01T07:44:20 | 281,624,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,145 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@文件 :tornado_utils.py
@说明 :
@时间 :2020/07/17 10:17:25
@作者 :Riven
@版本 :1.0.0
'''
import json, re
from urllib import parse as urllib_parse
from urllib.parse import urljoin
import sys
sys.path.append('.')
from app_server.src.utils impo... | [
"ruiwen.long@ioa365.com"
] | ruiwen.long@ioa365.com |
8a9f2f260ce87cc91474a5b8be78abd0ed4c103b | ab50920ebb8d9679230c13b8f91998e47e9f4f82 | /samples/server/petstore/python-blueplanet/app/openapi_server/models/order.py | e222f5ee0069dbb383352d37536a24db5e77ec3c | [
"Apache-2.0"
] | permissive | oxidecomputer/openapi-generator | f50ee17579b02a35d30894f16a4d98dc81f8b06b | f8770d7c3388d9f1a5069a7f37378aeadcb81e16 | refs/heads/master | 2023-08-25T09:24:27.666296 | 2021-02-25T15:36:35 | 2021-02-25T15:36:35 | 334,329,847 | 6 | 0 | Apache-2.0 | 2022-10-14T05:05:39 | 2021-01-30T04:46:13 | Java | UTF-8 | Python | false | false | 4,935 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from app.openapi_server.models.base_model_ import Model
from openapi_server import util
class Order(Model):
"""NOTE: This class is auto generated by the swagger c... | [
"wing328hk@gmail.com"
] | wing328hk@gmail.com |
b0e1c55a0091ffb9701be2f14cd36beb4a2850da | c936fda8611db48968c532b22a1c6456cc9332a6 | /project/latte/migrations/0014_auto__add_field_product_nesto.py | d3beb4238bd1084df5ee2fc13d8a7ff98f6df465 | [] | no_license | ivpusic/latte | 4fc47d777c18f77b2d43c5949273cd2be665512a | e07f05f2d95a0c1844c12050eca93ccdacfd50e8 | refs/heads/master | 2020-05-31T21:46:27.826076 | 2013-09-21T00:54:00 | 2013-09-21T00:54:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,660 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Product.nesto'
db.add_column('latte_product', 'nesto',
self.gf('django... | [
"ivpusic@foi.hr"
] | ivpusic@foi.hr |
2ab2a89205551fb161812b79f806e8861ccd0c01 | 20ac11c2d5f1487a218442475f64ee92b330e718 | /src/tests/test_command_26.py | b392e7e77300663ae071ee1a5ea82d84a5f7acc5 | [] | no_license | DimitarTerzov/cWeb_thai_dev | b007c869f22b55a677a0ab881dcdf3125707a543 | 9a3983fbeb5cd4a7891a3744c2cd14d2b1683e7d | refs/heads/master | 2022-07-30T15:13:29.933678 | 2020-05-20T08:09:05 | 2020-05-20T08:09:05 | 260,390,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
from utils import temporary_file
from command_26.validator_26 import command26
CONTENT = [
u'<Section type="report" startTime="0" endTime="600.000">\n',
u'<Turn startTime="0" endTime="34.375" speaker="spk1">\n',
u'<Sync time="0"/>\n',
u'Hi... | [
"dimiterat@gmail.com"
] | dimiterat@gmail.com |
3c3c743340466e402873be5a86f79f30825c512d | d42060728c980fba55f1c0c3eed6398503e3f17f | /Blogs/migrations/0001_initial.py | 15984170bc41482ccf287b53391af327c9fdf06a | [] | no_license | eevadas/Final-Project | f2ccd7a129024b7196a13edf335c5e1046f05976 | 1c323737718bf63d476b34b999b42a881e2f7460 | refs/heads/master | 2020-04-30T09:27:01.273484 | 2019-03-20T14:04:00 | 2019-03-20T14:04:00 | 176,747,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | # Generated by Django 2.0.13 on 2019-02-19 10:24
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
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"eeva.das98@gmail.com"
] | eeva.das98@gmail.com |
f0db017322cd95c267fcbaddaf60360bec86248e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/405/usersdata/284/75780/submittedfiles/exe11.py | 487a2312007a81920fb10875f75153e3da8fe793 | [] | 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 | 748 | py | # -*- coding: utf-8 -*-
a=int(input('digite o numero: '))
if a>100000000 or a<9999999:
print('nao sei')
else:
d1=(a//(10**7))
d2=(a-(d1*(10**7)))//(10**6)
d3=(a-(d1*(10**7))-(d2*(10**6)))//(10**5)
d4=(a-(d1*(10**7))-(d2*(10**6))-(d3*(10**5)))//(10**4)
d5=(a-(d1*(10**7))-(d2*(10**6))-(d3*(10*... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0bed65bcd8fe1c0b2dba68f4c6e191e1c0dd7d79 | 01d38140093f41e6afbd67445dbca78d9220d7fd | /linear_regression_learner.py | 05b5f705f8a1be190a199b6dcdb5c38254cfec16 | [] | no_license | boyko11/LinRegTorch | e174eb1452646b52f9c7c9161ee30f45630ef8b6 | a8f05fe67b4be3ee9e885194b5b750371b1cb5e1 | refs/heads/master | 2022-07-04T04:36:04.136287 | 2020-05-10T21:15:14 | 2020-05-10T21:15:14 | 262,623,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | import numpy as np
import torch
class LinearRegressionLearner():
def __init__(self, theta_size, learning_rate=0.00001):
self.theta_tensor = torch.randn(theta_size, 1, requires_grad=True)
self.loss_function = torch.nn.L1Loss()
self.learning_rate = learning_rate
self.loss_history = ... | [
"boyko11@gmail.com"
] | boyko11@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.