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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d07b700b026672f3fe65d2438f6c08a22556f2df | 34474048ec5c4850623cf0fea993b43de76fada4 | /Tests/unittest/code_gen/tac_o1/local_chars.tac | e00797894280d102fd4d8b3938dc5cdb5c77ad11 | [] | no_license | imsure/C-- | 69a80e152936e31b14319ab16c2317d2cacc9165 | 9991e7135d6ebc8f6f08f46f37b82bfe353ec17f | refs/heads/master | 2021-01-13T02:04:07.295401 | 2015-05-01T01:26:07 | 2015-05-01T01:26:07 | 30,732,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | tac | main:
Enter main 16
x = 'A'
y = 'B'
z = 'C'
Param x
Call print_int 1
_tstr0 = "\n"
Param _tstr0
Call print_string 1
Param y
Call print_int 1
_tstr1 = "\n"
Param _tstr1
Call print_string 1
Param z
Call print_int 1
_tstr2 = "\n"
Param _tstr2
Call print_string 1
Return
| [
"imsure95@gmail.com"
] | imsure95@gmail.com |
0afc3b25c1ddebdc98a6af689043f6e48eb05e1c | 138cf8bd523d7edca44e8aa95814a1d379b6e8f8 | /tensorlab/TensorLayerApp/Logger.py | 80356ebc76606258ee5b58cf0f28b09e96a8f800 | [] | no_license | fangde/TensorLab | 8dd37158ae1f92312a2fb387ef9d5890f401488f | 653a6a50308dd7cde3cb0296880ffbce2e2b0ed0 | refs/heads/master | 2021-01-21T14:11:38.587490 | 2018-07-14T09:55:18 | 2018-07-14T09:55:18 | 95,427,818 | 5 | 1 | null | 2018-07-14T08:55:43 | 2017-06-26T08:57:08 | Python | UTF-8 | Python | false | false | 1,550 | py | import time
import numpy as np
from datetime import datetime
class DBLogger:
def __init__(self,db,model):
self.db=db
self.model=model
def on_train_begin(self,logs={}):
print "start"
def on_train_end(self,logs={}):
print "end"
def on_epoch_begin(s... | [
"fangde.liu@imperial.ac.uk"
] | fangde.liu@imperial.ac.uk |
e4a79e725bd693151918bbca85a956a846898fb0 | 5a703f8727773c700ca13b69a78542bef8036c63 | /services/users/project/tests/test_user_model.py | efe9052e510198a0f44c224223312396c240959d | [] | no_license | dingran/testdriven-app | 0163c2319b14981a6e0a5dff8ef2b28395baa185 | d0f2243033aa843e059327ea263680e307a4e846 | refs/heads/master | 2023-07-21T04:56:01.914787 | 2023-05-10T17:35:17 | 2023-05-10T17:35:17 | 184,500,902 | 0 | 0 | null | 2023-07-10T23:12:09 | 2019-05-02T00:45:12 | Python | UTF-8 | Python | false | false | 1,957 | py | import unittest
from sqlalchemy.exc import IntegrityError
from project.api.models import User
from project.tests.base import BaseTestCase
from project.tests.utils import add_user
PASSWORD = 'greaterthaneight'
class TestUserModel(BaseTestCase):
def test_add_user(self):
user = add_user('justatest', 'tes... | [
"dingran.nju@gmail.com"
] | dingran.nju@gmail.com |
9b9d8ecb3b375db4238a52198b83b9b2b29842ba | bb2cd2a95bb38b90f766bb2cb25aba22fb10d768 | /model/load.py | 47277178ff1a1ff806702d6369f931abb4825356 | [] | no_license | ankitpyc/Mnist_Demo | cd24037ecac885354da861d21d74fdc71885a854 | 2c740ec718bdeb230cac7da06c02e82536c67273 | refs/heads/master | 2021-04-15T10:11:30.184984 | 2018-03-25T12:04:21 | 2018-03-25T12:04:21 | 126,586,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | import numpy as np
import keras.models
from scipy.misc import imread, imresize,imshow
import tensorflow as tf
from keras.models import Sequential
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D,MaxPool2D
def init():
model = Sequent... | [
"ankitmishra471@gmail.com"
] | ankitmishra471@gmail.com |
87baa53650db2e62d3ac7b05f529fe8fc7792281 | ec8fef96af2a6b6610d298637f05bcdfe67cba2b | /long_range_compare/multicut_solvers.py | 74311cc71aac426c617f2c912f4507dab3e459ec | [] | no_license | abailoni/longRangeAgglo | 8b98aca75b17d177cb5e408460f95ff20f411aeb | 260b452e106125722ae3824755584ce7bfd5b81c | refs/heads/master | 2021-06-25T14:14:57.150233 | 2020-11-06T11:14:52 | 2020-11-06T11:14:52 | 150,707,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,522 | py | import time
import numpy as np
import sys
# -------------------
# MULTICUT SOLVERS:
# -------------------
def solve_multicut(graph, edge_costs, p=None, solver_type="exact_solver",
proposal_generator_type='WS',
fusion_moves_kwargs=None,
proposal_gener_WS_kwargs=N... | [
"bailoni.alberto@gmail.com"
] | bailoni.alberto@gmail.com |
b5648880feec596f19a19b38c11e90d6421b3903 | 34a8e6f0544a1ae9c41a8976db3107acfe79da03 | /docs/conf.py | 66ccd2ba33d51e22a5145dc3b2a6db6b6b241ada | [
"BSD-3-Clause"
] | permissive | SUNET/eduid-signup | d485eae686e6c502bd734178e2f777c3cf9ea819 | a4bde7c6f442fa3172d0add66239588d620f2a6d | refs/heads/master | 2023-08-29T08:38:43.343814 | 2018-11-19T13:06:59 | 2018-11-19T13:06:59 | 9,193,012 | 1 | 0 | BSD-3-Clause | 2018-03-14T12:44:02 | 2013-04-03T11:23:03 | Python | UTF-8 | Python | false | false | 7,773 | py | # -*- coding: utf-8 -*-
#
# eduID Sign Up documentation build configuration file, created by
# sphinx-quickstart on Mon May 13 19:21:39 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#... | [
"lorenzo.gil.sanchez@gmail.com"
] | lorenzo.gil.sanchez@gmail.com |
33dc808475234978f454c5997f1ea1bd3996a31e | 05ace4491b97699333057e35f7e9225864f7130d | /dygraphsex/urls.py | 689201cc230eb577bc30387699482d5ada5e4179 | [] | no_license | scott858/dajs | b6878123748f563550fa2f5e59b1d5dcd4fdcaa5 | bc6b23d0e24be038e278490e34422d69b06d6543 | refs/heads/master | 2021-01-01T16:12:43.477340 | 2015-09-18T01:04:55 | 2015-09-18T01:04:55 | 41,645,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from django.conf.urls import patterns, url
from . import views
urlpatterns = patterns(
'',
url(r'^$', views.example_app_view, name='main'),
url(r'^plot/$', views.plot_view, name='plot'),
)
| [
"scott.lee@nucleusscientific.com"
] | scott.lee@nucleusscientific.com |
6afebcdf3bff4baa26ec1a6b1b283ab1942efc8d | 4058ea14ef48d3d7201bc518fcd6ff74d753a23b | /AnalysisCode/test/hlTriggerRate_cfg.py | ccafa6a7e4d759a680df82cb9286323b21823253 | [] | no_license | cms-ttH/ttH-LeptonPlusJets | 9be57faf0761e55c7e6a83ff8f9b60e9aebf76a0 | fa86fda33d4345a6d6a5b2881a5518514b23fcc9 | refs/heads/80x | 2020-12-24T08:46:40.519378 | 2016-12-06T08:59:53 | 2016-12-06T08:59:53 | 12,163,593 | 3 | 3 | null | 2016-12-06T08:59:53 | 2013-08-16T17:00:15 | C | UTF-8 | Python | false | false | 2,962 | py | #!/usr/bin/env python
import sys
inputFileList = 'inputFiles_HLT_Rate_MC_HLTEle27HT200_DYToEE_PU40bx25.txt'
outputFileName = 'hlt_rates_13TeV_histo.root'
n = -1
# Argument parsing
# vvv
if len(sys.argv) > 1 and sys.argv[1].endswith('.py'):
sys.argv.pop(0)
if len(sys.argv) == 2 and ':' in sys.argv[1]:
argv ... | [
"darren.michael.puigh@cern.ch"
] | darren.michael.puigh@cern.ch |
70ba21f2461cde284f5558daadde2b7a79b1ce76 | 781e2692049e87a4256320c76e82a19be257a05d | /assignments/python/wc/src/442.py | 0e9c48707a834d8dbb3976c1a62d17af127fe5a1 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 341 | py | """
wordcount
"""
def word_count(text):
"""
Return a dictionary of words and their
word counds
:param text:
:return:
"""
words = {}
text = ' '.join(text.split())
for word in text.split(" "):
if word in words:
words[word] += 1
else:
words[word] ... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
57746eaf977b4c965978bd43bb6f5770a14581cf | 2b6b961b87af8a23d8d44bfd9b54fe0005d4aec7 | /MyThoughts/asgi.py | 2623fb77c01f5f8a9169880499633735af847c65 | [] | no_license | siddharthgarewal/My-Thoughts | ca510989ad8378ea459019f142d630e31e8db2d4 | 61edc4a658c15730e6dff096933d925b616e7b7b | refs/heads/main | 2023-04-03T10:49:00.385177 | 2021-04-05T09:28:22 | 2021-04-05T09:28:22 | 353,654,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for MyThoughts project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"sidgarewal@gmail.com"
] | sidgarewal@gmail.com |
1e8d16b806a47a308758f7e5980e7257ffc52afe | a8c0867109974ff7586597fe2c58521277ab9d4d | /LC645.py | 199b710d2450fe19fc854e94ce08adbfb1a3b352 | [] | no_license | Qiao-Liang/LeetCode | 1491b01d2ddf11495fbc23a65bb6ecb74ac1cee2 | dbdb227e12f329e4ca064b338f1fbdca42f3a848 | refs/heads/master | 2023-05-06T15:00:58.939626 | 2021-04-21T06:30:33 | 2021-04-21T06:30:33 | 82,885,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | class Solution(object):
def findErrorNums(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
xor = xor0 = xor1 = 0
for num in range(1, len(nums) + 1):
xor ^= num
for num in nums:
xor ^= num
rightmost_bit = xor & -xo... | [
"qiaoliang@Qiaos-MacBook-Pro.local"
] | qiaoliang@Qiaos-MacBook-Pro.local |
6aa71bf0536294c3ee96ed898cdb2a52c138d271 | 2c170db1d4ffe9b51fc02cf736b5cc2e5b7a3bbd | /BFS.py | 32956734cf85d091236dc07b5ef9d7f4a614e31d | [] | no_license | MartinSuGJ/stanford_mse235_project | c68180cad2dc0fc4aed7a27341c662289cfb9eba | 04449226d838185879c41993fa3e536dc97112a6 | refs/heads/master | 2021-01-25T08:07:16.428032 | 2017-06-08T06:55:51 | 2017-06-08T06:55:51 | 93,717,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,676 | py | # I am new new
import networkx as nx
import numpy as np
from PageRank import PageRank
from HITS import HITS
import pickle
import argparse
"""
Function
"""
## Use BFS to simulate the information diffusion
# def info_diff(ng, attr, start, topic, topic_index, time_limit):
# for node in ng.node:
# ng.node[node... | [
"guangjunsu.intopt@gmail.com"
] | guangjunsu.intopt@gmail.com |
dd1cd2922300bb40c269662abce59a85fd60352d | 7ab4b2906e6be949980450a824cbe2f50fdc7cd0 | /proj_euler_q009.py | abf83c8c3d7f82782a88415d923a95c3e584bec6 | [] | no_license | kumar-akshay324/projectEuler | 515fa71d7fc5169116165a40e86ed8c22b4719c1 | 8ec0f33853deb38aa1d1df545ba292356d8aeedb | refs/heads/master | 2021-09-04T22:34:51.464455 | 2018-01-22T19:22:14 | 2018-01-22T19:22:14 | 113,641,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # A Pythagorean triplet is a set of three natural numbers, a < b < c, for which,
# a2 + b2 = c2
# For example, 32 + 42 = 9 + 16 = 25 = 52.
# There exists exactly one Pythagorean triplet for which a + b + c = 1000.
# Find the product abc.
import math
flag = 0
for i in range(1,1001):
for j in range(1,1001):
if ((i... | [
"2013uee1340@mnit.ac.in"
] | 2013uee1340@mnit.ac.in |
f3d22ffcba2a8664b347054516014ca866b87ac9 | 8caab96ba141c12a37ed5f15335916467086cbba | /03-structural/example-01.py | 91c64efe3e9ca8e8db9e708886f8755620f2cc0f | [] | no_license | ademilua/design-pattern | 0b441873e680ae659ec49733236f0aab61dda8af | 369a50c68c5c950f28da8b7bf2ad3c2c7b061303 | refs/heads/master | 2023-06-12T20:03:53.188484 | 2021-07-11T05:44:50 | 2021-07-11T05:44:50 | 384,869,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | class Container:
def __init__(self, elem):
self.elements = list(range(elem))
def __repr__(self):
return f"<Container ({len(self.elements)} elem)>"
class DictAdapter:
def __init__(self, d):
self.d = d
def __repr__(self):
return f"<Container ({len(self.d)} elem)>"
con... | [
"tolulope@iamquix.com"
] | tolulope@iamquix.com |
c353b5719bfee82632873f477d46362ccca45f30 | 97ee2a5a12ee79f1515142b8c1c8e6ccc26533bc | /BERT/run_ner.py | e280037ad8a320864738667673123913457d1e08 | [] | no_license | ksemiya/NER_in_Tatar | b48aa47499c4ef07db01d1f486dcf58db4365564 | efc4cdf21375b5ae1033dc4a95cc8893cbf76739 | refs/heads/master | 2022-08-02T00:06:20.976131 | 2020-06-02T08:15:47 | 2020-06-02T08:15:47 | 255,381,910 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,402 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a cop... | [
"ksemiya@gmail.com"
] | ksemiya@gmail.com |
ccc1c3f4e2881c6c638c974536f2f40f775bb7b0 | 0397b4acdda07037ee9fe74e9f08797c0671c4c6 | /Web/django/trydjango/urls.py | 636561a8243cb75d5fcfec8e1ae7c80e14515c5b | [] | no_license | kyh510/GitStore | 5bce489a5d23e1dc17c16b6ee5223a22502f8909 | ebc93ef86acf17036f094ea359f7b08458d8972a | refs/heads/master | 2020-09-11T12:29:15.871578 | 2019-11-16T07:53:15 | 2019-11-16T07:53:15 | 222,064,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | """trydjango 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')
Class-bas... | [
"phantom1992510@outlook.com"
] | phantom1992510@outlook.com |
ef1d77c3ead5c963da4bda0a6758391542a24536 | 234b581de16f0eebfe3db5281d2920d50e3a3631 | /src/com/dtmilano/android/adb/dumpsys.py | efd9d4962f5cb6e26555547c6475bd84fb789c06 | [
"Apache-2.0"
] | permissive | jili0503/AndroidViewClient | 3d453884d68b508fe4d5d28f5bcea0db0cad6062 | c1c38e6fa53dc09697eadb9c1670d6bef8587ab6 | refs/heads/master | 2020-03-06T21:07:33.744022 | 2018-03-22T04:15:50 | 2018-03-22T04:15:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,612 | py | '''
Copyright (C) 2012-2018 Diego Torres Milano
Created on Dec 1, 2012
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 applica... | [
"dtmilano@gmail.com"
] | dtmilano@gmail.com |
d589934dccb939bcc3b2ab9eaf05cda48d9b649c | 5b81eeb25862473d7bef6b4730715302b4a1a2a9 | /qchem.py.2014-09-17 | ff14107eb8020e49129ea0017e43b6ac15446ee4 | [] | no_license | babyfingers/python_scripts | 72f39f1af445344433b451c6a3ddaf10678834b0 | b26d141087d6157a79085f879427705b968e4a24 | refs/heads/master | 2016-09-05T09:22:31.199689 | 2015-03-23T17:53:51 | 2015-03-23T17:53:51 | 29,411,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,449 | #!/usr/local/bin/python
#Q-Chem output file anaylsis module
import string
import os.path
import math
import time
import sys
import re
import numpy as np
import numpy.linalg as la
elementMasses = {"H":1, "C":12, "N":14, "O":16, "F":19, "Li":6, "S":32 }
geometryStart_re = re.compile("Standard Nuclear Orientation")
ge... | [
"cinnabarbarian@gmail.com"
] | cinnabarbarian@gmail.com | |
b16e3e2cc0d11fee303d0c099065faad2ac767bd | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/wtforms/ext/django/templatetags/wtforms.py | 33a60e3feffb231cb81bf5a196b76d008f86ba12 | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 2,878 | py | """
Template tags for easy WTForms access in Django templates.
"""
from __future__ import unicode_literals
import re
from django import template
from django.conf import settings
from django.template import Variable
from ....compat import iteritems
register = template.Library()
class FormFieldNode(template.Node):
... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
1f9a65ac787ca5726e2ee5f3e366eecd9624af55 | 3eb22fd5a85676d928cd8b3cfbd69f9c9f70429a | /torch/fx/experimental/accelerator_partitioner.py | c16ba8c097957043b65e57185fdee04c86c3bd01 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | SanBingYouYong/pytorch | b7f03e3c8dbb5e66b6a7218f7d81d893f5cfa8f6 | 469f0e42d6e2b3cd8c78b224b97d45be2dc7d0ee | refs/heads/master | 2023-05-30T20:53:59.389479 | 2021-06-16T01:18:33 | 2021-06-16T01:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,635 | py | import operator
from typing import Dict, List, Set, NamedTuple, Tuple
import torch
from torch.fx.experimental.graph_manipulation import get_size_of_all_nodes
from torch.fx.experimental.partitioner_utils import (
Partition,
Device,
PartitionerConfig,
get_partition_to_latency_mapping,
get_latency_of_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
0f592cfca0517ddff0e6374801796d01f581dd0c | a9da9fe1c00fab99adb792677f6f44a536afdc18 | /schema_processor/Nutrition.py | b55ee08e465baaf554e8f3e3fdb6df515e0afcaf | [] | no_license | salimarizi/json-ld-generator-backend | 3a31f642c8697089092b226c6f60f23d1006b845 | d081cad3699e2c4b8dba1c7396a801a7f82b17f7 | refs/heads/master | 2023-05-02T19:28:22.842859 | 2021-05-26T22:22:44 | 2021-05-26T22:22:44 | 371,182,077 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | from schema.Nutrition import NutritionSchema
from calamus.schema import INCLUDE
class nutritionLD:
def main(self, request):
return NutritionSchema.schema().load({
"name": request.form['nutrition_name'],
"calories": request.form['nutrition_calories']
}, unknown = INCLUDE).dum... | [
"salim9asmp1pdl@gmail.com"
] | salim9asmp1pdl@gmail.com |
95a5a9dc8ab7b85722006edd7818dc37aeb68b01 | 63c77b70169556a4e60923f892aa5bb0ca7e7405 | /apps/comments/views.py | 68e758e6450c068b6c9b6eb417d46cb89a01cf50 | [] | no_license | r-knight/message_board | bdd9a18542558254b7f6b49b99b2349a80295172 | 73bff59b9d7032861ffe3a5a6a870c0acce3303e | refs/heads/master | 2020-03-19T00:47:50.688149 | 2018-05-30T23:24:30 | 2018-05-30T23:24:30 | 135,502,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,896 | py | from django.shortcuts import render, redirect, HttpResponse
from django.contrib import messages
from .models import *
from ..users.models import *
from ..games.models import *
def edit_comment(request, comment_id):
response = 'placeholder for edit_comment for comment ' + str(comment_id)
messages.error(request, "... | [
"ryan.thomas.knight@gmail.com"
] | ryan.thomas.knight@gmail.com |
61cc4a9d0cc887096ff977014e927c9e400aa5d9 | abe55e1f32be6bf348858a48e0bea2d25c7d771a | /ProjectEuler/EP1.py | 8726cf79a94e56ffa2b82e7ddfd2fb12f5e31f1f | [] | no_license | Mariani-code/PythonProjects | 0ffab706f6abb85a967363b691a212700d195178 | cd9ed0aee366e91872b55c1f0a3b351ccc7d06f2 | refs/heads/main | 2023-03-14T10:03:58.531152 | 2021-03-05T01:06:12 | 2021-03-05T01:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | result = 0
for i in range(1,1000):
if i % 3 == 0 or i % 5 == 0:
result += i
print (result)
| [
"noreply@github.com"
] | noreply@github.com |
47ebb38d0980d1cf2f7ebaafb0ea6ad961156ebe | 8fb78ba826af20edd6f172be03681af9ab417ab8 | /PYTHON/foosball/foosball.py | 133d36f3e5113641dd95bbe8c2d80e413fa3b05a | [] | no_license | connor3johnston/kattis | 804f4f83f132b54f002126795e508f79e2beddf8 | 59b529ff3d9fbbc2d00958e6851da0c73c69e823 | refs/heads/master | 2021-06-17T19:36:51.032324 | 2021-03-03T19:13:09 | 2021-03-03T19:13:09 | 169,181,901 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | # Rating: ~ 4.0 / 10
# Link: https://open.kattis.com/problems/foosball
def main():
num = int(input())
players = input().split()
queue = players[4::]
scores = input()
dynastys = {}
WO = players[0]
WD = players[2]
BO = players[1]
BD = players[3]
dynasty = ''
count = 1
if scores[0] == 'W':
d... | [
"connor3johnston@gmail.com"
] | connor3johnston@gmail.com |
dd2ea773f08db646baadd375112975c2470cc30d | 3f005770b956727a3c27a892dacd7822b9c79a3f | /subpixel.py | 195ff331e3ecd3c37b14b26dc7351b369655decb | [
"MIT"
] | permissive | SpyroRock/DenseNet | d27de53090467166d391971ae60da8d1ffd81a74 | f8da8286ea6193425c154e06749881dd16aea112 | refs/heads/master | 2023-02-06T13:45:06.711275 | 2020-12-28T11:31:43 | 2020-12-28T11:31:43 | 323,293,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | from __future__ import absolute_import
from keras import backend as K
from keras.engine import Layer
import keras.backend as K
from keras.utils.generic_utils import get_custom_objects
#from keras.utils.conv_utils import normalize_data_format
if K.backend() == 'theano':
import theano_backend as K_BACKEND
else:
... | [
"smenounou@gmail.com"
] | smenounou@gmail.com |
f24416e5cd491a5dd2922554934ead2722d5140c | db360392938a29694f40f0afdff79dcc1f601940 | /Count nested depth.py | 967e82e6bc1e0c9c45332f0f2fef4504f747c38c | [] | no_license | anavalo/Algorithms-and-Data-Structures | 77b84ac38221289152ac6ad930fba61ea8a98e16 | f1887fd2930350e91f3429ea310896a3a9127913 | refs/heads/master | 2020-07-11T11:24:01.918409 | 2019-10-04T14:02:21 | 2019-10-04T14:02:21 | 204,526,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | def flat(l):
res = []
for item in l:
if type(item) == list:
res.append(flat(item))
print(res)
if len(res) > 0:
return 1 + max(res)
return 1
print(flat([1,2,[3,4],5,[6,[5]],7]))
# print(flat([2]))
# print(flat([]))
# print(flat([[2]]))
# print(flat([3, 4, 5, [2, 4, [4, 5... | [
"tsournos.anastasios@gmail.com"
] | tsournos.anastasios@gmail.com |
c73da5137cb1487bda254e4a2f9894d317195295 | 941cd2577e0d6675cd403196b8412ffc31df5b3e | /tango_with_django_project/urls.py | 5c007f103a2c31204d46d83ad7a5b2d70d1fa95d | [] | no_license | paulbeka/tango_with_django_project | 706bd6435443e81e55e3cadf3c1fec83371a5edf | 144ed5e442080653d2fd9eaf7b0f0202a4972529 | refs/heads/main | 2023-03-09T11:17:40.684449 | 2021-02-12T16:09:45 | 2021-02-12T16:09:45 | 329,685,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | """tango_with_django_project 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='... | [
"2517073B@student.gla.ac.uk"
] | 2517073B@student.gla.ac.uk |
29351f1a9584b1210c910aad960b347dc3379d69 | 05aa274adaadc847c65c4ce946d53bf108165da3 | /apps/blog/__init__.py | 035a31b6247f3d50ce2aed45c8b5df24e11dbb0e | [
"MIT"
] | permissive | lucylqe/flaskDemo | b3f508b432a1531fa0db6c4c5766ad0b153c7f50 | 6e6d20332e34904fed11d7d8a61c0c21a81d592a | refs/heads/master | 2020-07-06T11:38:03.595709 | 2019-08-27T11:23:46 | 2019-08-27T11:23:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from apps.libs.register_blueprint import NestableBlueprint
blueprint = bp = NestableBlueprint(cur_name=__name__,cur_file=__file__)
@bp.route('/')
def index():
return str(__name__) | [
"liqe@knowbox.cn"
] | liqe@knowbox.cn |
bf6676dff14bccac66e8ddc3e32677a61cb78f25 | c9543adad3c2f83cfa12e8f6b0078f5d34365a66 | /scoreboard.py | e1771c36eba1b553b8f5ec3e1a7661e14fb1a4d7 | [] | no_license | broten15/alien-game | aab6a94c3da5b78220340f0d9d217076cd3556d9 | 7655847d79a3a0240aa3127475e643405932d1be | refs/heads/master | 2022-11-06T13:38:22.883938 | 2020-06-21T19:49:12 | 2020-06-21T19:49:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | import pygame.font
from pygame.sprite import Group
from ship import Ship
class Scoreboard():
"""A class to report scoring information"""
def __init__(self, screen, ai_settings, stats):
"""initializes score keeping atributes"""
self.screen = screen
self.screen_rect = screen.get_rect()... | [
"66185640+broten15@users.noreply.github.com"
] | 66185640+broten15@users.noreply.github.com |
3d6e519d8173a542b6493ac848758d22a09e11a6 | c513008cacf5592e645e7da3652d90d12a11a988 | /program/niuke-python/Sprial_2.py | 3a59db5855032d2ff2e365c91cdbded357e65f20 | [] | no_license | PiKaChu-R/code-learn | f17cb5ad95d4e8b698320d23e472eb1687576bdc | b94814ac3c72da4c840758569005b7ac6589586a | refs/heads/master | 2020-07-01T02:42:40.235753 | 2019-09-17T13:06:50 | 2019-09-17T13:06:50 | 201,021,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@File : Sprial_2.py
@Time : 2019/04/22 17:09:47
@Author : R.
@Version : 2.0
@Contact : 827710637@qq.com
@Desc : None
'''
'''
Sprial.py:可实现方法
'''
# here put the import lib
import itertools
def spiral(init):
stat... | [
"827710637@qq.com"
] | 827710637@qq.com |
359b2e625580823fd10881495fa0d196cad0bc16 | 0f13f1a5061b80c927530fafd106cf04f25ed3e2 | /metadata/aggregation.py | a18c4b85a16fcd242adf5a6649045d5cda95640e | [] | no_license | ismailsunni/impact_function_registry | 832926fa6f88ccc00be48178826b4a9cc6fcb836 | f2e7c2ad9c9c8a32107c5b6816bc6e6e13a84bdd | refs/heads/master | 2021-01-12T21:00:10.544065 | 2014-10-08T02:34:41 | 2014-10-08T02:34:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | from utilities import ugettext as tr
# Category
aggregation_definition = {
'id': 'aggregation',
'name': tr('aggregation'),
'description': tr(
'An <b>aggregation</b> layer represents '
'regions you can use to summarise the results by. For '
'example, we might summarise the affected p... | [
"tim@linfiniti.com"
] | tim@linfiniti.com |
8de4c818ca766df5a345ae0b90065e5d770de5b1 | bc4656f6f74911f114626538294e0e275105c703 | /tests/dat/test_dar_packet.py | b02d91483b4179221c025a2cbc331f1950d03916 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | AdrianCano-01/spsdk | d8679ae58fc67c6369bceff4b31db658d9ad6bc4 | 4a31fb091f95fb035bc66241ee4e02dabb580072 | refs/heads/master | 2023-03-15T00:37:07.419191 | 2021-03-05T16:33:50 | 2021-03-05T16:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright 2020 NXP
#
# SPDX-License-Identifier: BSD-3-Clause
"""Tests with Debug Authentication Packet (DAR) Packet."""
import os
import pytest
import yaml
from spsdk.dat.dar_packet import DebugAuthenticateResponse
from spsdk.dat import DebugAuthenticationChallenge a... | [
"maria.wisniewska@nxp.com"
] | maria.wisniewska@nxp.com |
6d306b1850726a9a38b7a78a8b1bdffe4758ef5c | b6dd7ffc68957f381ae27b9e2a324f555793f238 | /part-1-basics/ch_10/write_message.py | ac1958c6899a46aaa6a517519f733af594560396 | [] | no_license | lopezjronald/Python-Crash-Course | 0a1100a1888238053f4865f8987cbc023d159d38 | b6add3fc70b0d09b4b5dab9b06a02be2ae94b9da | refs/heads/master | 2022-12-26T21:31:37.286430 | 2020-09-30T04:12:22 | 2020-09-30T04:12:22 | 298,722,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | filename = 'guest.txt'
# with open(filename, 'w') as file_object:
# file_object.write("Guest List\n")
# with open(filename, 'a') as file_object:
# response = True
# while response:
# file_object.write(input("Please enter the name of your guest: "))
# file_object.write('\n')
# conti... | [
"lopez.j.ronald@gmail.com"
] | lopez.j.ronald@gmail.com |
61e3b909ab1ca70f4077a1f193cd2795edb13b58 | 7d2f933ed3c54e128ecaec3a771817c4260a8458 | /venv/Lib/site-packages/pandas/tests/indexing/multiindex/test_slice.py | 4bb71a3f58da28d68cb9bb93aa526aeaf087d7eb | [] | no_license | danielmoreira12/BAProject | c61dfb1d0521eb5a28eef9531a00e744bfb0e26a | 859f588305d826a35cc8f7d64c432f54a0a2e031 | refs/heads/master | 2021-01-02T07:17:39.267278 | 2020-02-25T22:27:43 | 2020-02-25T22:27:43 | 239,541,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,866 | py | import numpy as np
import pandas as pd
import pandas._testing as tm
import pytest
from pandas import DataFrame, Index, MultiIndex, Series, Timestamp
from pandas.core.indexing import _non_reducing_slice
from pandas.errors import UnsortedIndexError
from pandas.tests.indexing.common import _mklbl
class TestMultiIndexSli... | [
"danielmoreira12@github.com"
] | danielmoreira12@github.com |
ef71adfbc3f8955223ff82c086481fd3efbcd86e | 5b35db6d2ac65b1a1c14de97a34643e7c18bde54 | /2-Cloud-Data-Warehouse/create_cluster.py | 1ade57c9736a9101c60b7ab830801f0880b036ba | [] | no_license | jaja-git/Data-Engineer-Nanodegree | 2270a090e01fe6e706c248ae1d1629d6a676c8ba | 50b23b97ace7effd4e21ac343b5aaea8989a0290 | refs/heads/main | 2023-03-22T13:44:31.190259 | 2021-03-11T16:12:18 | 2021-03-11T16:12:18 | 310,591,741 | 0 | 0 | null | 2021-03-11T16:12:19 | 2020-11-06T12:29:47 | Jupyter Notebook | UTF-8 | Python | false | false | 3,522 | py | import pandas as pd
import boto3
import json
import configparser
from botocore.exceptions import ClientError
config = configparser.ConfigParser()
config.read_file(open('dwh.cfg'))
KEY = config.get('AWS','KEY')
SECRET = config.get('AWS','SECRET')
DWH_CLUSTER_TYPE = config.get(... | [
"alexandre@flowkey.com"
] | alexandre@flowkey.com |
fb47985a1b027837da0c960872e7b6908eeb8201 | c524fa2c45bc7b79c4d9524aa340d6258ab650f3 | /file2.py | 5afed0f64ee13fa5c28f0f9f505c3fcb1c29e6bd | [] | no_license | sumitsmart/GitLearningHarryRahulShetty | 96253f66cd259a36ac49d1401f1f00c995acc246 | 8b0a83c906f3d061332eaf72ae0610a056625dd5 | refs/heads/master | 2022-12-03T23:45:25.951427 | 2020-08-09T09:39:28 | 2020-08-09T09:39:28 | 286,190,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | print("Hello world !!")
"this is copy branhc" | [
"sumit.shivhare29@gmail.com"
] | sumit.shivhare29@gmail.com |
672a44ccb8cf352f213782f10b1bd23f6a7814e5 | c2e1b17001357f2c13f6b8287e2b6ee0956c955b | /sweetpea/metrics.py | 18f7356dec88fa61c916c2db35377da7329030b3 | [
"MIT"
] | permissive | musslick/sweetpea-py | e0c9fec35c571fbf846808cbdeec58f68c405d4c | b0d9769025022936d57d71a501c9ab5f51b4a4ef | refs/heads/master | 2023-03-21T01:50:51.045650 | 2021-03-24T19:37:18 | 2021-03-24T19:37:18 | 293,494,087 | 1 | 0 | null | 2020-09-07T10:20:12 | 2020-09-07T10:20:12 | null | UTF-8 | Python | false | false | 1,005 | py | import operator as op
from functools import reduce
from math import factorial
from typing import Dict
from sweetpea.blocks import Block
from sweetpea.constraints import ExactlyKInARow, AtMostKInARow
from sweetpea import __generate_cnf
"""
Given a block, this function will collect various metrics pertaining to the b... | [
"drautb@gmail.com"
] | drautb@gmail.com |
b6cf62297f6f5a18d8098fd663d50ceed6d2fb6a | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/mnurolcay/2009/network/chat/gyachi/actions.py | 27982a32850ab05a787bda82f499cce34b776942 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
7f91b5fa338e5d6f010bd2a91a2b4428dc2e61f6 | c3db4c42360c47471635a97568bfc9c21bc14c06 | /pdfmerge/migrations/0002_auto_20190616_1800.py | 8708c2ce97d9ded4162bf6eb11e98c10d8063689 | [
"MIT"
] | permissive | rupin/pdfmerger | 3ede9aa9f1f374eba9b1ea2c33b6920403a8f4ad | fee19523e88362d215f1a29cdab0d140f4c9385c | refs/heads/master | 2020-04-07T20:37:56.821730 | 2019-07-18T16:58:01 | 2019-07-18T16:58:01 | 158,696,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | # Generated by Django 2.1.3 on 2019-06-16 12:30
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pdfmerge', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"rupin.chheda@gmail.com"
] | rupin.chheda@gmail.com |
ec89f21b212c4db36bf60eaf58782177ae25967f | b79525c5ed329ef7a96c0ca717d3a32d7b4386b3 | /query_strategies/__init__.py | 00f4d6ae2a96be40b27554c204a1d3137d275acd | [] | no_license | prinzROSE/Class-Balanced-AL | c3a42a2fa379870954dbebc9e74a5d3a582d1a39 | 4f89a4b1c49a1b71178da4f5e2a6caa0db773443 | refs/heads/main | 2023-08-24T19:45:31.728013 | 2021-10-12T08:39:46 | 2021-10-12T08:39:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from .random_sampling import RandomSampling
from .entropy_sampling import EntropySampling
from .kcenter_greedy import KCenterGreedy
from .bayesian_active_learning_disagreement_dropout import BALDDropout | [
"djavad.z@gmail.com"
] | djavad.z@gmail.com |
c472632ff6182572bb539f30900c9f3a77f9fef4 | 5bf9cb2bef9a7bfa45028b958dae4e0783cc09f4 | /transrate/wsgi.py | 2988b77159f34db77651abb00cb5dc024f697b58 | [] | no_license | Satoito/transrate | 07b81807f8a617aeabb3a9301ffb732cabcc68fd | 5151fcf3bf7fd87317644bdef5d1cd9b656bde0b | refs/heads/master | 2023-01-31T00:59:52.321513 | 2020-12-08T05:46:08 | 2020-12-08T05:46:08 | 319,506,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for transrate 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"kwge.blue.hunter.5@gmail.com"
] | kwge.blue.hunter.5@gmail.com |
1ec71b82893c3f64ed495e2bf6673385d2f01c5a | c7d91529db199322e39e54fe4051a75704ea843e | /chaper01_list/t1.12.py | 52c5131518690d49becba7d34818301aad263a2f | [] | no_license | 2226171237/Algorithmpractice | fc786fd47aced5cd6d96c45f8e728c1e9d1160b7 | 837957ea22aa07ce28a6c23ea0419bd2011e1f88 | refs/heads/master | 2020-12-26T07:20:37.226443 | 2020-09-13T13:31:05 | 2020-09-13T13:31:05 | 237,431,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,342 | py | #-*- coding=utf-8 -*-
'''
给定一个有序链表,其中每个节点也表示一个有序链表,
实现flatten()函数,该函数将联保扁平化成一个单链表,扁平化后也是有序的链表
'''
class LNode:
def __init__(self,x,right=None,down=None):
self._data=x
self.right=right
self.down=down
class LList:
def __init__(self,data=[]):
self.head=None
if data:
... | [
"2226171237@qq.com"
] | 2226171237@qq.com |
0211cad70e308995dd063d46bfc12225bb255a31 | 8ca4819a8901fccce40b3ac8952f3d7c1b120356 | /apps/profiles/migrations/0004_auto_20190111_1332.py | fde18835a584411749504ff28c616f331cf4a32f | [] | no_license | AKSoniWorld/OnlineExamination | 83e316305272068c87c8e13ac1e49947652c857a | 49ef6af57e9015b20f1ab2ae5f8738298047a2cd | refs/heads/master | 2022-02-20T21:36:08.973145 | 2019-10-01T06:52:29 | 2019-10-01T06:52:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # Generated by Django 2.1.1 on 2019-01-11 13:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0003_auto_20190110_1241'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='address',... | [
"noreply@github.com"
] | noreply@github.com |
bda86544ba194e1200e3f7e3ab29002ae4159d3e | 9d7d600bb3e5b0556af5401f86821a701ea40ed9 | /python/asycio-usage/callback.py | 8c36a7a5199401b3459df85acdff58f87b379408 | [
"Apache-2.0"
] | permissive | bzd111/HelloWorld | 8d734b68247705a6493fc00226e0a0e19bc8666e | 70f31af4d5267ecdb66256ca36a26c6a3bc66172 | refs/heads/master | 2023-01-09T09:56:32.905937 | 2021-02-23T11:48:10 | 2021-02-23T11:48:10 | 230,203,562 | 0 | 0 | Apache-2.0 | 2023-01-07T23:24:04 | 2019-12-26T05:54:06 | Jupyter Notebook | UTF-8 | Python | false | false | 466 | py | import asyncio
from asyncio import Future
async def foo():
await asyncio.sleep(10)
return 'Foo!'
def got_result(future: Future):
print(f'got the result! {future.result()}')
async def hello_world():
task = asyncio.create_task(foo())
task.add_done_callback(got_result)
print(task)
await a... | [
"zxc@gogogozxc.xyz"
] | zxc@gogogozxc.xyz |
c28058258b64bddbea651c92421a387801c56023 | 888f87b1455d34ef5687c97f72c0f57eab7a5be7 | /07-exercises/10-grades.py | 6218fc8a09a6ca0be88137185e8ef8634818d660 | [] | no_license | josue0ghost/Python-Exercises | dd4fff287341af55fac4b9e0f453cd9628099625 | 11037ecbc77b4f516ed1ffa8be89621d2f630c22 | refs/heads/main | 2023-07-02T19:11:25.918071 | 2021-08-10T08:31:53 | 2021-08-10T08:31:53 | 356,730,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
- Ask X student's grades
- Show how many student's passed
- Show how many student's failed
"""
student = int(input("How many students are?: "))
passed = 0
failed = 0
for count in range(1, student + 1):
grade = float(input(f"Student {count} grade: "))
if grade > 60:
passed += 1
else... | [
"josue0ghost@gmail.com"
] | josue0ghost@gmail.com |
4da972c219b6cceac38a67295640152f8467a244 | d4738162bf2558abb01e7e67191dc63ca2bc39f2 | /software/1/lstm-model.py | 78aff583fef4db686b0af9a5fcbbec6edffa4d4c | [] | no_license | ahgalila/masters-thesis | 63b93fa157bb430883c96d8bc7fddfb79f55bc83 | 05362b0627e117deb97ed6e1c06487b64883a3c9 | refs/heads/master | 2022-01-17T07:40:24.579903 | 2019-08-09T05:06:08 | 2019-08-09T05:06:08 | 198,347,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | from __future__ import division, print_function, absolute_import
from keras.models import Sequential
from keras.layers import LSTM, Dense
from keras.models import load_model
class LSTMModel(object):
def __init__(self, time_steps, hidden_layers, n_inputs, n_outputs):
# Model Parameters
... | [
"mail@ahmedabada.com"
] | mail@ahmedabada.com |
17507aad4331e9048db3cc88020bd421dc8350b6 | eada13056d3e11167981f0230a629dcccb08316e | /src/line_2d.py | 6ee5c04faf37c055d8e5b49651857f957ee118da | [] | no_license | dansonc/road_estimation | 4cf59a6c0e488f9dc78ff8d2713a8977bc9c0e33 | f08c1b1f25a816e2db677a7275fccf22a99d841d | refs/heads/master | 2022-04-10T07:23:13.456976 | 2020-03-25T17:23:44 | 2020-03-25T17:23:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py | """ Line in 2D
Author: Henry Zhang
Date:January 29, 2020
"""
# module
import numpy as np
from matplotlib import pyplot as plt
# parameters
# classes
class Line2D:
def __init__(self, a=0., b=0., c=0.):
self.a = a
self.b = b
self.c = c
self.normalize()
@classmethod
de... | [
"henryzhang19951213@gmail.com"
] | henryzhang19951213@gmail.com |
adfaf99ef9769ca17493fa95cf386acd2d5f018e | 63f046c8dd4bc4867fde6dd57ecb8e6b2d1e66b5 | /solutions/3rd-loops/l3_a7.py | 87eac1cc551ba0b26749224d2494ed4224b54c30 | [
"CC-BY-4.0"
] | permissive | Jhynn/programming-concepts-and-logic | a29dbd073425191ebed1c997d853f39e3f1a16a0 | 0ffa71c6259296813d3951f21e8d0d69dd523545 | refs/heads/main | 2023-06-27T16:53:51.192875 | 2021-08-02T21:41:40 | 2021-08-02T21:41:40 | 392,100,921 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | number = float(input('Type a number: '))
decreasingly = increasingly = unordered = False
previous = number
while number:
number = float(input('Type another number: '))
if number < previous:
decreasingly = True
elif number > previous:
increasingly = True
else:
unordered = True
... | [
"rock.matheus.mh@gmail.com"
] | rock.matheus.mh@gmail.com |
2579e1ddd9447025a1155119df8e7f7ec3185f44 | 73c639d3c4b3fc1975a7498fe50bb3736b6fe532 | /swift_ceilometer/rpmbuild/BUILD/ceilometer-2013.1.2/build/lib/ceilometer/objectstore/swift_middleware.py | 0a99a3354266573ac2d6f21f45e2acf7cfc8dcf1 | [
"Apache-2.0"
] | permissive | ironlumberman/OpenStack | 60cdb65849d61c93f6785d57d0d9e2ade946daf6 | d42dab5ab927e55bb723fee8defab48f3691d0ec | refs/heads/master | 2021-01-13T16:10:01.855668 | 2013-09-03T07:38:43 | 2013-09-03T07:38:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,572 | py | # -*- encoding: utf-8 -*-
#
# Copyright © 2012 eNovance <licensing@enovance.com>
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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://w... | [
"root@dmb.site"
] | root@dmb.site |
c877f808dbb3fa4ebcca5d32e1280451d71e0b3f | e89f17acda8291939f220cc8c30a244da93914b6 | /python code/Karatsuba Multiplication.py | 8f9be525bc5b5125c26d79d57eb5b62307aa5b29 | [] | no_license | atrothman/Data-Structures-and-Algos-from-scratch | 55907ffc1de92e4c4b62b6359beea0a7d34dae25 | 68e7b56414bbd8d2eb564c5238881d92eb43e02e | refs/heads/master | 2020-05-30T13:58:44.106824 | 2019-06-07T21:12:16 | 2019-06-07T21:12:16 | 189,773,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 6 22:59:42 2019
@author: Andrew
"""
import math
def Karatsuba_mult(X, Y):
x_s = str(X)
n = len(x_s)
y_s = str(Y)
m = len(y_s)
if(n==1 or m==1):
return(X*Y)
else:
A = int(x_s[0:math.floor(n/2)]) ... | [
"noreply@github.com"
] | noreply@github.com |
a1c65ebb04b55d8463492a293d2cd3aef3a7db92 | a965a40aec1a89186a3128f7994652a9664127b8 | /jira_api/settings.py | 5746bbaaeb22559b47cb49644054fbbe9c5ca248 | [] | no_license | hiro08/jira_api | 5a58f4a2623465d0867f7b8381eee42dab53a0ac | 91cefceedc53dcd0582d6d590e247abb6038f49e | refs/heads/master | 2023-06-24T07:03:20.530679 | 2021-07-25T08:17:24 | 2021-07-25T08:17:24 | 389,296,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,725 | py | """
Django settings for jira_api project.
Generated by 'django-admin startproject' using Django 3.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/
"""
from pathlib ... | [
"hiroakikawana@gmail.com"
] | hiroakikawana@gmail.com |
b990bc7023853d6e1a96e80d4c0ed33956cde054 | e4e60524c428dae00ab84eff7b539f9f8196bf94 | /server.py | 8a503333f7c3261d3fde28d95abd0daa12af6a77 | [
"Apache-2.0"
] | permissive | gsundeep-tech/split-expense-api | 78a63218cfb4d2e06b2ed99eff105548082040eb | e02ae83d2dfd3009d66f6ef218660412cc868be0 | refs/heads/development | 2023-04-30T05:14:10.773315 | 2021-05-08T03:24:47 | 2021-05-08T03:24:47 | 339,639,343 | 0 | 0 | Apache-2.0 | 2021-05-18T07:24:41 | 2021-02-17T07:08:38 | Python | UTF-8 | Python | false | false | 350 | py | import os
from split_expenses_api.api.app import create_app
use_debugger = os.environ.get("DEBUG", False)
host = os.environ.get("HOST", "0.0.0.0")
port = os.environ.get("PORT", "5000")
app = create_app()
if __name__ == "__main__":
app.run(use_debugger=use_debugger,
use_reloader=True,
host... | [
"gsundeep.tech@gmail.com"
] | gsundeep.tech@gmail.com |
0f88cd48445d5fdbacba254c8ea1fd3aaa85b14f | cba7a3809c1d642d414f16c7b69e0d71aba9d029 | /project/migrations/0006_auto_20201209_2233.py | 8cdaf5b885a47d276f13f09c8ea60d40fcccfdf5 | [
"MIT"
] | permissive | Daniyal56/mysite | 9ead0adcda9b6a56928f46b2e9e64cfa2391cafb | 71c5eb9a63c16169b8f8fe0a6958fc5be4e9ab28 | refs/heads/main | 2023-01-23T01:25:44.228013 | 2020-12-10T09:28:04 | 2020-12-10T09:28:04 | 320,079,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2020-12-10 06:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project', '0005_auto_20201209_2137'),
]
operations = [
migrations.AlterFiel... | [
"scdaniyalam@gmail.com"
] | scdaniyalam@gmail.com |
32de413aeb5cf0e0c6a5e8ba621fb4d62f92ef03 | e872e1136887cd6753ae292939e4656130c8f7d9 | /api/urls.py | f68962bb645e1c84bfe889e90658576f6e1b915b | [
"MIT"
] | permissive | florimondmanca/personal-api | 92e9d3ba8e3b16466ba54f5e9ea0493030e9cf95 | 6300f965d3f51d1bf5f10cf1eb15d673bd627631 | refs/heads/master | 2020-03-22T14:48:06.087822 | 2019-11-16T15:31:05 | 2019-11-16T15:31:05 | 140,206,398 | 4 | 1 | MIT | 2019-10-21T19:24:44 | 2018-07-08T22:16:47 | Python | UTF-8 | Python | false | false | 423 | py | """API URLs."""
from django.urls import path
from rest_framework.routers import DefaultRouter
import blog.views
from .views import obtain_auth_token
# Enable view names as 'api:...'
app_name = "api"
router = DefaultRouter()
# Blog endpoints
router.register("posts", blog.views.PostViewSet)
router.register("popular-... | [
"florimond.manca@gmail.com"
] | florimond.manca@gmail.com |
5bb04287c575be93c1e557c81ce7f1c39e2ea1ad | 1119017958cb7b3cacba073723c9bbe6f20d273c | /evaluate.py | 7d5e4071843d8bde721ac4f031e4db6d01db7ae9 | [] | no_license | zhangbanxian123/pytorch_demo | 958dcf79f901001148a1236ebbeb29e4f2c3e9aa | fbe79d0e7429161289e35f133bb5f8be50ab1d05 | refs/heads/master | 2021-04-16T18:31:41.087680 | 2020-03-31T03:51:04 | 2020-03-31T03:51:04 | 249,375,486 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,850 | py | import argparse
import logging
import os
import numpy as np
import torch
from torch.autograd import Variable
import utils
import model.net as net
import model.data_loader as data_loader
def evaluate(model, loss_fn, dataloader, metrics, args):
"""验证模型.
Args:
model: (torch.nn.Module) 网络结构
los... | [
"1793605580@qq.com"
] | 1793605580@qq.com |
97b3a57cfd6020fc40c236296004864bb838d3b5 | a00f703ac6561ac99066c7220075dd4a420bb3ff | /goiteens/models/post_manager.py | 34947ba95b09a3a68bd37065db233d762cdb45c5 | [] | no_license | volodymyrhusak/goiteens_docker | 9c3e56091218f3e7633dc5d94816959254f5c8ca | 618722fce82e85fe13f8c60ee76216fbf13338a7 | refs/heads/master | 2022-12-22T02:01:43.589833 | 2018-03-14T20:55:26 | 2018-03-14T20:55:26 | 125,272,517 | 0 | 0 | null | 2022-11-04T19:17:52 | 2018-03-14T20:55:58 | Python | UTF-8 | Python | false | false | 1,172 | py | from models.model import PostModel ,UserModel ,CommentsModel
from models.base_manager import SNBaseManager
from models.user_manager import UserManager
class PostManager(SNBaseManager):
def __init__(self):
class_model = PostModel
super(PostManager, self).__init__(class_model)
def get_posts(... | [
"vovatrap@gmail.com"
] | vovatrap@gmail.com |
13a78f57434e22741935fbd9e1d8636b48323f32 | 78a5be52f65e9bdd45db56a50b240f4068c6273d | /docs/conf.py | 821b47c53eaa68d964092e35d2850524012f5213 | [
"MIT"
] | permissive | markpasc/arghlog | d844c0668795e8d15a100e4868fe6d6ae82fa88c | 268c5936922b6b5e1f91acaf0390c1bf85d90dd9 | refs/heads/master | 2016-09-08T00:42:53.009140 | 2013-09-04T16:09:20 | 2013-09-04T16:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,230 | py | # -*- coding: utf-8 -*-
#
# termtool documentation build configuration file, created by
# sphinx-quickstart on Sat Jun 4 22:59:19 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"markpasc@markpasc.org"
] | markpasc@markpasc.org |
3c3a6885e42c46b2529749d5f441383421fd75a3 | b2f9536c3c90aa85ae4b2e4557c5ec3049d37c80 | /Course_2/week1_graphs_and_SCC/CSS.py | 809ff338af74786e84b836034c0f8750cf34e305 | [] | no_license | KristianMSchmidt/Algorithms-specialization-stanford- | a48880d3643822980946181bb7534882870d998a | e39d62aa6401cc18d9289d28b34763aac447afb8 | refs/heads/master | 2022-12-01T06:24:43.803513 | 2020-08-14T15:43:41 | 2020-08-14T15:43:41 | 287,567,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,529 | py | import sys
#import resource
#resource.setrlimit(resource.RLIMIT_STACK, (2**29,-1))
sys.setrecursionlimit(2 ** 20)
class Node:
def __init__(self, value):
self._value = value
self._in_arrows = set()
self._out_arrows = set()
self._finish_time = None
self._explored = False
... | [
"34898026+KristianMSchmidt@users.noreply.github.com"
] | 34898026+KristianMSchmidt@users.noreply.github.com |
48ccc216138119b969d7df098ef310ee39a70b0e | f443d6eebab070bfd4f47a2dfbcb76988b0f12f0 | /chat/migrations/0001_initial.py | fccd53ca4eb1e14b11ed07e86fe1252b189a746a | [] | no_license | mkawsar/django-community | b903d09c48ee2fdcedd7790daf674ab42768ba02 | 9af80452cd4dbe87f5f53396cd192cb27ceaee30 | refs/heads/master | 2022-12-10T12:39:48.874638 | 2019-09-06T06:18:59 | 2019-09-06T06:18:59 | 171,521,326 | 0 | 0 | null | 2022-12-08T06:02:50 | 2019-02-19T17:48:46 | JavaScript | UTF-8 | Python | false | false | 924 | py | # Generated by Django 2.1.7 on 2019-08-20 04:40
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... | [
"kawsar.diu888@gmail.com"
] | kawsar.diu888@gmail.com |
69ffc4cc4bb8107d5bbd3bd703b1663141d92160 | e7407efb2f22a80d6288a5d15712500871a29f48 | /playground/htm-tensorflow/layers/layer.py | 50fb0e71660c19513a12b060fc645400ef06f86e | [] | no_license | Digi-Metal/HTM-AnomalyDetection | 8f2669d09f556b5b4cb3ca39741eac41bb395e68 | a0b4956c567208d6f62f6bcad1a02ddfeaa99215 | refs/heads/master | 2021-03-18T06:23:00.194638 | 2020-01-30T00:18:47 | 2020-01-30T00:18:47 | 247,052,644 | 1 | 0 | null | 2020-03-13T11:08:53 | 2020-03-13T11:08:52 | null | UTF-8 | Python | false | false | 726 | py | import tensorflow as tf
class Layer:
"""
Represents a layer of computation
"""
def __init__(self):
self.is_built = False
self.train_ops = []
def build(self, input_shape):
"""
Builds variables
"""
assert self.is_built == False
self.is_built = ... | [
"mingj2@student.unimelb.edu.au"
] | mingj2@student.unimelb.edu.au |
6db549ebb8e3a9588b1d1169df9916f01a844799 | 859e2fe29ea8007b1af8a1840a8ac577935c98b6 | /chapter6/ex_5_1-1ex.py | efe0c7f572972c3487ba0a4f98187137b176b42f | [] | no_license | Heansum/pythonStudy | 1b79e26b352e931d3633fa401c1de504a9932cad | 098c4076fc439b5b34e736331eb3e405d839a61f | refs/heads/master | 2023-03-27T21:33:20.462666 | 2021-03-30T03:12:48 | 2021-03-30T03:12:48 | 348,167,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | num = int(input())
if num == 0:
print("프로그램 종료")
elif num > 0:
while num >= 1:
if num % 3 != 0:
print(num)
num -= 1
elif num < 0:
while num <= 1:
if num % 3 != 0:
print(num)
num += 1
| [
"heansum1556@gmail.com"
] | heansum1556@gmail.com |
1f7bd12b7d36ffe0542a7777cfe6dee3c1098665 | 6d0f8af5a1158218552b40f1b829d2a9779cd196 | /contrib/wallettools/walletchangepass.py | 932d71f13ffbe562b5b9f494620c651b2e9763e0 | [
"MIT"
] | permissive | machtcoin/MachtCoin | 7f561c4b595f1d972b603387b2f9d4e37009ced0 | 3c54e3fac7c4942324db13dc705a56b16309b448 | refs/heads/master | 2021-04-28T20:43:56.037208 | 2018-02-19T13:51:07 | 2018-02-19T13:51:07 | 121,932,805 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | from jsonrpc import ServiceProxy
access = ServiceProxy("http://127.0.0.1:11333")
pwd = raw_input("Enter old wallet passphrase: ")
pwd2 = raw_input("Enter new wallet passphrase: ")
access.walletpassphrasechange(pwd, pwd2) | [
"dev@machtcoin.co"
] | dev@machtcoin.co |
ac343e0155b60ec2f81762e1c5236728c265ab91 | 7fe7c83f20b111bd66369029a06aca1b49026e92 | /dangdang/log_reg/views.py | f61fc7d74c5ed38fe6e72af666ba206da2936800 | [] | no_license | 520zhangjie520/175dangdang | ba9d8e12098d897cbd9d7d22119faae57833fee5 | e30658f673fdf4e9bfc276f47ae893367911ccf5 | refs/heads/master | 2020-09-08T01:21:27.948065 | 2019-11-16T11:32:28 | 2019-11-16T11:32:28 | 220,969,545 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,134 | py | import random
import string
from django.db import transaction
from django.http import HttpResponse
from django.shortcuts import render, redirect
from index.models import TUser
n=0
# Create your views here.
# 加密算法
import hashlib
def go_pwd(pwd):
pwd=hashlib.sha256(pwd.encode())
pwd=pwd.hexdigest()
return pw... | [
"508610057@qq.com"
] | 508610057@qq.com |
f5e95a313a5064d77f6ad31f07fc88b901837797 | dacf6265da9885171199a1dbf994922d069ae0d7 | /test_assignment/groups/migrations/0011_pairingmodel_hero1name.py | bc9a3518c177b717fa7fa72881eea35a1a08390e | [] | no_license | Gulaabihaathee/Test-Assignment | 54b92562de31bac4dc40e875b1b5ef344f184b4f | d004f86fd60dcdeffb32864f65d43872d219e07c | refs/heads/master | 2020-03-19T21:31:48.584173 | 2018-06-18T19:23:00 | 2018-06-18T19:23:00 | 136,941,497 | 0 | 0 | null | 2018-06-18T19:21:17 | 2018-06-11T14:56:33 | Python | UTF-8 | Python | false | false | 410 | py | # Generated by Django 2.0.5 on 2018-06-17 14:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('groups', '0010_pairingmodel'),
]
operations = [
migrations.AddField(
model_name='pairingmodel',
name='hero1name',
... | [
"gulaabihaathee@gmail.com"
] | gulaabihaathee@gmail.com |
0d27750ce99c8c18a5923c64632244d105516aa3 | b82dfda86d628dc54af67efe95b39073a8523f24 | /snakeGamePython/homepage.py | 657d2d20643dad9f88c834f913f4789dfeff0a0f | [] | no_license | ShaheensWeb/PythonCode | 3b2e167a2db42aa7b93498d7309672e0c974df8d | 359c6c3fa8648ed1c35eb43d7387090778e9730c | refs/heads/master | 2020-04-05T23:17:24.822097 | 2014-03-28T02:38:07 | 2014-03-28T02:38:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,438 | py | '''
Name: Shaheen Ghazazani
Class: Comp1405b
Date: Nov 11th, 2013
Assignment: Make a PYGAME A#8
Prof: Pat Morin
Due Date: Nov 18th, 2013
'''
from __future__ import division
import pygame, random, sys
from pygame.locals import *
#from snakegame import *
import math
class Start_Screen(object):
def... | [
"shaheenghazazani@gmail.com"
] | shaheenghazazani@gmail.com |
84185395f885534267ea776398ebec7972940bfc | c33e2687611ed31435230fec97e19af9216fbcc0 | /經典題庫百題/分類題庫/ZeroJudge.tw/version.py | daae71ba2aff1e7f3e38188f799edfa0ad99cacf | [] | no_license | jiangsir/107-HighSchoolPython | e44ff5ee6d4c0468c789fb126b9da174b437448c | a04634de9866d16f3805a2e724766647de67eeab | refs/heads/master | 2020-04-13T17:29:01.249234 | 2019-06-14T08:41:05 | 2019-06-14T08:41:05 | 163,349,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | # 比較版本 #比較 #list比較
# versions = ['3.2.1', '3.2.12', '3.12.0',
# '3.2', '3.1', '3.2.0', '3.2.20', '3.1.3']
def compareall():
for i in range(len(versions)):
for j in range(i, len(versions)):
compare2(versions[i], versions[j])
def compare1(s1, s2):
'''
l1, l2 長度不一定一樣 比如 3.2... | [
"jiangzero@gmail.com"
] | jiangzero@gmail.com |
356845675830efe2d5824c21600fcad33f696ed9 | 370102662418eaa5bb841e23d4253242ad1caecb | /WebScrap.py | 637b6a07bc5c300083421d90aab1888c7a542e8e | [] | no_license | DipalModi18/Fake-News-Detection | 43992ddf3fdd354b273faba0b92b9f105f8e47c2 | b8d3aa852242410464637c42a36fdd754c843530 | refs/heads/master | 2022-11-28T02:03:28.978685 | 2020-08-10T05:27:39 | 2020-08-10T05:27:39 | 283,576,713 | 0 | 0 | null | 2020-08-10T05:19:59 | 2020-07-29T18:45:36 | Jupyter Notebook | UTF-8 | Python | false | false | 221 | py | from newsplease import NewsPlease
article = NewsPlease.from_url('https://www.nytimes.com/interactive/projects/cp/opinion/election-night-2016/paul-krugman-the-economic-fallout')
print(article.title)
print(article.maintext) | [
"arpitkpatel@yahoo.com"
] | arpitkpatel@yahoo.com |
641cf3b122ff8250505462e1748406e61cd668ae | cd052f960846ea33e22abdded3106fb492f16c31 | /爬虫项目/spider/spiders/pdd_scroll_activity_v1.py | d403d0e6762fc4b10a4003e7d587fa88ba3abacb | [] | no_license | byst4nder/his_spider | 2d96457b70894c36506e8061d8a3201ac337a5d0 | a51e31acff41292e568ac22b0e213e6cb48218fa | refs/heads/master | 2020-07-21T12:06:28.952083 | 2019-09-06T14:25:58 | 2019-09-06T14:25:58 | 206,857,595 | 1 | 0 | null | 2019-09-06T19:04:02 | 2019-09-06T19:04:02 | null | UTF-8 | Python | false | false | 13,470 | py | # -*- coding: utf-8 -*-
# 首页滚动栏活动信息
import logging
import os
import scrapy
import json, time, sys, random, urllib, pyssdb, re
from spider.items import CategoryItem
from urllib import parse as urlparse
##import mq.mq as mq
##import ssdb.ssdbapi
class PddScrollActivityNewSpider(scrapy.Spider):
name... | [
"mac@macdeMacBook-Pro.local"
] | mac@macdeMacBook-Pro.local |
0071f6d25357b403c468cee9f14e317f1172b23f | a0488ed86f297f5f18864bf3f317dbed48b3b00d | /setup.py | 1dafa036d3e90c0bcceec24674af2c2720c35ab2 | [
"MIT"
] | permissive | DamianArado/moya-techblog | 7aefeea5bb74fa410e7cf896a83c0af0f4b0d25c | 4f7d606b22773db40850b742945e83e328c63bb7 | refs/heads/master | 2021-12-22T02:53:40.535675 | 2017-10-09T14:07:59 | 2017-10-09T14:07:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from setuptools import setuptools
VERSION = "0.1.0"
setup(
name='techblog',
version=VERSION,
description="Blog for Coders and Photographers",
zip_safe=False,
license="MIT",
author="Will McGugan",
author_email="willmcgugan@gmail.com",
url="https://github.com/moyaproject/moya-techblog",
... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
64682ce640e5e4b715a0e6e3a0633fb768d09b7e | 14d3156d52b3d0f92b8c4d35dd6991768441322e | /spice_1_0_spyware_win32/spice/SendEmail.py | 8a3455b75233f7b7c768a350effb2d3501fc1a46 | [] | no_license | zunayedhassan/spice_spyware | 77b3245a28de6f75548363fd61e755a1f44b489f | 0bd924f21bf4d507933b8f196734c6cd47b44529 | refs/heads/master | 2021-01-10T01:50:43.116427 | 2016-03-22T11:14:42 | 2016-03-22T11:14:42 | 54,468,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Zunayed Hassan'
import time
import os
import threading
import smtplib
from email.mime.multipart import *
from email.utils import *
from email.utils import COMMASPACE
from email.mime.text import *
from email.mime.base import *
from email.encoders import *
from... | [
"ZunayedHassanBD@gmail.com"
] | ZunayedHassanBD@gmail.com |
04b8e691392e846516e006193bd07cee2f36da38 | 66e6055af50dabb073079e3776c9d7add6aed7ce | /api/utils.py | 6c9c4e9ae48faaf68896778270173023f6292537 | [] | no_license | anisimovkv/aiohttp-rest-api | dc248aeedd3f1c4bf489c193f56fc2b1e8b958a2 | f93825acd575cbc15b4512389b3bbede13bd3229 | refs/heads/master | 2023-03-03T17:15:39.095226 | 2021-02-07T20:45:04 | 2021-02-07T20:45:04 | 336,886,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from aiohttp import web
def login_required(func):
async def wrapper(request):
if not request.headers.get('user', None) \
and not request.headers.get('Authorization', None):
return web.json_response({'Error': 'Auth required'}, status=401)
return await func(request)
r... | [
"konstantin.anisimov@eosda.com"
] | konstantin.anisimov@eosda.com |
c6cb8ca5ce4ef25527c5bf4e208fb801b958a222 | 71bd7e5cee407f27ea601eba99431a7d71c0ca18 | /marks/urls.py | cbff57042b104c1cc07156d9b4c5aa92f8038f38 | [] | no_license | tinashemahwenda/django-exam-position-app | 3fa9ad0af8695943e6f49c693e4a26ef2d2f023c | 787f501ffb55c1f6dc52ade8c84e3a04a7bebe13 | refs/heads/master | 2023-03-19T22:43:34.829722 | 2021-03-20T14:07:37 | 2021-03-20T14:07:37 | 183,702,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.table,name='marks-table'),
] | [
"40965708+tinashemahwenda@users.noreply.github.com"
] | 40965708+tinashemahwenda@users.noreply.github.com |
a2c26d53f59e4315f0c13f9eb58dbb953426439d | 4d264aa58879ef0dc2de8b4fc1f451e9a5d07ddf | /modules/urban.py | cef0c24e07f3a2bf2dcc4e7abf82ac8789bd027f | [
"MIT"
] | permissive | andimiller/twistedbot | 6d74822db6be56fd3f538615f7afa2675c3a1482 | f462385ab951f1b74e19a2ebb6b3d58da4e2a03f | refs/heads/master | 2021-01-10T14:30:55.694947 | 2017-10-12T16:36:20 | 2017-10-12T16:36:20 | 45,875,119 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | #!/usr/bin/env python
import urllib
import re, htmlentitydefs
from BeautifulSoup import BeautifulSoup
def unescape(text):
def fixup(m):
text = m.group(0)
if text[:2] == "&#":
# character reference
try:
if text[:3] == "&#x":
return unichr(i... | [
"andi@andimiller.net"
] | andi@andimiller.net |
8ff11b15220758d6e15ed630012105fb58803a5a | 60a76c1840323939cefd7ab52d427f1d8355f169 | /kdtest/pointprint.py | 3eba1062cff6faf5cd20aa274f4e09202843ed0b | [] | no_license | davidmoreno/waiwhereami | 736d1a072955d94f87930ad3bfb0a9fa4b3e1600 | 65691b37f6bfba486380acaa3b3553d3a5ca7124 | refs/heads/master | 2020-04-25T10:33:51.216214 | 2008-12-06T17:02:26 | 2008-12-06T17:02:26 | 34,042,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | #!/usr/bin/python
from data import data
print 'loaded points'
minx=min(map(lambda x:x[0],data))
miny=min(map(lambda x:x[1],data))
maxx=max(map(lambda x:x[0],data))
maxy=max(map(lambda x:x[1],data))
print 'calculated mins and maxs'
print len(data)
print minx,miny,maxx,maxy
def remap(resx,resy):
return map(lambda x... | [
"monjemono@c62e0308-b7f0-11dd-a720-8bda5143708b"
] | monjemono@c62e0308-b7f0-11dd-a720-8bda5143708b |
1b2565db6961fe05e8795c79a40302080b830284 | 68b4cf94a24ed40b69153e60c8973d6f73a85ec1 | /ex009.py | abd394a533b954edbba8523ad11c801797ecbe85 | [] | no_license | vbuzato/Exercises-Python | 9cf1175fd5cd3267669dd0882402d70c8fdb910f | ea0dd93741ac557b0e59ff52a488506e428765f4 | refs/heads/main | 2023-01-28T05:09:45.957518 | 2020-12-05T21:37:31 | 2020-12-05T21:37:31 | 318,892,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | n = int(input('Digite um número: '))
print('{} x 1 = {}'.format(n, n*1))
print('{} x 2 = {}'.format(n, n*2))
print('{} x 3 = {}'.format(n, n*3))
print('{} x 4 = {}'.format(n, n*4))
print('{} x 5 = {}'.format(n, n*5))
print('{} x 6 = {}'.format(n, n*6))
print('{} x 7 = {}'.format(n, n*7))
print('{} x 8 = {}'.for... | [
"viniciusbuzato@gmail.com"
] | viniciusbuzato@gmail.com |
1161c88b6f97450eb92ecddc96a9913d4b4cdca6 | 6609c26b4ed72c156104ce282c3cf88c6aac59f6 | /chapter09/example02.py | 65652c91aa68ad1a2e42702ecbcabdda16ed64fc | [
"MIT"
] | permissive | yordanivh/intro_to_cs_w_python | 4ab9dbbc2963b285b22cacb6648d1300fded18ce | eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a | refs/heads/master | 2020-09-06T12:25:23.362118 | 2020-02-14T14:07:07 | 2020-02-14T14:07:07 | 220,423,698 | 0 | 0 | MIT | 2020-02-14T14:07:08 | 2019-11-08T08:41:25 | Python | UTF-8 | Python | false | false | 179 | py | #variable holding the last value of the loop
speed = 2
velocities = [0.0, 9.81, 19.62, 29.43]
for speed in velocities:
print('Metric',speed, 'm/sec')
print('Final:', speed)
| [
"yordan@hashicorp.com"
] | yordan@hashicorp.com |
6a1c3d479ea9cc372e24d01b041009b9a14cc59b | 1a26938f9a9f6375804b1671e050bc32a933fcbc | /estaciones/admin.py | 5814623b2714cf9cc5e96aa9a1e366716761105f | [] | no_license | RicardoBurboa/cyber-gamer | f6c475e8bb7191bbc88fdcbcee19c12824d20909 | e1cdc17b6833ccba5be4fe871c541280f93aad5a | refs/heads/main | 2023-03-31T04:51:00.118789 | 2021-04-03T17:27:07 | 2021-04-03T17:27:07 | 354,349,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.contrib import admin
from .models import Estacion
admin.site.register(Estacion) | [
"noreply@github.com"
] | noreply@github.com |
61d025793e52cb79db17b160d78316d83b396cea | 4923baa67b0eb7038214c5140d38a724a4e382aa | /users_data_clean.py | 3b9a2796bc987e195f95971b9fb3634248fe532e | [] | no_license | ianmacomber/kaggle-airbnb | f1392144ed2e69b30db81aa2e377c020c0ca6a9d | 6494dbf96b3f503a9cd9229148c000d5d2abde74 | refs/heads/master | 2021-01-10T10:13:25.169699 | 2016-02-15T03:44:49 | 2016-02-15T03:44:49 | 49,469,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,392 | py | # Kaggle Users Data Clean
# I'm going to break out my python files based on what I use them for
# This is where I clean all my user data
'''
In this challenge, you are given a list of users along with their demographics, web session records,
and some summary statistics. You are asked to predict which country a new us... | [
"ian.d.macomber@gmail.com"
] | ian.d.macomber@gmail.com |
01fa6bacbb73a2d447e30cf4b8e4920c7f051557 | 50a6f90c46ee83e667de08be9c74acbaa792dbc5 | /python/timeseries.py | 70d73e0ca869e4e62d52871ce0b2a56e246504b9 | [
"MIT"
] | permissive | cpausmit/Kraken | e8f51a46e5d181e855bb9d2276b66c67e5842888 | e79a19f6a4570e10ae52e543a5af9b2a3414c965 | refs/heads/master | 2023-08-16T21:36:54.426014 | 2023-08-15T14:11:08 | 2023-08-15T14:11:08 | 75,231,636 | 0 | 2 | MIT | 2018-02-08T14:25:53 | 2016-11-30T22:09:47 | Python | UTF-8 | Python | false | false | 9,050 | py | import os
import datetime,time
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mlp
from optparse import OptionParser
import jsum
BASE = "%s/moni"%(os.getenv('KRAKEN_WORK'))
EXT = "moni"
NOW = datetime.datetime.now().strftime("%m/%d/%y, %H:%M")
class Timeseries:
"Time series of job summari... | [
"paus@mit.edu"
] | paus@mit.edu |
010eb71c6dba502bbd8bac02f93c78a83c2d7e0f | ccda7b39e2b4ce1f3c0869f2390712867b65b026 | /source code/ex07.py | 251c87a792875ec31de6fc203fac3ba04c180d0d | [] | no_license | ltc1996/lpthw | 008f784b9cd3fb3deac59623a12f3e724ef10ef7 | 522bbf2a59204aa7bc41b3fcb3aca0e317978f18 | refs/heads/master | 2020-04-24T01:28:54.967356 | 2019-03-24T13:27:21 | 2019-03-24T13:27:21 | 171,599,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | print("mary had a little lamb")
print("its fleece was white as {}.".format('snow'))
print("and everywhere mary went")
print("." * 10)
end1 = "C"
end2 = "h"
end3 = "e"
end4 = end3
end5 = "s"
end6 = end3
end7 = "B"
end8 = "u"
end9 = "r"
end10 = "g"
end11 = end3
end12 = "r"
print(end1 + end2 + end3 + end4 + end5 + end6,... | [
"543869424@qq.com"
] | 543869424@qq.com |
55975b35d008f8b4dddbc1c5c47ae99ff5a4998d | 04e1c60ac7864a0bdcdd41026a2336b1ff699613 | /model/ll.py | f5098ecc5ce3319e31d675292eb699f307ed938b | [] | no_license | jianzhnie/RetinaNet_Pytorch | 00ec318d2e57c6b646f193e4d3a066f9891762b3 | 03679766847757f28bb9410c31ddaf99adf524c8 | refs/heads/master | 2020-09-22T00:09:18.617565 | 2019-11-30T08:27:36 | 2019-11-30T08:27:36 | 224,981,680 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,015 | py |
from __future__ import print_function
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class FocalLoss(nn.Module):
def __init__(self, num_classes):
super(FocalLoss, self).__init__()
self.num_classes = num_classes
def _one_hot_embeding(sel... | [
"jianzhnie@126.com"
] | jianzhnie@126.com |
5493707f3aa5a58f2e02912d4cd175ca13ecf03d | 54fb9de920fd7d64520c7251b108ad1a5dabafc2 | /tweet/models.py | 64e57fd3ec792b06cd0fd64ee161bbae78d39d46 | [
"MIT"
] | permissive | jkube38/twitterclone | 4bd2b3cd8450dfe0e50e5f412060f822fd2e46e6 | f25f2cdd81dcb0e2f12e8511c31f46cd0f1ea40f | refs/heads/main | 2023-04-23T09:17:58.683684 | 2021-05-14T15:06:44 | 2021-05-14T15:06:44 | 367,244,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from django.db import models
from twitteruser.models import Tweeter
from django.utils import timezone
# Create your models here.
class Tweet(models.Model):
body = models.CharField(max_length=140)
author = models.ForeignKey(
Tweeter,
related_name='tweet_author',
on_delete=mo... | [
"jkube29@gmail.com"
] | jkube29@gmail.com |
43d16f0988ab455337fcb6202e1a6eb4f5ad6498 | 91691cc37997ab4c7311399db5a1b1f7a7a90e39 | /shibadopt/shibadopt/urls.py | 62db449bafad2ef06a79b5d4d6a4dac06760f53a | [] | no_license | hector323/django-example | eaeee140efb44675ab9ee7fe0a1140ee778e4a8a | 576e630ee1268af6d6cdf6c93a02d1fdad3ae83e | refs/heads/main | 2023-02-07T13:15:24.451029 | 2020-12-30T02:01:41 | 2020-12-30T02:01:41 | 324,910,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | """shibadopt URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"53808824+hector323@users.noreply.github.com"
] | 53808824+hector323@users.noreply.github.com |
15a1b24d286fc19043e60ed5c1e76bdc7b0136fe | 66c72be1e369df2289715905db4ec5b3f7f4e48c | /funcs/patch_loader.py | f7a2c9e05b45e44a86d720805ad6e3c76a6e4b67 | [
"Apache-2.0"
] | permissive | wenchenhui/research | eb4cd54091b8c61540692cba057c6cbcadb7e036 | 22d7b7aad2aa892f1090418f58ebc0ec8759cf9c | refs/heads/master | 2021-07-25T21:05:26.934329 | 2017-11-07T11:56:35 | 2017-11-07T11:56:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,536 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 19 16:29:21 2017
@author: eduardo
"""
import glob
import os
import random
import threading
import numpy as np
from scipy.misc import imread
classes = ["positive","negative"]
directories = ["train","validation"]
initial_path = "/home/eduardo/dataset_test/"
list_of_files... | [
"edux300@gmail.com"
] | edux300@gmail.com |
f0ff4f0567586c4dc9dd54b5497b4819f77b2378 | 855416c669f765e4cd0f5a749e82c112641a9e11 | /Interest.blog-1.1/utils/public.py | 9cdb4342017ac3c51968c900609d649d1726535b | [
"MIT"
] | permissive | chenzhenpin/my_flask | a2f63422921d4b73c25a8e093ad09e6a48f8b568 | 0c101b7a1aa01283a0b8e3ef9b7555750ea03ecb | refs/heads/master | 2022-11-28T20:16:35.854225 | 2018-11-27T16:04:29 | 2018-11-27T16:04:29 | 159,362,205 | 0 | 0 | null | 2022-11-22T01:37:36 | 2018-11-27T16:02:52 | CSS | UTF-8 | Python | false | false | 5,254 | py | # -*- coding:utf8 -*-
import requests
import hashlib
import datetime
import random
import upyun
from uuid import uuid4
from log import Syslog
from config import SSO, MYSQL, PLUGINS
from torndb import Connection
from flask import g
#Something public variable
md5 = lambda pwd:hashlib.md5(pwd).hexdigest()
tod... | [
"1595347682@qq.com"
] | 1595347682@qq.com |
8d506e901341ca9f597b8e0d69a411d5cffd3adc | fdb950317e348baa10975a4b0fff55e4e39eb040 | /htdocs/plotting/auto/scripts100/p125.py | a7b5022c90e03c56ab1ff9b6ce200b8bfb8a8e1a | [
"MIT"
] | permissive | MediaPlex/iem | 5d4938f14d0c1b5c1ea4f46f8e05c84a88727fed | b6bcb1c0cedc8a75740b78f830742a765e21ab8b | refs/heads/main | 2023-04-26T10:40:50.786980 | 2021-05-30T11:43:28 | 2021-05-30T11:43:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,361 | py | """Maps of averages"""
import calendar
from collections import OrderedDict
import datetime
import numpy as np
from pandas.io.sql import read_sql
from pyiem.plot import MapPlot, get_cmap
from pyiem.util import get_autoplot_context, get_dbconn
from pyiem.exceptions import NoDataFound
import cartopy.crs as ccrs
PDICT = ... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
6adf53cebb80d1772bed5402847ef50ba0f46646 | 21429212ed7a5ac5b272f22896bed04f401b17cc | /pokemon_entities/migrations/0005_auto_20210412_2157.py | c3e926838942927f2ee61dfb66494e5aac94da88 | [] | no_license | fdrov/pokemon_map | 3e50497d0b0bdd465ac463e4127ae158c32ea090 | 74e3d754fae7220a559bfa39e25abb9ff50d7075 | refs/heads/master | 2023-04-05T04:56:15.982222 | 2021-04-20T17:41:40 | 2021-04-20T17:41:40 | 355,661,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # Generated by Django 3.1.8 on 2021-04-12 18:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pokemon_entities', '0004_pokemon_description'),
]
operations = [
migrations.AddField(
model_name='pokemon',
name='ti... | [
"oldgot@gmail.com"
] | oldgot@gmail.com |
d3c12ecc3bf557c52a384c93b97f64646bb713d1 | 871fde211d04008ff03c4bafe55cca4a5ecbab39 | /BacHelp Discord Bot/src/threads/CommandsHandlerThread.py | 516351ac6acb7d6498b138f1c7286491bfd7617a | [] | no_license | alinursu/resume | 8f12cb38bf8a5a54715a91bcf5664420fdca52c9 | 2f5905681e24f593cd8a728e239c886c25ac0602 | refs/heads/master | 2023-06-03T17:35:13.884113 | 2021-06-13T11:09:56 | 2021-06-13T11:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | import discord
from discord.ext import tasks
from src import Globals
from src.commands.Adauga import adauga, adauga_error
from src.commands.Punctaj import punctaj, punctaj_error
from src.commands.Kick import kick, kick_error
from src.commands.Ban import ban, ban_error
from src.commands.Avertisment import avertisment, ... | [
"33602125+ursualin7890@users.noreply.github.com"
] | 33602125+ursualin7890@users.noreply.github.com |
aaf6b5286be9fd90854b5eead1839224c83e2099 | 92c7e8450e87af623b1147d96c4b820afea27faf | /myenv/bin/pip2.7 | 1d3d0e92f02d3800957a14b74ad958a402e3d8ea | [] | no_license | pg12575/PythonOpenHAB | fd53930ee77c5fdb3bb535b96fbbe084ed7fedb9 | bf9dc68eb14cd651c527fa7416dd1df03c5372fb | refs/heads/master | 2021-09-08T08:21:55.280702 | 2018-03-08T15:28:22 | 2018-03-08T15:28:22 | 87,992,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | 7 | #!/home/p-gupta/Documents/AssistedLivingStudio/PythonUI/myenv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"prankit.gupta@brl.ac.uk"
] | prankit.gupta@brl.ac.uk |
d811f0fa00d17232f89aad5e9a858b2478978a6e | 67c00ec5f7aa0ed76747c7819827ed70dba4e0d3 | /dataVisual.py | bbfddd4ea4a38e70b17064160e51a79557420cc3 | [] | no_license | DejaVuMan/data_visualization | d6ff9a19865cce9c65c69af074012eca911d7c48 | 87ed578c76fa924d9161408a0c7396c8d37a80bf | refs/heads/master | 2021-02-05T09:14:27.569625 | 2020-04-26T17:30:42 | 2020-04-26T17:30:42 | 243,763,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import pandas as pd
#import nump as np
df = pd.read_csv('file:///C:/GitRepo/data_visualization/temporal.csv')
df.head(10) #view first 10 data rows | [
"szuszkiewiczalan928@gmail.com"
] | szuszkiewiczalan928@gmail.com |
a193ad9d8cf0b7edb6fea29bdc621f469c12e0ba | 9653d2c933c95f6a7e956751814a38a935fabf14 | /source/code/menu_addFontGuideline.py | c211b008a1cac518efa7bbec3cc9d5b7c1ee2e90 | [
"MIT"
] | permissive | benkiel/guidetool | f98863c72920bbddc9fb355852a42c1e441f02ea | ee6f4fce8f472622ab20a3b09bf4594f5631be25 | refs/heads/main | 2023-06-18T21:39:24.269399 | 2021-07-15T00:41:33 | 2021-07-15T00:41:33 | 387,886,590 | 0 | 0 | MIT | 2021-07-20T18:54:21 | 2021-07-20T18:54:20 | null | UTF-8 | Python | false | false | 690 | py | import AppKit
from fontParts.world import CurrentGlyph
from mojo.UI import getDefault, CurrentGlyphWindow
from guideTool.guess import guessPositionAndAngleFromSelectedPoints
from guideTool.editor import GuidelineEditorController
def run():
glyph = CurrentGlyph()
if glyph is None:
return
font = glyp... | [
"tal@typesupply.com"
] | tal@typesupply.com |
3e0fe0fde817f94bca45c79b2e2f4440d611b06d | f30879f4b179e1c5c3421ae742637b6f551b1ac2 | /nutrition/forms.py | 9da6bb0bc59b2faa17bffa70ca72d522db57ce27 | [] | no_license | NadiiaSky/Nutrition_project | 3feba922e13c72f6d281940124e4f6063e64bcdc | 851640f99d20dd82d9f915a9fc3f2ac59dfebd5c | refs/heads/master | 2021-08-08T01:51:27.676416 | 2020-12-12T15:29:00 | 2020-12-12T15:29:00 | 230,262,386 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from django.forms import ModelForm
from nutrition.models import Profile, MedicalInfo
class ProfileForm(ModelForm):
class Meta:
model = Profile
exclude = ('id', 'user', 'medical_info')
class MedicalInfoForm(ModelForm):
class Meta:
model = MedicalInfo
exclude = ('id', )
| [
"50778551+NadiiaSky@users.noreply.github.com"
] | 50778551+NadiiaSky@users.noreply.github.com |
3c1c6a4b656c10f246c1495bde62371bbd9fdf3b | a669d3755ca2b9c5d35adf607f40f043159d06c5 | /numpy_example.py | 0917a2741f884e274e864f4d06b46e49970eae4f | [] | no_license | jsvivical/PythonStudy | 7fc3fe524b88515c45ab59ac95535ea89c28cd96 | 9462bea4abe7248f0f83e6077a3d45860a5806e1 | refs/heads/master | 2023-06-09T06:45:07.035822 | 2021-06-27T09:00:14 | 2021-06-27T09:00:14 | 380,693,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from typing import no_type_check
import numpy as np
a = np.array([1])
b = np.array([9])
c = a * b
print(c) | [
"jsvivical@gmail.com"
] | jsvivical@gmail.com |
7ef9b4ebe1ab76118e00c6bcb1b77e997ca3dd90 | adb11e15d796ff522cd00730244e07efb59b6887 | /Services/Facebook/facebookService.py | a083240e284b94b73857080701f91944145bbcfe | [
"MIT"
] | permissive | miguelfoliveira/TeamUp | e13535ffcefb6127f869351ed0c1c103e7412dcf | 6f911fa4980c681707d01cad801964af5b306b34 | refs/heads/master | 2020-04-14T12:07:25.116377 | 2018-05-22T14:22:25 | 2018-05-22T14:22:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,792 | py | from facebook import GraphAPI, GraphAPIError
from flask import Flask, request, abort
from flask_restful import Api, Resource, reqparse
from flask_sqlalchemy import SQLAlchemy
from flask_oauthlib.provider import OAuth2Provider
from configurationParser import Configuration
from cryptography.hazmat.backends import default... | [
"oibaf3@live.com.pt"
] | oibaf3@live.com.pt |
279c13ad808c93f74b5d72b07a21f6c183cc5b6c | ef93b02f66b4ec7dfdf0b1f9ee6840d455115dfe | /treasure/classico/migrations/0002_link.py | 6f6eb15f623bbc56691fb1cbb796ff5234bb3038 | [] | no_license | ifrs-alunos/heathers | 0edc61e4ec15bfb8ef1b05ca95af94315cbd34a2 | 0e24ae5118ba265574965f0d197f1d09d9fb6909 | refs/heads/master | 2020-04-30T09:32:27.330720 | 2019-12-12T03:24:59 | 2019-12-12T03:24:59 | 176,750,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # Generated by Django 2.2.6 on 2019-10-03 17:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('classico', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Link',
fields=[
('id', mo... | [
"rlsantos@vacaria.ifrs.edu.br"
] | rlsantos@vacaria.ifrs.edu.br |
6ed267aeae11220be1703b4d34bb3dba6f9c1e9e | 366bd2ae6cbd4a2473fd43bac750481b630ceb57 | /leetcode/leetcode680:验证回文字符串.py | 8f559c8f9e238e7c20e084072f3749f29c2646dd | [] | no_license | yuandanding/leetcode | 4220bc3794e96c95a35f563ec3fe97f1f9553f71 | 7255be63a317b9b4fd2318caeefd5c161de620af | refs/heads/master | 2020-04-07T04:11:50.990013 | 2018-11-23T14:33:03 | 2018-11-23T14:33:03 | 158,044,120 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | class Solution:
def validPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
def isPalindrome(s):
if len(s) == 1:
return True
for i in range(0,int(len(s)/2)):
if s[i] != s[-1-i]:
return False
... | [
"noreply@github.com"
] | noreply@github.com |
17bd7ca48f89be71791e92660e04a2e0d3565fd4 | 82dd7e2561a1e4a9ecd0ac23de428e2621cd57af | /gnaf-hex-tag.py | 66272adfca871570b78a6e4567cc596438eace59 | [] | no_license | neerja-git/locate16-hack | 1bf8d4e81d96cb8db0d49bcf4304ed6d4e78ed14 | 60e855f2010e9d681b0df026ad2934d075e7e6db | refs/heads/master | 2020-05-30T11:22:01.350350 | 2016-03-20T08:49:48 | 2016-03-20T08:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,355 | py | import multiprocessing
import math
import os
import subprocess
import psycopg2
import argparse
from datetime import datetime
def main():
parser = argparse.ArgumentParser(
description='Tags GNAF address points with hex PIDs.')
parser.add_argument(
'--max-processes', type=int, default=6,
... | [
"hugh.saalmans@iag.com.au"
] | hugh.saalmans@iag.com.au |
1ba7ed3f3e6972ac5d2d780b49ba2a2b641a4ba6 | d89290fd2ecc166287e065784ae290a516ca2cef | /archives/convert_framerates.py | 83c83ead40072e2feef33d6b123b8c9ad4acad3f | [
"MIT"
] | permissive | rec/bbcprc | adc85ca3fd7a7b303c83323c2bdf63d44654112f | d4f4fee5f5c0beaf9c23af6e1655dbb49f3912e3 | refs/heads/main | 2023-02-08T20:18:38.763943 | 2023-01-30T12:47:21 | 2023-01-30T12:51:38 | 130,397,044 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | from . import audio_io
from . import constants
from . import files
from scipy import signal
import json
import numpy as np
import os
ERROR = 'fp.getframerate() != constants.FRAME_RATE: 48000'
def get_framerate_error_files():
for f in sorted(files.with_suffix(constants.METADATA_DIR, '.json')):
if json.loa... | [
"tom@swirly.com"
] | tom@swirly.com |
21cd65c90c50f8100dd54c7bcf1d088ca1c98afd | 634b694fdb70fd409a7a1523e6bccfc183bc1cc8 | /day_or_night.py | 35355f7daa36bb50726c55fe8d37f74153e39659 | [] | no_license | Royz2123/Project-Delta | c68113a690dcee086ccdef488898357b04ca3e24 | 8d9a4045e5b4d386087e88eb8826fc1bd1eb8c2d | refs/heads/master | 2020-05-07T16:18:43.931527 | 2019-06-20T05:56:19 | 2019-06-20T05:56:19 | 180,660,963 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | import numpy as np
def is_night_mode(img):
return np.allclose(img[:,:,0],img[:,:,1]) and np.allclose(img[:,:,1],img[:,:,2])
| [
"doron12109@gmail.com"
] | doron12109@gmail.com |
03b6c8ed182aef785c6a89d97cc61d9bf2a04851 | b253b1d636f503730172bf6802ab4101f780e827 | /in_place_reversal_of_a_linked_list/reverse_the_first_k_elements/main.py | 6e560ec03fc73ecdf6c5295e722d3882585f4dda | [] | no_license | luckydimdim/grokking | 1943046a1d431ba3e7ad0d69705c6537d3a03de5 | 77ea7ca5213d2e8a90a979db05f1a7901c79cfa1 | refs/heads/master | 2022-10-16T02:19:52.784417 | 2020-06-14T15:45:17 | 2020-06-14T15:45:17 | 262,490,056 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | from __future__ import print_function
class Node:
def __init__(self, value, next=None):
self.value = value
self.next = next
def print_list(self):
temp = self
while temp is not None:
print(temp.value, end=" ")
temp = temp.next
print()
def reverse_sub_list(head, k):
'''
Reverse... | [
"msk.roytop@gmail.com"
] | msk.roytop@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.