blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37dd9e9f28c87fe2ffc64cf8d982011f7a3854ad | 7ca63f2778faa22d0d3043b87d1eaedac6cdfe62 | /generateMusic.py | edccc4368bb846095f5c1401e9f6a8f2432ebc7d | [] | no_license | justineDelo/generate-clips | cb333136f652f4fef3c6a2512a43610b74b6e0a2 | ee127210dd03d3882acec5cf4faaff05dd398a59 | refs/heads/master | 2021-06-27T02:56:53.499440 | 2017-09-13T15:34:55 | 2017-09-13T15:34:55 | 103,270,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,549 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 8 09:57:38 2017
@author: justine
"""
import matplotlib.pyplot as plt
import inception
import os
import generation
import extractionImages
import moviepy.editor as mp
import shutil
import numpy as np
import features
def featuresImages(path, image... | [
"ju.nyc@hotmail.fr"
] | ju.nyc@hotmail.fr |
d1d3fffdb132de5d0a3663618f087eeb3caf28f7 | 6437a3a4a31ab9ad233d6b2d985beb50ed50de23 | /PythonistaAppTemplate/PythonistaKit.framework/pylib/site-packages/simpy/test/test_timeout.py | 91e83c4c66e014e0b5c6321a306dd2e9a7bc7ae8 | [] | no_license | sreyemnayr/jss-lost-mode-app | 03ddc472decde3c17a11294d8ee48b02f83b71e7 | 3ff4ba6fb13f4f3a4a98bfc824eace137f6aabaa | refs/heads/master | 2021-05-02T08:50:10.580091 | 2018-02-08T20:32:29 | 2018-02-08T20:32:29 | 120,813,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,821 | py | #\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
... | [
"ryanmeyersweb@gmail.com"
] | ryanmeyersweb@gmail.com |
d4a34ee20df7bcfc81d4f08d997084a701fe6793 | 6ea84a1ee3f08cc0e2c50b452ccda0469dda0b6c | /projectLimat/manage.py | 5ce2506a4a3d51b3e6927ce569073b28003bf100 | [] | no_license | frestea09/django_note | b818d9d95f2f1e43ba47f8f2168bc5980d5da1f7 | b8d1e41a450f5c452afd36319779740bed874caa | refs/heads/master | 2020-11-24T03:54:00.000949 | 2020-01-01T06:50:12 | 2020-01-01T06:50:12 | 227,950,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'projectLimat.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"ilmanfrasetya@gmail.com"
] | ilmanfrasetya@gmail.com |
67642b39839af0eb49cdb9903aadc2180913e8b8 | a229bfe7e79df9b1d005771194618568880fcb77 | /learning_complete/hello.py | e042dc336902136f4b271eb064164ffba54c6b44 | [] | no_license | chjdm/PythonCrashCourse | 96c2173097e1cf3b4952dae11e5f087c4a0de6bc | 234beafd69fdd3feb6aa91384888b850f6be04d9 | refs/heads/master | 2020-03-27T23:39:54.933633 | 2018-09-17T14:45:14 | 2018-09-17T14:45:14 | 147,336,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | print('Hello, world!')
print('rest') | [
"liuwee@sina.com"
] | liuwee@sina.com |
acf902bf1f5deb602370a46b4322225c30df8dd2 | d8f436e02ad3b0d6a99006ee0cb85b68f0deedcb | /api/urls.py | ae3531f374928c7296e854621a0d6ab66739d6a1 | [] | no_license | m0hit1712/PincodeApi | 7cabb29c3b4e954c4806f9bf161b594baff20ac7 | b9dd3368f01437dca58c31fced906eb6816d8c07 | refs/heads/main | 2023-02-15T08:24:16.819802 | 2021-01-11T12:51:15 | 2021-01-11T12:51:15 | 325,280,340 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('getpincode/<str:state>/<str:district>/<str:taluk>', views.GetPinCode.as_view(), name="pincode_url"),
path('getstates/<str:country>', views.GetDistricts.as_view(), name="state_url"),
path('getdistricts/<str:state>', ... | [
"mohit.patidar1503@gmail.com"
] | mohit.patidar1503@gmail.com |
4a47fffa44259b959487191994bc1233b3491c11 | 4f75cc33b4d65d5e4b054fc35b831a388a46c896 | /.history/app_20210903124401.py | 2579fc4075f93959be51f7bd4b7d23610331e820 | [] | no_license | Lr-2002/newpage | c3fe2acc451e24f6408996ea1271c61c321de702 | c589ad974e7100aa9b1c2ccc095a959ff68069b6 | refs/heads/main | 2023-09-03T06:13:53.428236 | 2021-11-23T10:41:21 | 2021-11-23T10:41:21 | 402,606,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | from flask import Flask ,render_template,url_for
from flask_sqlalchemy import
app = Flask(__name__)
name = 'Grey Li'
movies = [
{'title': 'My Neighbor Totoro', 'year': '1988'},
{'title': 'Dead Poets Society', 'year': '1989'},
{'title': 'A Perfect World', 'year': '1993'},
{'title': 'Leon', 'year': '1... | [
"2629651228@qq.com"
] | 2629651228@qq.com |
29e85819a66211421e49b7d4ad844b7bfd1b732e | 8edc1db29ddde7ece88cb00c7467db4f5d9d4fe0 | /epinephrine.py | 9e9f6b94e7031558ef2b694fd869a7ad6a379e08 | [] | no_license | trevenen/nicotine | 59886c7e3e596ff673fdb84abcdccd1cca8e0646 | 40960bd3fba0f50eb364adda7fc59adeccd3e95e | refs/heads/master | 2020-06-23T02:37:33.346819 | 2019-07-09T14:51:17 | 2019-07-09T14:51:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | import vapor
from doctor import Doctor
class Epinephrine:
"""
Epinephrine automates
rollback in the event
of nicotine patch
allergic reaction.
Running nicotine in
deathwish mode disables
disables Epinephrine.
"""
def __init__(self):
respons... | [
"jonassteinberg1@gmail.com"
] | jonassteinberg1@gmail.com |
df139b3c52f395b49ec0f3d292707431c92ddc85 | 7c89a5137839646e7a458f530fdd5315eb371480 | /netmeds/settings.py | f2af58926cfae922d1b9fcf526c2e3ee49d4d617 | [] | no_license | himanshupc11/netmedical | c0588c1113880627c4013e2f3f61dd7be5d1c2d0 | 71dea310f0aebebbb1210f8d684426c894e6c28f | refs/heads/main | 2023-01-05T22:24:53.299113 | 2020-10-31T15:58:28 | 2020-10-31T15:58:28 | 308,917,688 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,584 | py | """
Django settings for netmeds 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 i... | [
"himanshuchhatpar@gmail.com"
] | himanshuchhatpar@gmail.com |
021445b9bdf634afaf800add0b93f940291238f7 | 25420a17e4202a13cc7a896513bde1c042e1f545 | /repository/declaratie_firma_repository.py | 2c153c05cc6cb45f724399d5e485a3926db15246 | [] | no_license | lzradrian/practicaServer | 6ae74f3909f84769dad253aec2bdb0cda1e470f9 | 650e921af6267ce1b7da20f6f694864a483be0c9 | refs/heads/master | 2023-03-05T22:02:38.627131 | 2021-02-13T08:03:13 | 2021-02-13T08:03:13 | 321,683,575 | 0 | 0 | null | 2021-02-13T08:03:14 | 2020-12-15T13:56:18 | Python | UTF-8 | Python | false | false | 1,226 | py | class DeclaratieFirmaRepository:
def getAll(self):
from domain.declaratie_firma import DeclaratieFirma
declaratii = DeclaratieFirma.query.all()
return declaratii
def getOne(self, id):
from domain.declaratie_firma import DeclaratieFirma
declaratie = DeclaratieFirma.query.... | [
"dombinorbert1@gmail.com"
] | dombinorbert1@gmail.com |
98f30963f232673487c80b4cda9c2952e3a798d9 | 3eea5c57c8dd8660d8d3adfca7260e9c1ff1316a | /test-backup.py | d7d96136dea7d599c6fa6f4ace9f42872e4ec9df | [] | no_license | fergieis/Networks | 4cc8dac4afdf16184857bf586c1ca0693dc43e57 | 32eb99ee6946d604ca7d483c000f25922bcafc7d | refs/heads/master | 2021-01-21T14:01:44.881478 | 2016-05-23T13:41:01 | 2016-05-23T13:41:01 | 55,792,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | from __future__ import division
import pandas as pd
import numpy as np
from gurobipy import *
#from pulp import *
from datetime import date, datetime
def date2t(curr_date):
start_date = date(2016, 2, 1) #Iowa Caucus
diff = datetime.utcfromtimestamp(curr_date)-start_date
diff = 2 * diff.days + diff.seconds//43200... | [
"fergieis@yahoo.com"
] | fergieis@yahoo.com |
2d35c9f7b2714f22110dcc242119d77931b4acad | 2d574bbff00fa4cb5204eeeb212b2afb48416254 | /Services/emailService.py | a55c924791bed6d71569beedd770b9d548f22980 | [
"MIT"
] | permissive | prodProject/WorkkerAndConsumerServer | 966a32502297d808e9f217d05170aaacac6731ca | 95496f026109279c9891e08af46040c7b9487c81 | refs/heads/master | 2020-06-25T09:34:47.517054 | 2020-01-31T10:00:42 | 2020-01-31T10:00:42 | 199,272,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from SendGridEmail.sendEmailFromSendgrid import SendMail
class EmailService:
m_service = SendMail()
def send(self,emailbuilder):
assert emailbuilder is not None, "Email Cannot be empty"
self.m_service.start(emailBuilder=emailbuilder)
return self.m_service.done()
| [
"prod.projectmanager@gmail.com"
] | prod.projectmanager@gmail.com |
75c820733cf2b1a079d76c667405b60d94ccd650 | 165e000e5b37b7f4fad637e170e153c6d87498e7 | /game.py | 5b31054fadbae3610ed9e9e5ef26520748045033 | [
"MIT"
] | permissive | javid-aliyev/balls-game | b40a88398ee0eb03cd179f59a285068b8f361b15 | cc74056e992ce4f88a0ab71600da1447f502b0ef | refs/heads/master | 2022-11-14T11:25:01.107504 | 2020-07-11T13:48:10 | 2020-07-11T13:48:10 | 278,865,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | import pygame
from pygame.locals import *
# Init pygame, define some constants and global variables
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
size = (600, 600) # width & height of the window
background = WHITE
screen = pygame.display.set_mode(size)
pygame.disp... | [
"lorderer12@gmail.com"
] | lorderer12@gmail.com |
e23e69e261aa9dd07bd77ac5f0e689626045a644 | 9742b6b4297927a47bcaba3d119730065723fd69 | /django/rest/drf的分页,缓存,过滤的实现/api/migrations/0001_initial.py | 473ebfae83812b1b502841e3f4a769f690986e6b | [
"Apache-2.0"
] | permissive | mrg1995/my_note | bd2ce553737e0324fd1d6276f3024219a7937563 | df3c80b048718320b389b4ca8bd8a6b97b838b5a | refs/heads/master | 2020-04-15T11:58:59.764034 | 2019-03-01T14:30:39 | 2019-03-01T14:30:39 | 164,654,506 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-21 14:40
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 = [
migrations... | [
"38936538+mrg1995@users.noreply.github.com"
] | 38936538+mrg1995@users.noreply.github.com |
9441ecd27a8c8c344e49468fa80251036af9c061 | 94c0f3a9024c8b845444cdd714722277891a0d67 | /leave/views.py | c8f5b56371339be715e909645d949b67401b728d | [] | no_license | Ahmedmamdouh40/EmployeeManager | 05a8f73b43bef87b07b539011426502c02948338 | b89b1b6aef9215f6eef29415cc169f2d1074c2bd | refs/heads/main | 2023-02-10T14:20:48.839043 | 2021-01-05T12:54:01 | 2021-01-05T12:54:01 | 324,760,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,523 | py | from django.shortcuts import render
from django.shortcuts import get_object_or_404
from .models import LeaveMaster, EmployeeLeave
from employee.models import Employee
from .forms import LeaveMasterForm ,EmployeeLeaveForm
from django.http import HttpResponseRedirect,HttpResponse
from django.contrib import messages
from ... | [
"ahmedmamdouh2727@gmail.com"
] | ahmedmamdouh2727@gmail.com |
35ba48508ec9ca4b040084ea5c9dba817fda7374 | 6163d256743eca49df4a17cbd8ecbde59f098929 | /base/number.py | 30dc3b168f4259bef334bb9052b7f2c910f34015 | [] | no_license | splaiser/newbie | 7220709668038c452eac080a26f6a9b73b3f17d0 | 8b4d3125b8b599dbefbd822cd4b838ed9d0b3906 | refs/heads/master | 2023-06-18T05:14:48.704480 | 2021-07-16T07:20:04 | 2021-07-16T07:20:04 | 375,288,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | numbers = [1,2,3,4,5,6,7,8,9]
for n in numbers:
if n == 1:
print(f"1st")
elif n == 2:
print(f"2nd")
elif n == 3:
print(f"3rd")
else:
print(f'{n}th') | [
"76589075+splaiser@users.noreply.github.com"
] | 76589075+splaiser@users.noreply.github.com |
f4e6f2a11be9b1c9b26e680848c56ec23e147339 | e78154abbb8bacf5afccda9da371684cbeabad36 | /popego/popserver/build/lib/popserver/tests/agents/test_lastfm.py | 96e4e5360546f9480b42ef1450462b3d3a5daae1 | [
"BSD-3-Clause"
] | permissive | enterstudio/popego | 1a196fabc374c0f45764e5c74bd7752236424040 | 2d09e793d9d2f297139edb325b8a70ddda9b2705 | refs/heads/master | 2021-04-09T16:39:40.781634 | 2016-10-14T16:53:47 | 2016-10-14T16:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,723 | py | # -*- coding: utf-8 -*-
__docformat__='restructuredtext'
from popserver.tests.nodb_model import *
from popserver.tests import *
from fixture import DataTestCase
from popserver.tests import popfixtures
from popserver.agents.lastfm_agent import LastFmAgent
from popserver.agents.lastfm_client import LastFMClient
import p... | [
"santisiri@gmail.com"
] | santisiri@gmail.com |
6c0d1cac4f7d4207631446b5ea39072ab40066dd | 18319a52cce2b3f3a3607a18f45cbd5933ad8e31 | /venv/Lib/site-packages/bottle_sqlite.py | f568b58a6389cfdd11c1b2072cadb07f55fc79a2 | [] | no_license | AmithRajMP/Web-Tech-Assignment--2- | 8d9e56ef6bd302661654e32182964b9fe5644801 | ec7f410868f8936199bec19f01fce4ad6e081e79 | refs/heads/master | 2020-03-18T01:54:46.662732 | 2018-09-16T11:06:04 | 2018-09-16T11:06:04 | 134,165,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,833 | py | '''
Bottle-sqlite is a plugin that integrates SQLite3 with your Bottle
application. It automatically connects to a database at the beginning of a
request, passes the database handle to the route callback and closes the
connection afterwards.
To automatically detect routes that need a database connection, the plu... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
65f82aa6bff2df68e83b88de5c9a6c2f55297b8c | 5f23d8e91ca941749a6127d35a2d0194512d2987 | /daemon.py | fa7a20ed12ff3d3ce9d4b632dbdc5b55c2374ed0 | [] | no_license | cmal/sc2mafia-server | 7ea52d1293929a6044bb97eea2866c2feb00e81d | ad48674576d0e675dc0aacf59a393a5d0f9c6a7d | refs/heads/master | 2016-09-05T15:49:24.425225 | 2015-07-30T02:24:35 | 2015-07-30T02:24:35 | 39,053,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This is the Twisted Fast Poetry Server, version 2.0
from twisted.application import internet, service
# import these classes from another module.
from server.server import GameServerProtocol, GameServerFactory, GameServerService
import sys
reload(sys)
sys.setdefaultenco... | [
"zyzy5730@163.com"
] | zyzy5730@163.com |
7a5e780f3f3d6c46aa2f1a0d9a5af14ad5652bd5 | faf73941d7521ce3654cdd30bb74a2d66d2268bf | /avg2.py | dc73a47ea98768508dda6ec53ffd590a9bb613b7 | [] | no_license | lovemalus/Python | b8429ca141d81fb39861ba9af9d46b73750f3740 | 753aee9227d77836b709a26fd85e8db60bf33728 | refs/heads/master | 2022-02-21T15:12:50.799650 | 2019-10-04T04:10:54 | 2019-10-04T04:10:54 | 93,481,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | def avg_com(numlist):
num_sum=0
for i in range(0,len(numlist)):
num_sum=num_sum+numlist[i]
avg=num_sum/len(numlist)
return
#################################
a=[10,15,20,35]
print avg_com(a)
| [
"popenging@gmail.com"
] | popenging@gmail.com |
2f9d00cb8850c7a26f90385ef8cc80e0e9725eac | ba89b17864ece80b2b2602bb2c744e19c1a64a39 | /tests/scoring_engine/test_config.py | 00d498f3da9ac7316782facd71ca909e422e5a47 | [
"MIT"
] | permissive | scoringengine/scoringengine | 244064a3bf89fd2b7912171f1541087bbec88aef | b669ee9341c8dcdafaa5e75c8dcf5501977eb6e7 | refs/heads/master | 2023-08-17T07:19:32.777182 | 2023-05-02T16:15:09 | 2023-05-02T16:15:09 | 71,934,380 | 87 | 39 | MIT | 2023-09-09T06:01:12 | 2016-10-25T20:05:11 | Python | UTF-8 | Python | false | false | 591 | py | import sys
class MockConfigLoader():
def __init__(self):
self.mock_keyname = True
class TestConfig(object):
def test_config_variable(self):
if 'scoring_engine.config_loader' in sys.modules:
del sys.modules['scoring_engine.config_loader']
import scoring_engine.config_load... | [
"bmyers@mozilla.com"
] | bmyers@mozilla.com |
8b5d4352186d89264215e37706a1f8423f823c3a | 12bbad1cb13fe7bc244dd100f4c724feab818fe1 | /backups/edge.py | 66b39145dd873384c446614f4c04247048bbc164 | [] | no_license | gkahl/nimble_hub | 4f0625fcd06f208cc33d0520b06b30dd7ecc9589 | 5d4c2fab3b30f385727641eb92a72771cb45d4e8 | refs/heads/master | 2020-05-04T18:33:05.760430 | 2020-04-21T23:08:21 | 2020-04-21T23:08:21 | 179,357,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,149 | py | import pyrealsense2 as rs
import sys
import numpy as np
import cv2
np.set_printoptions(threshold=sys.maxsize)
# Configure depth and color streams
pipeline = rs.pipeline()
config = rs.config()
config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.b... | [
"gkahl@gwu.edu"
] | gkahl@gwu.edu |
439c27a07c967dc15b31ec00920d5bb929649a72 | 7760b42452360c7f6dded6168076d4b7691657c7 | /aaaaa.py | f3d63417ce6cfad310649ed13e0901de0b13c24e | [] | no_license | camis789/gatinho | a44c98f081b8078e6751e75b18559d2829ed5eea | 4f2bdc1bdf85414e6fcafe4d1c7b41c21d095702 | refs/heads/master | 2020-09-11T12:11:57.026424 | 2019-11-16T06:56:19 | 2019-11-16T06:56:19 | 222,059,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | a = input ('Nossa olha só, que pedaço de mal caminho, fala teu nome aí safado')
if a == 'Echter' or 'Henrique':
print ('olá gatinho, cola aqui lexk pra eu te falar uma parada')
else:
print ('Try again')
b = input ('Você me ama?')
if b == 'sim' or 'Sim':
print ('então deixa eu continuar')
else:
prin... | [
"camila-caxambu@hotmail.com"
] | camila-caxambu@hotmail.com |
395b4e7921e996f8e8d5de75f46625b9155d3e5d | 6d8089d4c47a54bfbca4400e0d13f63b86cf95cd | /venv/bin/rst2odt_prepstyles.py | 5161dced5b7c4712e8ff9634321a35fec14fa061 | [] | no_license | DavidG33k/COVIDPreventionSystem | 7401422b2934e21572c3437c7a5f73d8e8ce4533 | f36ec36bb6c8768f30cf03b54d0ff158d1fe4378 | refs/heads/main | 2023-04-05T06:14:36.274138 | 2021-03-29T15:03:45 | 2021-03-29T15:03:45 | 324,145,589 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | #!/home/david/PycharmProjects/COVIDPreventionSystem/venv/bin/python
# $Id: rst2odt_prepstyles.py 8346 2019-08-26 12:11:32Z milde $
# Author: Dave Kuhlman <dkuhlman@rexx.com>
# Copyright: This module has been placed in the public domain.
"""
Fix a word-processor-generated styles.odt for odtwriter use: Drop page size
s... | [
"37270113+DavidG33k@users.noreply.github.com"
] | 37270113+DavidG33k@users.noreply.github.com |
561731fc6b914f26baf217c96c44b1883875dc25 | 1cc62f70e1a1887a8bdecc074145cbf5e5e218b6 | /tools/logger.py | bcc7ff4a7086aca359bc6adc78d2fb4ed46a96ca | [
"Apache-2.0"
] | permissive | yeongjoonJu/CFR-GAN | 259707f0f3c1a37fa095456af78829a181170430 | 04445dc96db48322b1de62cffb57084bacf64746 | refs/heads/main | 2023-04-10T06:55:02.652315 | 2022-12-19T11:52:11 | 2022-12-19T11:52:11 | 399,314,005 | 69 | 5 | null | 2022-07-02T12:37:57 | 2021-08-24T02:46:48 | Python | UTF-8 | Python | false | false | 2,391 | py | import random
import torch
from torch.utils.tensorboard import SummaryWriter
class CFRLogger(SummaryWriter):
def __init__(self, logdir):
super(CFRLogger, self).__init__(logdir)
def log_training(self, loss_D, loss_GAN, loss_mask, loss_per, loss_rec, loss_id, iteration):
self.add_scalars('GA... | [
"yj_ju@korea.ac.kr"
] | yj_ju@korea.ac.kr |
0b90c23e619a3ae46e07bc5db9c5a8cdcf249e3e | 4a76ac7ad1aaeec44729ab6d5b121b1cae0d910c | /Week 9/pathSum3.py | 4ff31f3c3811e17e09b8c3e224c844bfd576a84c | [] | no_license | kalmad99/CompetitiveProgramming | 2d825e839faa9e13ef43dbb45498bd3eef6723ab | 6cbb1f12f7670d0016fa2af8f2dd597d9123070d | refs/heads/main | 2023-03-25T20:18:23.389396 | 2021-03-24T21:36:52 | 2021-03-24T21:36:52 | 325,816,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def pathSum(self, root: TreeNode, sum: int) -> int:
total, result, counter = {0: 1}, 0, [0]
... | [
"kalemesfin12@gmail.com"
] | kalemesfin12@gmail.com |
f06e381bb59634a56edccfa28b2c65ece1dd503f | 0cc075bb2b1c30c257dc5eafa1e309ee9f5bfadc | /tests/__init__.py | ebd6f8d11eadd944b39f2ea50e1f67c0fadf85b2 | [] | no_license | gcaaa31928/BusTrackerTaipeiAppiumTesting | d2f49e39db41b9507d8f05338defed7c72f3e456 | 1363ca72e10369affd4397223d150556b9172995 | refs/heads/master | 2021-01-21T14:48:32.558734 | 2016-06-21T19:24:39 | 2016-06-21T19:24:39 | 57,986,263 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from . import test_basic
from . import test_app
from . import test_nearby_page
from . import test_nearby_page_stations
from .import test_nearby_page_info
| [
"gcaaa31928@gmail.com"
] | gcaaa31928@gmail.com |
bb17249026c1deae0e141b080a7df93e3e2fe247 | 9238145bf991752d0542dc2679ca7c9af654047b | /find_largest_value_in_each_row_of_binary_tree.py | d441958f8c598a1cdc13299216839373f488f5e5 | [] | no_license | jaijaish98/ProblemSolving | d048a6168c50b3eaeec71be2e304c7aab2471258 | 3cdcba9c03b5951772f6ab72ef167a65febf1ee4 | refs/heads/master | 2023-08-08T10:08:43.908063 | 2023-07-26T05:32:24 | 2023-07-26T05:32:24 | 262,354,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | """
Find Largest Value in Each Tree Row
You need to find the largest value in each row of a binary tree.
Example:
Input:
1
/ \
3 2
/ \ \
5 3 9
Output: [1, 3, 9]
"""
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=... | [
"jaijaish98@gmail.com"
] | jaijaish98@gmail.com |
ec8e0ae373794ad4d72ba3de4fc2da8a16a4c607 | c8a822313bb2c36b65b7399b9e6ac00d785f0426 | /UserCode/friccita/BoostedTauAnalysis/TauAnalyzer/test/SignalSampleGenerator.py | 9831dd58a21ac3960a54a0c31558e00f084ac72e | [] | no_license | friccita/usercode | 4cd3e311b55beab56971d8e7d5a7ed30017a8c97 | 7494a063ecbeb8cefe71595f04d3f83d9dc7929a | refs/heads/master | 2021-01-13T01:41:28.131187 | 2014-05-22T09:30:48 | 2014-05-22T09:30:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376,161 | py | # Auto generated configuration file
# using:
# Revision: 1.372.2.3
# Source: /local/reps/CMSSW.admin/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/EightTeV/ZZTo2L2Nu_TuneZ2star_8TeV_pythia6_tauola_cff.py -s GEN,SIM,DIGI,L1,DIGI2RAW,H... | [
"friccita@ucdavis.cern.ch"
] | friccita@ucdavis.cern.ch |
edc85322d46ee344788712c6051ad5c5a397f1bf | 03f9b8bdea312636afb4df3737b55cb0cc4b21ff | /AddTwoNumbers.py | 7895bccd673b9da3b411d758be1b46902a6bbfaa | [] | no_license | ellinx/LC-python | f29dd17bbe15407ba0d06ad68386efdc9a343b56 | 9190d3d178f1733aa226973757ee7e045b7bab00 | refs/heads/master | 2021-06-01T15:21:24.379811 | 2020-10-29T04:37:07 | 2020-10-29T04:37:07 | 132,704,788 | 1 | 1 | null | 2019-05-15T03:26:11 | 2018-05-09T05:13:26 | Python | UTF-8 | Python | false | false | 1,404 | py | """
You are given two non-empty linked lists representing two non-negative integers.
The digits are stored in reverse order and each of their nodes contain a single digit.
Add the two numbers and return it as a linked list.
You may assume the two numbers do not contain any leading zero, except the number 0 itself.
Ex... | [
"ellin.xll@gmail.com"
] | ellin.xll@gmail.com |
15c3aae3a58a05ed1db45db23627c6c8807dace2 | 62b6de5739dcb83d2504e5b73dc91240266aef78 | /bin/dnsstamp.py | 98dc0ceedb74aee161bf0ff822dbd4053a7b9b82 | [
"MIT"
] | permissive | power-dns/python-dnsstamps | e5c0f568b46a1e0be6e4da7ff408396b4c4b0718 | 79ba64ed2c3ee6c72700fdbc8a578e734bbd2a20 | refs/heads/master | 2023-02-15T20:34:46.791220 | 2021-01-15T12:53:53 | 2021-01-15T12:53:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,476 | py | #!/usr/bin/env python
import argparse
import sys
import dnsstamps
from dnsstamps import Option
class DnsStampCli(object):
@staticmethod
def append_common_arguments(parser):
parser.add_argument('-s', '--dnssec',
dest='dnssec',
action='store_tru... | [
"chrisss404@gmail.com"
] | chrisss404@gmail.com |
b78dfb29942edd235434f9bf380f779d177759f5 | 06ad345f69a2f91b5c5a730bb4943f04cba93a44 | /Pygame/08_functions_and_graphics.py | 17721ec3ef30096ed81712cd5443420abe7f5daf | [] | no_license | whyj107/Python | 61bd58d202350616a322b7b75086976f354bda9b | 3c3649ca8c6ac6908ac14d6af201d508cc4fbf30 | refs/heads/master | 2021-04-13T23:49:13.470657 | 2021-03-27T10:08:39 | 2021-03-27T10:08:39 | 249,195,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | """
Sample Python/Pygame Programs
Simpson College Computer Science
http://programarcadegames.com/
http://simpson.edu/computer-science/
Explanation video: http://youtu.be/_XdrKSDmzqA
"""
# Import a library of functions called 'pygame'
import pygame
def draw_snowman(screen, x, y):
""" --- Function for a sno... | [
"60024292+whyj107@users.noreply.github.com"
] | 60024292+whyj107@users.noreply.github.com |
78d2bfb3e65833d48216a9150fcf6810b4b81a12 | 7266b30f4b0a73105a92a09646dfb84001798e0d | /script1.py | 516db4350a40dc0812af02846c379bd838a6614a | [] | no_license | wibnudixon/sql_python_basics | b95c32240ff1dccd211dfac590a2b289cf911c4b | d7f33f1aef4d64834d220c07bb82de9d8e5a5c5c | refs/heads/main | 2023-07-10T07:04:01.050875 | 2021-08-17T23:36:11 | 2021-08-17T23:36:11 | 397,326,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | import sqlite3
def create_table():
conn=sqlite3.connect("lite.db")
cur=conn.cursor()
cur.execute("CREATE TABLE IF NOT EXISTS store (item TEXT, quantity INTEGER, price REAL)")
conn.commit()
conn.close()
def insert(item,quantity,price):
conn=sqlite3.connect("lite.db")
cur=conn.cursor()
cur.ex... | [
"wibnudickson@gmail.com"
] | wibnudickson@gmail.com |
5161897e594221d7ca3d597d73684df6937d8c2e | fbfdd99757f5981e93074ac67d5acfee3d7e9bd7 | /todo_api/views/test.py | 24ad2bacfe0ba295d777dfb7ca45da05fd84e351 | [] | no_license | kuihTalam/django-blog | 745435fa1fe7436e04f71f534d9560e6a5aa21be | 33234f602d32342386ad3e49bf8b7251acc27796 | refs/heads/master | 2021-01-23T02:40:27.729972 | 2017-09-06T02:36:13 | 2017-09-06T02:36:13 | 102,441,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django.http import HttpResponse
def test_view(request):
html = "<html><body>Hello, World</body></html>"
return HttpResponse(html) | [
"talamkuih@gmail.com"
] | talamkuih@gmail.com |
b5dd54185cc609c08d906cd8d369d03b63246693 | 74d9459a66186dba09e87b296deafa50513025a5 | /ServerBattle/fight/corehero/heroconf.py | 594c285d20c62dbcc43887a97078788cb5601659 | [] | no_license | taojin526/KingsPro | 91e2b7954bc342e292e3662bf77c6953432dde3f | 99f74d2517c34f937ae3da60aa53b37d40768929 | refs/heads/master | 2021-06-28T06:46:49.841582 | 2021-03-05T07:34:04 | 2021-03-05T07:34:04 | 66,212,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | from enum import Enum
class HeroState(Enum):
"""英雄状态枚举"""
Init = 0 # 无
Fight = 1 # 出战
Watch = 2 # 待战
NorAtk = 3 # 普攻攻击
ChiefAtk = 4 # 主技能攻击
AidAtk = 5 # 援助攻击
Dead = 6 # 死亡
TRANSHERO = [
{
"trigger":
"showfight",
"source": [
... | [
"598569835@qq.com"
] | 598569835@qq.com |
84c46c8f676e758afa2be3836dc6ef67bef070ed | c67123ff7f6e535c0fba759e517d320d7819359e | /day-5/modules/mean-example/import_style.py | 3f1fbd875d26a770ee5d1e72a3b5d12174a6f531 | [
"MIT"
] | permissive | KDD-OpenSource/geox-young-academy | e2751652041aea290d83e0d7c17b0c9e450c4ed9 | ffa35f41d0032dcf7a9dfb9b2939402f83e9dcc2 | refs/heads/master | 2022-06-22T06:05:31.634759 | 2017-10-17T16:04:11 | 2017-10-17T16:04:21 | 105,241,878 | 1 | 6 | MIT | 2022-06-17T21:21:30 | 2017-09-29T07:15:39 | Jupyter Notebook | UTF-8 | Python | false | false | 192 | py | import mean # use the module
mean.hello
# use name from module
# show that, short form for
# mean.hello() is now hello()
from mean import hello
# the same as
hello = __import__("mean").hello
| [
"niccokunzmann@rambler.ru"
] | niccokunzmann@rambler.ru |
646f2d8cf3af8d4fc0311f549ceb060c55a67205 | d5d3a321ee13db9f8bc6eec7d0a6372bc1027eb1 | /recipes/libsndfile/all/test_package/conanfile.py | 6adfe2d570be6cdb793bd5b5c7ba82f1a7e6f06c | [
"MIT"
] | permissive | datalogics/conan-center-index | 8835770e18f7f51f25a5a0443085d7fae4714891 | 9d38333b1fe1590e6ac1db929979348434ea9f3d | refs/heads/develop | 2021-12-09T14:46:12.452893 | 2021-11-15T21:09:43 | 2021-11-15T21:09:43 | 212,201,140 | 0 | 3 | MIT | 2021-05-26T15:14:48 | 2019-10-01T21:16:31 | Python | UTF-8 | Python | false | false | 464 | py | import os
from conans import ConanFile, CMake, tools
class LibsndfileTestConan(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "cmake", "cmake_find_package"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
def test(self):
... | [
"noreply@github.com"
] | datalogics.noreply@github.com |
4ad0adfc4b6b273371990c914b932152d1e92b5b | 47ac1752b06cec752bb7d848596edd35cf01668a | /AmazonDownload/config.py | 570c3704baf535c21467c984555598ae97c8806c | [] | no_license | zonectmac/Amazon_python | ceecdea3452590e1882fb59f32c356a4b14d980a | 2373d44ec207be93486cac3a6b24522eefbdb2ab | refs/heads/master | 2021-01-22T04:27:45.694777 | 2017-05-26T02:33:50 | 2017-05-26T02:33:50 | 92,464,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | from get_config import get_downLoadPath, get_downLoadTemporaryPath, get_base_url, get_downLoadPathFinal, get_ff_profiles
TIMEOUT = 30
CONFIG = 'config.txt'
EMAIL_CONTENT = 'emailContent.txt'
MONTHLY_TRANSACTION = 'MonthlyTransaction'
MONTHLY_SUMMARY = 'MonthlySummary'
DOWNLOAD_TEMPORARY_PATH = get_downLoadTemporaryPat... | [
"zone_c@qq.com"
] | zone_c@qq.com |
8b34bc1e8dd03cd34cb5b8d1adc629cdc9f628c6 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyserv/pyserv-010/pycli_enc.py | 4a49b1d65c35c16af0fadd3f6430ecdc0b665737 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,291 | py | #!/usr/bin/env python
# ------------------------------------------------------------------------
# Test client for the pyserv project. Encrypt test.
import os, sys, getopt, signal, select, socket, time, struct
import random, stat
import pyserv.pydata, pyserv.pyservsup, pyserv.pycrypt
from pyserv.pyclisup import *
# ... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
900fbf0db76c5448cde1af59a49eaad0854051d5 | c7663b9ca3ccbef97e311408b18aca7630fd3d9d | /src/python/a.py | e630a6dcb60d8f696d2a104d790ec4bfd1d11931 | [] | no_license | majkl99/programming_examples | 8b5e1857491001129d944beabaa60442f84c95a0 | cca5971eb507485b47cf7e44b28e203a276184b3 | refs/heads/master | 2020-06-01T19:42:41.824314 | 2013-07-12T17:10:02 | 2013-07-12T17:10:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | def f():
return 1
f()
| [
"abc@gmail.com"
] | abc@gmail.com |
6dc565c72880963a1fec4acca397539acff9509e | c2751505ba16edc33675f208b88fd19fb4e1fd51 | /twilio-api.py | 6c1e80dee76d73223f3a9ed88484366fee0dc061 | [
"BSD-3-Clause"
] | permissive | aewens/hackmidwest-2018 | 2615f0e2d52f0c905e727fc89268a2df263e96a6 | 99ba80b5bf1f13496a2c63bacdac8aa8b33db186 | refs/heads/master | 2023-02-22T19:09:04.310177 | 2019-08-22T15:33:07 | 2019-08-22T15:33:07 | 141,827,714 | 0 | 1 | BSD-3-Clause | 2023-02-15T21:39:20 | 2018-07-21T16:11:27 | Python | UTF-8 | Python | false | false | 1,090 | py | #!env/bin/python3
# Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
from flask import Flask, request, session
from twilio.twiml.messaging_response import MessagingResponse
# The session object makes use of a secret key.
SECRET_KEY = 'a secret key'
ap... | [
"garrettewens@live.com"
] | garrettewens@live.com |
8b8584c394b5ebcd4efb0afb7c8ceabaa4ef5b52 | d3edc5b77195090066d8aaf066db47dc79e01d52 | /geeklords/api/migrations/0001_initial.py | 6b5ad0881b21267d94643d20d61e2669b2392bc4 | [] | no_license | Mohammed-Abdul-Hameed-Aqib/imagine-backend-final | a313195e0086c5a9fce7ebf299ba22ccb0bf972b | 1d096472989d6cc820475279d66aed1d2dddc87d | refs/heads/main | 2023-07-16T10:12:00.751104 | 2021-08-22T10:10:30 | 2021-08-22T10:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | # Generated by Django 3.2.6 on 2021-08-22 09:04
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Human',
fields=[
('id', models.BigAutoField... | [
"54206941+AbdulBaseerMohammedKhan@users.noreply.github.com"
] | 54206941+AbdulBaseerMohammedKhan@users.noreply.github.com |
2fd1e687f5a7bc082be9f5285ed52db96156213b | 3f53494ff6a29fd355275ae80eb601974ae527fa | /linked-lists/partition.py | c10273993440988bc82ad5f2780259ddac1bb825 | [] | no_license | t0ri-make-school-coursework/cracking-the-coding-interview | 7af1de190833acf45a58f31f901617a84e56f170 | ca4af5d9793f7570fe0f9a56da89246b8604d646 | refs/heads/master | 2022-11-19T06:43:52.185139 | 2020-07-20T18:38:10 | 2020-07-20T18:38:10 | 268,890,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | from LinkedList import LinkedList
from Node import Node
# 2.4
# Partition
# Write code to partition a linked list around a
# value target,such that all nodes less than target
# come before all nodes greater than or equal to target.
def partition_llist(ll, target):
high_nodes = [Node('partition')]
node = ll.hea... | [
"victoriarosemurray@gmail.com"
] | victoriarosemurray@gmail.com |
b5858ef94707b3015ff7999b47802269901b5183 | 03f2263a7872bd7b4bbc790f6bd40fe4bc40546d | /env_facial_recognition_v1/lib/python3.6/_weakrefset.py | 9ba6e7702f3b57958ac7b189367869ac76a73f64 | [] | no_license | tanlull/facial_recognition_v1 | b17715d506b22f6807fecad5d423506f876efcf4 | 214684ea7df95a8d8b3b15e9873220335b7d8520 | refs/heads/master | 2020-07-19T19:11:09.640314 | 2019-09-21T16:16:08 | 2019-09-21T16:16:08 | 206,497,312 | 0 | 0 | null | 2019-09-05T07:03:24 | 2019-09-05T07:03:24 | null | UTF-8 | Python | false | false | 53 | py | /Users/Anthony/anaconda3/lib/python3.6/_weakrefset.py | [
"amornpan@gmail.com"
] | amornpan@gmail.com |
0ef7962acd98c3e43506b7f74b2dab2cb2f08dae | 253f04576c37354c0ef03cb1f8ce28a63f3a806a | /test.py | 60e2410e9004876c90922736c79f78c415b4714b | [] | no_license | nonthanadol/opencv | 4554f6209b6c5e8b4797806841a62cc8a30bd1e5 | 1017b373d2ae7a3ac3992c46f868e3ab091682da | refs/heads/master | 2023-07-11T16:58:41.989965 | 2021-08-16T15:07:54 | 2021-08-16T15:07:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | print('test')
print("123") | [
"thanadol_non@hotmail.com"
] | thanadol_non@hotmail.com |
a8b91d81f59792d3e00a09a34b0fe6942174e581 | a0a8fbda5657169ad180ae7008a505caff500182 | /courses/admin.py | 8e17ab02c432207b3c3e296d96d3896576f94f59 | [] | no_license | WellingtonIdeao/educa-learning | 4e32d88c741dd7e2fbe45a4194c0ee1970697ca0 | 393c4849e59ee7533e7048d75b42aea2e3e64121 | refs/heads/main | 2023-06-26T04:29:50.741232 | 2021-07-24T18:13:28 | 2021-07-24T18:13:28 | 386,041,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | from django.contrib import admin
from .models import Subject, Course, Module
# use memcache admin index site
admin.site.index_template = 'memcache_status/admin_index.html'
@admin.register(Subject)
class SubjectAdmin(admin.ModelAdmin):
list_display = ('title', 'slug')
prepopulated_fields = {'slug': ('title',)... | [
"wellington.ideao@gmail.com"
] | wellington.ideao@gmail.com |
993b55cf442fc0618a8f796996a6f375fa367cb1 | 63aa87ddc8f02aba98ee05cd0a40de1870cee629 | /venv/bin/easy_install | 90f8382dd18d691b98a1f276f7002e38b12b9d7f | [] | no_license | megaMind432/Ethical | cda9b208c8a32edef980e5c18c225526c5e1160e | 9683814af89fedc079cb615993533cb6f4b4cfe2 | refs/heads/master | 2020-03-31T05:33:20.173091 | 2018-10-07T14:30:51 | 2018-10-07T14:30:51 | 151,950,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | #!/home/mehedi/PycharmProjects/Ethical/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"aamehedi15@gmail.com"
] | aamehedi15@gmail.com | |
997b98b06f6898a2b4149eddc69abfdbdd7dd12e | c9285fbcaf2292593c0ec04a0fcdb049e792876c | /cmake-build-debug/sincronizzazione/catkin_generated/pkg.installspace.context.pc.py | 530cea43be500b76119dca3c36b0e265ff925f14 | [] | no_license | theLorenzo/src | 89d20ea5f050af747b70d2fc978ec1e0c5bf3225 | 4d9e132c79a7c86a8804740e8c2a9bb75da815a9 | refs/heads/main | 2023-04-20T22:54:26.214857 | 2021-05-14T19:48:11 | 2021-05-14T19:48:11 | 363,413,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "geometry_msgs;message_filters;robotics_hw1;std_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PR... | [
"lorenzo2.cassani@mail.polimi.it"
] | lorenzo2.cassani@mail.polimi.it |
aec97231b9dc9a59551633f64e3f43e18ac192dd | ae0ef01cbbaf667d976f777545d5581c01a47335 | /smart_config/__init__.py | 9f30348d972ca22a7d5181f38374bc3cbc0beeff | [
"MIT"
] | permissive | sfahad1414/smart_config | fe1bdfa947bbc8e52c2f29891175a63c28970008 | 02968c25e44e109a62e9201fa0f68590a2a61215 | refs/heads/master | 2022-11-18T15:11:12.066167 | 2020-07-22T15:20:00 | 2020-07-22T15:20:00 | 281,670,973 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | from .smart_config import ConfigLoader, __version__
| [
"fshaikh@digite.com"
] | fshaikh@digite.com |
e19fd71f8bc613cfcb0a5e9b001063477d7d5c75 | f460a91a732dc87743b1ffb71a93fac681019be1 | /dry-dock/lib/exception/unsupported_config_error.py | 0463ed5042e69074e35eada6419fdcbcd01e9e24 | [] | no_license | arueth/dry-dock-python | fff4b07c4a5a43b0a0d75f318dc8433f00c4517a | c7c259b9379dd38ce781463df3cd22023e3f5bae | refs/heads/master | 2020-03-17T11:22:43.771060 | 2018-05-29T19:36:07 | 2018-05-29T19:36:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | class UnsupportedConfigError(Exception):
pass | [
"arueth@gmail.com"
] | arueth@gmail.com |
2ef741e0137d4c3627a81eea5346801b122a223f | 81efbc0649072e5b345f693ee82d1cd03d7f659a | /Widgets/deckInput.py | 835989f203b58d02af32adfa11afd98787884f66 | [
"MIT"
] | permissive | feelool007/Lotto1224 | a753d67e5111df8751599af7cdc774ba44539a58 | fd360fad7260fd9022c8f71d6f48a79f59266b72 | refs/heads/master | 2020-05-01T00:30:24.826265 | 2019-05-20T15:18:27 | 2019-05-20T15:18:27 | 177,169,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | import wx
try:
from .deck import DECK
except ImportError:
DECK = []
class DeckInput(wx.Panel):
def __init__(self, parent):
super(DeckInput, self).__init__(parent)
self.setupUi()
def getValue(self):
return self.input.GetValue().split(",")
def setupUi(self):
self.in... | [
"feelool007@gmail.com"
] | feelool007@gmail.com |
412ad642b07ca84582c7748a2e8b13e99c2f6856 | e04cecc9a2e7e6980a2eb19628209c4a801b21ad | /lib/model/Reinforcement/resnet.py | 9ed67e0fef633af260c1e51597f916d6d715e153 | [
"MIT"
] | permissive | jbr97/RLObjectDetection | 2715a7009b531f9137d8bb01312afb1cbf218326 | 1dc8559bed3647fb6c9379f6e55d0e535037a2fd | refs/heads/master | 2021-09-18T14:39:14.080270 | 2018-05-03T09:58:28 | 2018-05-03T09:58:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,178 | py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from model.roi_align.modules.roi_align import RoIAlignAvg
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import math
import torch.utils.model_zoo as mod... | [
"joishbader@gmail.com"
] | joishbader@gmail.com |
d6006247060b26397e99da3a6cf6b21551f31d67 | b7b1eecf1d23235c7854f00fc7516234fe4efd66 | /main_app/urls.py | f1beb528821cd44348fbbd42e1c250aad02180b8 | [] | no_license | irfanahmd/unit-3-assessment | 9650807f1dae57b995926bee8083cd239078e882 | 17cc465127d8aed07045144376e0d1072bf0580b | refs/heads/main | 2023-02-12T21:38:14.970494 | 2021-01-21T03:13:49 | 2021-01-21T03:13:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('widgets/create/', views.WidgetCreate.as_view(template_name="index.html"),
name='widget_create'),
path('widgets/<int:pk>/delete/',
views.WidgetDelete.as_view(), name='widget_delete')
... | [
"irfan@NC-MBP.local"
] | irfan@NC-MBP.local |
4605e5316a983e02f5cfe91b8b7ccd314443a77d | 3f02cd5e3b84f9abf1a04fe0aad5440d55da339e | /MainQ1.py | 52b5bf6fe9a22e2ba51a6a773fd38b7ccb07b99b | [] | no_license | printlnHi/NPAProgComp2019 | 5450f601795f054077a320b9e29ff2df26957557 | 3709965fea336311b59a155721585e3d5069733e | refs/heads/master | 2020-06-04T14:28:58.464770 | 2019-06-15T09:49:07 | 2019-06-15T09:49:07 | 192,062,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | rows = ["abcdefg","hijklmn","opqrstu","vwxyz"]
cols = ["ahov","bipw","cjqx","dkry","elsz","fmt","gnu"]
for topic in open("task1topics.dat").readlines():
topic = topic.strip()
g = 1
for a,b in zip(topic, topic[1:]):
f = 0
for row in rows:
if a in row and b in row:
... | [
"noreply@github.com"
] | printlnHi.noreply@github.com |
b21f31670e5100427b3e6a75afc252745c99f7f8 | c7ada313e678b21da8be927077c51d5d59f510a7 | /CodeSurvivorServer.py | 8cde9d178b4a5afff27021c1f108f8fab76462e5 | [] | no_license | peasmallHUI/CodeSurvivor | b895f7fe5711b7920960f120dfeb12da7382c7d7 | 612776c0342a5944d544781c4b4da6c4d914ce69 | refs/heads/master | 2020-05-17T19:57:06.025272 | 2019-04-28T02:57:57 | 2019-04-28T02:57:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,059 | py | # -*- coding: utf-8 -*-
# @Author: Anderson
# @Date: 2019-04-02 19:22:08
# @Last Modified by: Anderson
# @Last Modified time: 2019-04-26 22:20:40
import pygame
import numpy as np
from func_timeout import func_set_timeout
import random
import os
import math
import importlib
import glob
WIDTH, HEIGHT = 30, 20
TILE_... | [
"andersonby@163.com"
] | andersonby@163.com |
d998e32f40906238b53714101a60abb3a69745ed | 550116c99a6b4572945324dddb7bd70d66f9a8e2 | /src/Lists_Basics_More_Exercises/04_Battle_Ships.py | 11666b8448ab02aa5f19bb88e2f831a38ac655d8 | [] | no_license | ivelinakaraivanova/SoftUniPythonFundamentals | 810cc92796b335f31bae662fa255de66418fb1fd | 31bb4bbe817a65400bc444dbc5b692bd2ef94432 | refs/heads/main | 2022-12-28T08:53:33.587999 | 2020-10-18T16:15:09 | 2020-10-18T16:15:09 | 305,124,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | n = int(input())
field = []
for i in range(n):
split_row = list(map(int, input().split(" ")))
field.append(split_row)
attacked = input().split(" ")
ships = 0
for item in attacked:
row = int(item.split("-")[0])
col = int(item.split("-")[1])
if field[row][col] > 0:
field[row][col] -= 1
... | [
"73067985+ivelinakaraivanova@users.noreply.github.com"
] | 73067985+ivelinakaraivanova@users.noreply.github.com |
b8f80033c3fb415c6d1bab057b01540bdfb52c63 | 99d98b1fa350dd118af3b060f5df9478dcf5713c | /pogom/account.py | cc6ee7bdd193f4aa5f56211cfd3a6f382e5799d2 | [] | no_license | animanmaster/ShuckleTools | ab512fcc6efe93b91c4364bb51e3703674c0f301 | ddeae3e989a89ddf8b4478697b4e623d7bca8964 | refs/heads/master | 2021-05-08T16:08:29.856562 | 2018-02-02T15:01:50 | 2018-02-02T15:01:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,144 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import asyncio
import logging
import random
import time
from aiopogo.exceptions import AuthException, NianticIPBannedException, BadRPCException
from .apiRequests import (send_generic_request, AccountBannedException,
req_call_with_retries)
class OutO... | [
"8nmojd+l1dqz2bvl@sharklasers.com"
] | 8nmojd+l1dqz2bvl@sharklasers.com |
e3f4668e2d1dbcdfce12eb1dee516bdff72f216d | fd183e0a98aa81aaa4934abfc6952cddd5103f57 | /s3_upload_client.py | 1b94b343b51920bea529b5f43b88916b01517d86 | [] | no_license | bhavanasudharshan/fileshareapp | dd8850db1980fba3b4dbafd20a06a8075d361082 | 8a0cbdcfd8e3413d1e47fa84283403a5ade3ea0a | refs/heads/master | 2022-11-26T18:48:05.842644 | 2020-08-11T21:12:20 | 2020-08-11T21:12:20 | 269,196,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | import requests
import boto3
from requests_aws4auth import AWS4Auth
# b'<?xml version="1.0" encoding="UTF-8"?>\n<InitiateMultipartUploadResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Bucket>file-share-test</Bucket><Key>example-object</Key><UploadId>PbcBo5wRAWaP9fWKIS3aOfYpds1Ezk6dkhBc5D5zmrCnq0jJrdBqPIr_LaorvW... | [
"bsudharshan@Bharaths-MacBook-Pro-2.local"
] | bsudharshan@Bharaths-MacBook-Pro-2.local |
c32fd58f6be565c4fcf11d89226363e8aa375440 | 7c15c4de5af8d61fcf855ecb79e0cc5599ad29e7 | /cocktail_backend/cocktail_maker/wsgi.py | b959266ba413ab842210eeed88024a2501cb39e4 | [] | no_license | s-rigaud/cocktail_party_maker | aa799c6868d1da236124aa787c311ec813f42f37 | dc39e3114351c4a4b4d39fd8d1dc2bb6634065fc | refs/heads/master | 2023-02-27T19:54:35.470538 | 2021-01-23T21:07:32 | 2021-01-23T21:07:32 | 303,127,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for cocktail_maker 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("DJANG... | [
"rigaudsam@gmail.com"
] | rigaudsam@gmail.com |
9e33d666bbf4ced1f73f62d0f4f02a6ca92f334f | 938c55df0653b377318cd434f0fedb97036cfe7d | /day26/flask_web/app.py | a21e33c290a456cd124540302ff1aaf6fe620363 | [] | no_license | elliajen/pyworks | 6f754d0caaa4d110549f7704ade72f0002e63adb | a24a7c02f338fa8d7cfdab5a0d8bc005532dfa99 | refs/heads/master | 2023-08-26T17:27:11.893396 | 2021-10-22T04:28:43 | 2021-10-22T04:28:43 | 402,286,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # 웹서버(local 내 컴퓨터) 가동
from flask import Flask
app = Flask(__name__) #flask 클래스에서 app 객체 생성
@app.route('/') #라우트(경로 설정)
def index():
return "<h1>Hello~ Flask!</h1>" #인텍스페이지에서 문자 출력
@app.route('/login')
def login():
return "<h2>로그인 페이지입니다.</h2>"
@app.route('/member')
def member():
return "<h2>회원가입 페이지입... | [
"dmstndhk123@naver.com"
] | dmstndhk123@naver.com |
43a7a2f7b8f4cd2cf1ef4e1d2914694c7c2d63f4 | 6a95b330e1beec08b917ff45eccfd6be3fd4629f | /kubernetes/test/test_v1beta2_replica_set_spec.py | 90125f05d99575fb7f67ab126e67908b79902a85 | [
"Apache-2.0"
] | permissive | TokkoLabs/client-python | f4a83d6540e64861b59e322c951380a670578d7f | f1ad9c6889105d8510472606c98f8d3807f82020 | refs/heads/master | 2023-07-14T01:36:46.152341 | 2017-12-21T21:32:11 | 2017-12-21T21:32:11 | 115,042,671 | 0 | 0 | Apache-2.0 | 2021-08-06T03:29:17 | 2017-12-21T20:05:15 | Python | UTF-8 | Python | false | false | 1,003 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
2d140ab595fe7142f2c3da40a7a1d59518173fea | f0bd09eb75ffe2052603f2495f01b4181517d965 | /cajaRegistradora.py | 1b8525e93b94725b65aaaf02176aeed86e6268af | [] | no_license | danfmartinez/python | 3b2c40216a2eab0912f1cc735faf65df50dbee35 | 33ffd9ef4294d94d89ed70a60201a019af0a9a35 | refs/heads/main | 2023-03-31T05:01:04.217974 | 2021-04-02T19:16:24 | 2021-04-02T19:16:24 | 354,111,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,758 | py | import unittest
class Producto():
def __init__(self, codigo, nombre, precio):
self.__codigo = codigo
self.__nombre = nombre
self.__precio = precio
@property
def codigo(self):
return self.__codigo
@property
def nombre(self):
return self.__nombre
@propert... | [
"danfmartinezviz@unal.edu.co"
] | danfmartinezviz@unal.edu.co |
fb69f66d4fa633491efe9437950e3c49634879ed | ed47fc4aa9570d569125bbedb9f032a7d02e5322 | /anju/middlewares.py | 62d42dc286fab2fe5363503bb0db4c3327c16e23 | [] | no_license | zhouqiang2017/scrapy-anjuke | e25c456a5cf5fa87371d2bb28ce08a97eac329dd | 7d1a2d592b5661df9f5da6380e04f8fe86c2e51d | refs/heads/master | 2020-06-04T18:08:23.725808 | 2019-06-16T03:23:45 | 2019-06-16T03:23:45 | 192,137,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class AnjuSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy act... | [
"443682811@qq.com"
] | 443682811@qq.com |
38b1a869e426b4bc8380af15bf24a8b106699a48 | c75877f2c277ee148e2a5e1e3d3b95c9b0f21b35 | /PID_CONTROL/controlPID.py | 566976a6c4d9de76407232ee338ab41cbd84eb46 | [] | no_license | chanchey/GarbageBot_2.0 | 8660623bbf053cf75e7c6834a4f76e8eccceac6a | 4d0cd525336a836fecb008e877a0a686f6080891 | refs/heads/master | 2021-04-06T19:31:00.028259 | 2018-11-02T17:14:51 | 2018-11-02T17:14:51 | 125,433,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,578 | py | #!/usr/bin/python
import smbus
import math
import time
import RPi.GPIO as GPIO
import sys
import time, sys, tty, termios
from RPi import GPIO
from time import sleep
f = open("TestDisDawg.txt", "w+")
# Encoder variables
encoderA1 = 18
encoderB1 = 15
encoderA2 = 8
encoderB2 = 25
motorDir1 = 0
motorDir2 = 0
# Power m... | [
"noreply@github.com"
] | chanchey.noreply@github.com |
a85c6cea069b49cb90ecafe385df332ca9eb66d0 | 1e4c21bd99402034685cbbeea02a5849f5a33956 | /examples/frozen_atoms/example.py | d03be2d8a207f27d7714814aee9a3cb7a88d40e2 | [
"MIT"
] | permissive | vtlim/off_psi4 | 061050edd5a695ec9c2e6f2a134c2e9646aa95ed | 5dc462ecceebca8b528ceefd74b5a5b61caaee07 | refs/heads/master | 2021-10-10T10:48:39.715260 | 2019-01-09T19:34:16 | 2019-01-09T19:34:16 | 70,878,596 | 1 | 2 | NOASSERTION | 2019-01-09T19:34:24 | 2016-10-14T05:58:02 | Jupyter Notebook | UTF-8 | Python | false | false | 178 | py |
import sys
sys.path.insert(0, '/beegfs/DATA/mobley/limvt/openforcefield/pipeline/01_scripts')
import confs_to_psi
confs_to_psi.confs_to_psi('example.sdf','mp2','def2-SV(P)')
| [
"lim.t.victoria@gmail.com"
] | lim.t.victoria@gmail.com |
60e7eb15a48e0026a75e5bc5b0ffe0a079ab0dd7 | 405aa514051d6e57c33bdf8e06809c5499544122 | /classifier.py | 5eef3527dd307dba560adf5085f277eea33a6edb | [] | no_license | guan-terry/Yelp-Classifier | 165c7dcda0a8accf18c0f2caadb9c084b5131367 | 37ccb604c19ab8522d077f9e764b1f8b1e0faa68 | refs/heads/master | 2020-11-29T04:40:13.812870 | 2019-12-25T02:51:38 | 2019-12-25T02:51:38 | 230,024,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,486 | py | import json
import pandas as pd
import re
import nltk
import pickle
from nltk.corpus import stopwords
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
from sklearn.linear_model import LogisticRegression, Perceptron
from sklearn.preprocessing import StandardScaler
f... | [
"terryguan1@gmail.com"
] | terryguan1@gmail.com |
045a4d6f603a1051e7c056e2c2ab880df0ca044e | 3abc1fef99ac6ce0b845a1090fae7f6875fee729 | /src/ralph/networks/migrations/0015_auto_20211115_1125.py | d2dee365fd624fe3adacf9beef409bf52b18c93a | [
"Apache-2.0"
] | permissive | allegro/ralph | 5ff9165a202e836061c99e8af20214e0d651622f | b4a72356f527b1f12c7babd7465d2d7fa3ffb0d3 | refs/heads/ng | 2023-09-02T01:13:43.672554 | 2023-09-01T09:48:38 | 2023-09-01T09:48:38 | 4,359,038 | 1,970 | 617 | Apache-2.0 | 2023-09-01T09:44:39 | 2012-05-17T14:04:57 | Python | UTF-8 | Python | false | false | 540 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import ralph.lib.mixins.fields
class Migration(migrations.Migration):
dependencies = [
('networks', '0014_auto_20171009_1030'),
]
operations = [
migrations.AlterField(
mo... | [
"pawel.szulc@allegro.pl"
] | pawel.szulc@allegro.pl |
098d0ead2935f83e1c9bb6331d974b2bb2b08474 | f92c74b694ba08b272576fdfb8afcfe5beb43157 | /seleniumbase/console_scripts/run.py | 36c1579414708f1297a78acf0c4206d53fe6f77d | [
"MIT"
] | permissive | priscilabertolazzi/SeleniumBase | e6842d4b048178a7cdcc9b4863b2fd26f9fab881 | 808ca141694939376d88ce3fac149e2e3f62942c | refs/heads/master | 2022-12-23T00:18:02.640208 | 2020-09-09T18:22:38 | 2020-09-09T18:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,260 | py | """
SeleniumBase console scripts runner
Usage:
seleniumbase [COMMAND] [PARAMETERS]
OR sbase [COMMAND] [PARAMETERS]
Examples:
sbase install chromedriver
sbase mkdir browser_tests
sbase mkfile new_test.py
sbase options
sbase convert old_webdriver_unittest.py
sbase print my_first_test.py -n
sbase translate my_first_... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
4ca23f52cc73ef2d7d1dca3de553acebb8354157 | e9ef3cd143478660d098668a10e67544a42b5878 | /Lib/corpuscrawler/crawl_vag.py | ad0c810fa086afc10452c3e9d5ab39025ec7411c | [
"Apache-2.0"
] | permissive | google/corpuscrawler | a5c790c19b26e6397b768ce26cf12bbcb641eb90 | 10adaecf4ed5a7d0557c8e692c186023746eb001 | refs/heads/master | 2023-08-26T04:15:59.036883 | 2022-04-20T08:18:11 | 2022-04-20T08:18:11 | 102,909,145 | 119 | 40 | NOASSERTION | 2022-04-20T08:18:12 | 2017-09-08T22:21:03 | Python | UTF-8 | Python | false | false | 809 | py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"sascha@brawer.ch"
] | sascha@brawer.ch |
60667646a8c0e4df40e519ec049f1c82344b14e6 | 1225d2662ccfd83fb39152ed2ccf11d4f004b642 | /accounts/views.py | 1fd10ad2a588d116762956a7cc5b97bdc92218ba | [] | no_license | qwer-code/django-mall | 02623eaaaa79fab5e3ac01255859bccb92120bc3 | 8bea457f2292e1f54df5313fad3fd7e54e0273e2 | refs/heads/master | 2022-04-21T11:57:27.046116 | 2020-04-22T10:38:00 | 2020-04-22T10:38:00 | 257,866,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,122 | py | from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth import authenticate, login, logout
from accounts.forms import UserLoginForm, UserRegistForm, UserAddressForm
from accounts.models impo... | [
"790285658@qq.com"
] | 790285658@qq.com |
43a71d7d7363311ff3be09c786729fa446a2e279 | b0856dcd90923f5a7555321fddcc5317b888fc7e | /todo/todo/urls.py | 58eb858bc250b90a36f73e6db2c3849031f6a627 | [] | no_license | SergeyGarinV/Todo | 5fb01719d9652f17d44e1804832ed926611e2cb1 | 8d61081be9093dcfd4b3a9d87f5b7f371f664428 | refs/heads/main | 2023-02-28T00:20:25.336164 | 2021-02-01T16:40:06 | 2021-02-01T16:40:06 | 317,591,864 | 0 | 0 | null | 2020-12-03T17:27:56 | 2020-12-01T15:54:50 | Python | UTF-8 | Python | false | false | 893 | py | """todo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"SergeyGarinV"
] | SergeyGarinV |
d7c4ef7b34329b7553264d71940737cdf5fc1cdd | 29bd55d171733586f24f42151d44f4312b6a610e | /keras/keras102_lamda.py | 91b649ecbf888df8c63544cd18c8276d7f322857 | [] | no_license | votus777/AI_study | 66ab1da2b8e760d0c52b0ed2b2f74158e14f435b | f4e38d95690c8ee84d87c02dc20a1ea59c495f04 | refs/heads/master | 2022-12-04T15:52:14.855624 | 2020-08-20T06:12:52 | 2020-08-20T06:12:52 | 262,975,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py |
gradient = lambda x : 2*x - 4
def gradient2(x) :
temp = 2*x - 4
return temp
# 두 개의 다른 표현식이다.
x = 3
print(gradient(x))
print(gradient2(x))
| [
"votus777@users.noreply.github.com"
] | votus777@users.noreply.github.com |
e5847ba403b39dd9a8e6858c507ffb1cc9b99510 | 56c8ac87c5f1d72c912a3aa2e9397d733d0610d7 | /les 4/pe4.3.py | 8e1cb07dc3b3260f5532e2f2ac1a4ac6aa9ae065 | [] | no_license | LaurineMoes/programming1 | 14f2f252013eee3dfea6c2dda59485d35b95a3fa | ad5efce5ef6074b2bc3e138e55ed22a8c59e8892 | refs/heads/master | 2020-03-28T12:51:44.847591 | 2018-11-29T08:52:06 | 2018-11-29T08:52:06 | 148,341,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | uurloon = input("Wat verdien je per uur: ")
uur = input("Hoeveel uur heb je gewerkt: ")
print (uur + " uur werken levert " + str(int(uurloon) * int(uur)) + " Euro op")
| [
"laurine.moes@student.hu.nl"
] | laurine.moes@student.hu.nl |
4563a035a826fdf952427cace81a88aef1bd0102 | ad491c40c26d2d4eca650afed301d38715e33510 | /mod3/3.4.py | 395a808da7ca3ff001c742181f6e8285dc04982b | [] | no_license | RaisZzz/AaDS_1_184_2021 | c1fbd936e8e11d34b2eb1f2a0dea8cad1735bc4e | eaccac768ac8b3758ff81161da1dff02f2bf14c3 | refs/heads/main | 2023-05-05T13:56:58.275708 | 2021-05-28T10:13:10 | 2021-05-28T10:13:10 | 338,696,848 | 0 | 0 | null | 2021-02-14T00:10:14 | 2021-02-14T00:10:14 | null | UTF-8 | Python | false | false | 738 | py | def cyclic_string(s):
lenght = len(s)
k = [0] * lenght
for i in range(lenght - 1):
j = k[i]
while (j > 0) and (s[i + 1] != s[j]):
j = k[j - 1]
if (s[i + 1] == s[j]):
k[i+1] = j + 1
else:
k[i + 1] = 0
return k
inp = str(inp... | [
"noreply@github.com"
] | RaisZzz.noreply@github.com |
3af34cb84ae4858b351760c26c31267162657760 | 3a4a98dd409d67e19fe643e608298711e7293431 | /爬虫/Include/招聘/zhilia.py | b416c70ce4fc0ae54ac593c614066b69f9e6a621 | [] | no_license | Jasonzy1015/python-5 | 031ac73512adcf4b4ceceb95943876de1ef26039 | 055050922e2240af7f61a45e28af3d4997012132 | refs/heads/master | 2022-03-26T11:57:32.223358 | 2020-01-04T08:11:12 | 2020-01-04T08:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,263 | py | import urllib.request
import json
# 提取json格式信息的库
import jsonpath
# 存取进xls文件的库
import xlwt
n = 0
myxls = xlwt.Workbook()
sheet1 = myxls.add_sheet(u'yx', cell_overwrite_ok=True)
# write(i,j,value)存取文档的首行
sheet1.write(0, 1, "公司名")
sheet1.write(0, 2, "地区")
sheet1.write(0, 3, "公司人数")
sheet1.write(0, 4, "类型")
sheet1.write(0... | [
"1315426911@qq.com"
] | 1315426911@qq.com |
dd763d08e04d4800256740f5e2a41d118a8db67b | 9032dfaea70868d424fded8237c17637d9146388 | /115/115.py | 8084e3b7f15f4b478e341d5d4a67a17ad0403163 | [] | no_license | pianowow/projecteuler | 20e136595c9fe2945aa9f078a32b8242b8bef783 | c09a2e1a6889b9c89bc4bd9c56c2bbc25303e7ac | refs/heads/master | 2020-04-05T23:17:58.075294 | 2013-04-01T14:16:51 | 2013-04-01T14:16:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: CHRISTOPHER_IRWIN
#
# Created: 06/09/2012
def count(m, gap, cache):
if (gap < m):
return 0
if (cache[gap] != -1):
return cache[gap]
total = 0
for len... | [
"pianowow@gmail.com"
] | pianowow@gmail.com |
039ccf93cec028a95a10e965719e2644dea90629 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part004501.py | ed45a8b978dd61582172fdc173ae6454577b7843 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
51e8fae298d3258f1bc488df509e29b0599f907b | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/299905/snippet.py | 463be82ad5d7f9e9ed4f498a8c2cafdb1dd3dfbf | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 1,239 | py | "Memcached cache backend"
from django.core.cache.backends import memcached
from django.utils.encoding import smart_unicode, smart_str
MIN_COMPRESS_LEN = 150000
class CacheClass(memcached.CacheClass):
def add(self, key, value, timeout=None, min_compress_len=MIN_COMPRESS_LEN):
if isinstance(value, unicode)... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
68e38d1f78e67803869ed7a572190babe8b2f9b7 | 41de4210af23a8a8a3ca7dd090bb51faecf4a0c8 | /lib/python3.5/site-packages/statsmodels/regression/recursive_ls.py | 9765f8474537019ac360f604b9cc30b332e0d99c | [
"Python-2.0"
] | permissive | randybrown-github/ziplineMacOS | 42a0c2bfca2a54baa03d2803dc41317647811285 | eb5872c0903d653e19f259f0800fb7aecee0ee5c | refs/heads/master | 2022-11-07T15:51:39.808092 | 2020-06-18T20:06:42 | 2020-06-18T20:06:42 | 272,631,387 | 0 | 1 | null | 2022-11-02T03:21:45 | 2020-06-16T06:48:53 | Python | UTF-8 | Python | false | false | 26,190 | py | """
Recursive least squares model
Author: Chad Fulton
License: Simplified-BSD
"""
from __future__ import division, absolute_import, print_function
from warnings import warn
from statsmodels.compat.collections import OrderedDict
import numpy as np
import pandas as pd
from statsmodels.regression.linear_mo... | [
"randybrown18@me.com"
] | randybrown18@me.com |
5a092fc764baa4a755ddf4296e3818a96a66c83c | 3fc51020aa360964759dcbc8d841bfdc3d268432 | /personal/forms.py | 097c703dc3958d62e56daf06d3273117bac902fb | [] | no_license | tapopadma/myWebsite | 1d1671f42db4d23c2f0ad17c8ba000bef6aed050 | 6df6d3ae2cb28f81432866bd346ffe8a4889b9f8 | refs/heads/master | 2021-01-16T21:04:13.610970 | 2016-06-26T19:49:20 | 2016-06-26T19:49:20 | 61,558,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | from django import forms
class ContactForm(forms.Form):
first_name = forms.CharField(required=True, widget=forms.TextInput(attrs={'placeholder': 'First name', 'class' : 'form-control'}))
last_name = forms.CharField(required=True, widget=forms.TextInput(attrs={'placeholder': 'Last name', 'class' : 'form-control'}))
... | [
"tapopadmatripathy1995@gmail.com"
] | tapopadmatripathy1995@gmail.com |
176d522c11b20f2be3cbbd8d3308cfdfaffc93f9 | 52d27b1ae41dd7d9231132dede34a8d25f2adc2f | /loger.py | 50caf94014175b16e1975557713b6635e63de797 | [] | no_license | andrew5205/Pyserial | 59febbf53e953495ba74c7851bfe03eaddcffc6f | 312cccf351843957e46aa1626d63ba4b4cbbc917 | refs/heads/master | 2023-02-23T17:54:42.752621 | 2021-01-26T05:39:10 | 2021-01-26T05:39:10 | 329,500,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | import serial
import serial.tools.list_ports
import sys
import time
from datetime import datetime
print('Search...')
ports = serial.tools.list_ports.comports(include_links=False)
for port in ports :
print('Find port '+ port.device)
# ser = serial.Serial(port.device)
# if ser.isOpen():
# ser.close()
all... | [
"andrewchung11@gmail.com"
] | andrewchung11@gmail.com |
4eca7d3bec4348ead491c92d3bffb1b5836095ad | 84372dcaec5b7b70deafc1fffba0200f14b849aa | /spider.py | abaee8698479d0534398a887129fd6d62d411e03 | [] | no_license | ake698/pollusion | 6a33c4379eb368e7597419e1c114d3ebb6666479 | 5cc4c6d2f9a7176899b0b6b2fbd860810cecfc9f | refs/heads/master | 2020-12-01T19:05:27.762545 | 2019-12-31T05:46:41 | 2019-12-31T05:46:41 | 230,738,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/12/29 16:01
# @Author : QS
# @File : spider.py
#潮州空气质量数据采集
import requests
from bs4 import BeautifulSoup
from time import sleep
import datetime
import django
import sys,os
dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(dir)
os.envi... | [
"fsq5431@qq.com"
] | fsq5431@qq.com |
a468f3de10abd49125aa13e427ffbc8515c5cafc | 1bed3057cfc7da9156647b6251bd0109157472ee | /_CNN/_CNN_Med/cnn.py | 8c61eadfb7d7be5d0d720dfd7ce70d1bb865d73b | [] | no_license | liyaguo6/Machine-learning | 4b13f230b17df7c19bb1c8757e9c61523d045263 | a470592122699c7d45edd8c5311b3e252c0b3548 | refs/heads/master | 2020-03-27T08:30:38.056434 | 2020-03-04T13:02:12 | 2020-03-04T13:02:12 | 146,262,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,197 | py | import tensorflow as tf
class TextCnn:
def __init__(self,sequence_length,num_classes,embedding_size,filter_sizes,num_filters,l2_reg_lambda):
# Placeholders for input, output, dropout
self.input_x= tf.placeholder(tf.float32,[None,sequence_length,embedding_size],name='input_x')
self.input_y= ... | [
"1075543143@qq.com"
] | 1075543143@qq.com |
74e71e949b0445cb41698dff0d78d98e28390ed7 | ec500d527b51e9d109dc097bbcae569ca842e469 | /exercise/iot/code/codejam.iot.mqtttcp.dataprocess.html5.py | 8acaf7d0e6dac4d050f25ca7b8cd3275cc46dbeb | [
"Apache-2.0"
] | permissive | krish469/data-intelligence-codejam-exercises | ffcb5707ed7bda6eb555b2e1a95270c190dd66a2 | ac31cf87e6b264d56123eef51c134dad6a87236e | refs/heads/master | 2022-11-04T09:21:18.214991 | 2020-06-18T23:15:30 | 2020-06-18T23:15:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,936 | py | import time
import locale
import json
#import ast
# Number of max devices
max_devices_qty = 100
locale.setlocale(locale.LC_ALL,"")
def main(payload):
last_timestamp = int(round(time.time()))
ubody = payload.body.decode("utf-8") # Must be converted to Unicode first
#body = ast.literal_eval(ubody) #ast.li... | [
"witalij.rudnicki@sap.com"
] | witalij.rudnicki@sap.com |
4e6bd8bdb3d4cdd0657398f4522a37fd91b11ea5 | 6d3daa58e4d804e1ef52c016aad26a6ed8dfb4e2 | /Wine Price Prediction.py | 9fb764e8a33db3411289fa50c37c7bdaacfae64b | [] | no_license | Tushaar28/Wine-Price-Prediction | a241a829d2bafaa0d68e6575cbaf46964a3f04ce | 9a0a202e09f207855273e4264e1b347a3f133752 | refs/heads/master | 2020-08-01T01:13:13.622337 | 2019-09-25T09:49:29 | 2019-09-25T09:49:29 | 210,810,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,534 | py | import numpy as np
import pandas as pd
import statsmodels.formula.api as sm
import matplotlib.pyplot as plt
get_ipython().run_line_magic('matplotlib', 'inline')
wine = pd.read_csv('https://storage.googleapis.com/dimensionless/Analytics/wine.csv')
wine.dtypes
wine.describe()
wine.head()
model1 = sm.ols(formula='P... | [
"noreply@github.com"
] | Tushaar28.noreply@github.com |
3e87a4ddd10506d80c44ca4532849331eefd3f4b | 1bebf42f17c558488fce0bea5c58b55fd049c286 | /django_table_filtering/wsgi.py | 6962142610ad722b2c01ceb12560021ec1f4c8a0 | [
"Unlicense"
] | permissive | ckbelvedere/django_table_filtering | 60ab100fde25e9fbe4e38f7e7b5b4257f45d08fa | d82b89a871779b6a000945da14455c9acb8c47bb | refs/heads/master | 2021-01-02T22:30:01.663587 | 2016-11-22T11:22:44 | 2016-11-22T11:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | """
WSGI config for django_table_filtering 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/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"spapas@gmail.com"
] | spapas@gmail.com |
1e793b7f5eb908ffbcc3170fb66bcd0a3ab034e0 | e2c3cfdb246671dd23c961b23bfbcc846a56b225 | /rockpaperscissors.py | fe6a24f2b932cdfb99b35c89386e196859de9153 | [] | no_license | vins89/Assingment1_math | 2ac944c57d0c4ae693a97ceb804d9de498f2d6c3 | 6b6c96cb93832a61032ac8f1f5b056d87355b8bf | refs/heads/master | 2021-01-11T14:05:12.400757 | 2017-06-29T02:48:22 | 2017-06-29T02:48:22 | 94,954,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py |
a = ['rock', 'paper', 'scissors']
b = ['rock', 'paper', 'scissors']
x = raw_input("user 1: rock, paper, scissors?")
y = raw_input("user 2: rock, paper scissors?")
if x == y :
print "its a tie"
elif x == "rock" and y == "paper":
print "y is winner"
elif x == "rock" and y == "scissors":
print "y is winner"... | [
"noreply@github.com"
] | vins89.noreply@github.com |
b925ebaeda376ca4c8ccc1c02b72eb10b1d2d267 | 6073a13876da060760d0eaa48a76af27f5b74a18 | /leetcode/stella/String.py | 082277e27ef9bbf40a5d51819f7d5dbf032ce247 | [] | no_license | fireflyc/leetcode-100 | b24e3b575190d5d52f3f6b6600f995e361f1d485 | b3ec7b761e750b5e6f0bb7d0221bfd26a4f807cc | refs/heads/main | 2023-07-07T00:15:53.898975 | 2021-08-15T07:30:27 | 2021-08-15T07:30:27 | 362,154,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,140 | py | from typing import List
def find_words_that_can_be_formed_by_characters(words: List[str], chars: str) -> int:
def match_character(w):
matching = chars
for i in range(0, len(w)):
pos = matching.find(w[i])
if pos > -1:
matching = matching[:pos] + matching[pos ... | [
"zhu.stella@outlook.com"
] | zhu.stella@outlook.com |
d23bdd30e8190210edd9107c2e3d8da1127f0046 | 24c5c46f1d281fc15de7f6b72a5148ae85f89fb4 | /SRC/unittest/case_interface_bak.py | b566f32234c2a6425ea57ff17e5e87a1788e972a | [] | no_license | enterpriseih/easyTest | 22d87c7ffe40fb10a07f7c5cdd505f63dd45adc0 | 43b8d294e898f25055c78313cfece2753352c250 | refs/heads/master | 2023-08-23T22:55:14.798341 | 2020-02-11T09:13:43 | 2020-02-11T09:13:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,127 | py | # coding=utf-8
import functools
import json
import unittest as UT
import requests
from SRC import settings
from SRC.common.const import RunStatus, RequestMethod, RequestDataType, RunResult
from SRC.common.decorator import assert_dec, codeException_dec
from SRC.common.exceptions import JsonLoadsException
from SRC.comm... | [
"yaolihui0506"
] | yaolihui0506 |
52a2d25629eb0aee97b31ef86c5b17f086e69730 | d437a2dac4dd5a13f92febb06789d2638f3ac98b | /mainapp/migrations/0008_auto_20210114_2321.py | c1549608f18ab4c1ef0b0f7224eb93fd9339be61 | [] | no_license | VanionVina/first-test-django | 2e9ab3273173b9b4c2c73a880faac7d7519e3c86 | 4fc02951c9b42c2ff6116ddbd9e0321e4e996846 | refs/heads/main | 2023-02-15T22:38:59.214216 | 2021-01-15T17:38:54 | 2021-01-15T17:38:54 | 328,221,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | # Generated by Django 3.1.4 on 2021-01-14 18:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0007_auto_20210114_2108'),
]
operations = [
migrations.AlterField(
model_name='cart',
name='final_price',... | [
"gamem9120@gmail.com"
] | gamem9120@gmail.com |
f1ee1dc50e5c6b36d4e54422457bbdcd46f88395 | 015f49cd040b82773409b01b3d40c0e19e828402 | /admin/fladmin/apps.py | 2f3e1d10d4ba7b3b171e1260f9a1ca866ab8513a | [
"MIT"
] | permissive | cheesycod/FatesList | a36ff488d17f1e7ed247c6269ee94a626f468968 | 82a175b94f93540bab57262c8aa8500a008e7d7b | refs/heads/main | 2023-03-25T04:46:37.943400 | 2021-03-26T08:26:41 | 2021-03-26T08:26:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class FladminConfig(AppConfig):
name = 'fladmin'
| [
"meow@683e51740c.servercheap.net"
] | meow@683e51740c.servercheap.net |
f667e24c635794745a0cd682814b11c7ae323274 | 6e0cc09bab285a388950122abfa136ebdec88427 | /blog/settings.py | 3771c5d822f734ff66d2dda02a4b67a2ad6a5146 | [
"MIT"
] | permissive | SolidScript/blog | 61c5cc9430dbc48fc96cab387ab3ce145a41e807 | 9bc80f92825432a24325fcf3caec00a1e0ea9a84 | refs/heads/master | 2021-05-11T04:05:39.879271 | 2018-01-18T04:27:41 | 2018-01-18T04:27:41 | 117,931,789 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | """
Django settings for blog project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
im... | [
"mohitkyadav@outlook.com"
] | mohitkyadav@outlook.com |
be36fb11ecb75c519d15f74a3051cbd760f262f3 | 51a5005a8baf3fe11dc821aeddf4eacff33ecdd4 | /tools/play_path.py | d5d37ed6653185ad35ac781648365b437b3a4559 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | personalrobotics/user_interface | 46b9065fb789f5bed43c861314389804a9c62522 | 517aa17578d0e564da5d8c7c975df76742c70968 | refs/heads/master | 2021-04-30T22:10:16.240873 | 2017-01-23T21:42:42 | 2017-01-23T21:42:42 | 69,285,380 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | #!/usr/bin/env python
from push_planner_benchmarks.tools import play_path
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser(description="Test playing a path")
parser.add_argument("--query", type=str, required=True,
help="The yaml file that specifies the qu... | [
"vrangane@roy.personalrobotics.ri.cmu.edu"
] | vrangane@roy.personalrobotics.ri.cmu.edu |
df7fd05f0a9a837110aabf93f811e9f0522e6c47 | 2bdb128188c40c670fd0a26ca8a447cae58a8848 | /tests/commands/test_command_sharer.py | 670f1b14dde21a3390b02c5eb845a98bb1b06c84 | [] | no_license | cl33per/chat_thief | 3de834cbb722a36f37c5e033e3f8c7672c325ec4 | afb7660eacb3b5f476367eb388b4e6981a49e54a | refs/heads/master | 2022-11-14T13:07:49.213617 | 2020-07-01T16:27:45 | 2020-07-01T16:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | import pytest
from chat_thief.commands.command_sharer import CommandSharer
from chat_thief.models.user import User
from chat_thief.models.command import Command
from tests.support.database_setup import DatabaseConfig
class TestCommandSharer(DatabaseConfig):
def test_share(self):
user = User("fake_user")
... | [
"davidmichaelbe@gmail.com"
] | davidmichaelbe@gmail.com |
453c69653de395d2fcbc7a7f3947971f6ec6d872 | f9d0a3db7b8d43b01d6a4045b32ff376bda02f4d | /server.py | 688eb8f15086dcddd2722e4be4b9f0d3509b7107 | [] | no_license | gunjan-iitr/model_API | 559f4ae49f6fe99c04392a1e5f7e8a576294294a | 3385b1a9d29aa853bfc77d862bdab727812d582c | refs/heads/master | 2022-07-09T07:07:42.185036 | 2020-05-15T21:46:02 | 2020-05-15T21:46:02 | 264,304,519 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import numpy as np
from flask import Flask, request,jsonify
import pickle
app = Flask(__name__)
model = pickle.load(open('model.pkl','rb'))
@app.route('/api',methods=['POST'])
def predict():
data = request.get_json(force=True)
arr = np.array(data['arr'])
prediction = model.predict([arr])
output = prediction[0]... | [
"noreply@github.com"
] | gunjan-iitr.noreply@github.com |
532846d49d56961b880780dd986e7e3500e6d70e | eb6e282c7e5fe1bf99f8b7aa79d03f1b27482f11 | /Guassian Elimination -with and without pivoting.py | 7d985b144188f47a0867655dd1e9de9f024b37a4 | [
"MIT"
] | permissive | VineethPachava/Mathematical-Matrix-Methods | 3f9e57cc7f55e19bc0b0a80d73343c534e63bc32 | 542fcded1514d0891145e8a06f3e5fd0959d4c68 | refs/heads/master | 2021-01-01T15:47:23.945686 | 2017-07-23T04:56:55 | 2017-07-23T04:56:55 | 97,704,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,571 | py | '''
----------------------------------------------------------------
Title: Gauss Elimination Method
Name: Vineeth Pachava
--------------------------------
'''
def Guassian_nonpivot(D,E,n): #A is assigned to D,B is assigned to E
for k in range(n):
... | [
"noreply@github.com"
] | VineethPachava.noreply@github.com |
0ef00880b7d7440ce40aea7b5a35d200cc986ab3 | 7316069d259c7a2338ae1891bdbba6e46486b823 | /multithread/Counter.py | dc7862d5f83616cfc15af4aaae927415247e9151 | [] | no_license | GuoXi722/PyQtPractice | 07dbb77d36776d2e0e96a6aa69aeb5da8f58571d | 40ded82c2dc70864763e5e93dd0b2da57cb8dd18 | refs/heads/master | 2021-01-08T20:21:49.450035 | 2020-02-27T02:23:02 | 2020-02-27T02:23:02 | 242,132,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
sec = 0
class WorkThread(QThread):
timer = pyqtSignal() # 每个1秒发送一次信号
end = pyqtSignal() # 计数完成后发送一次信号
def run(self):
while True:
self.sleep(1) # 休眠1秒
if sec == 5:
... | [
"asaf227@126.com"
] | asaf227@126.com |
9643fb9df4f77bc2b0879985b47062773a83ff15 | 54489f723841157ff6f9d3aa3d9d9590f27d2ed5 | /stack_Overflow_Parser-master/test.py | 00a865816807e35ffbb0b0e0548486aa85a62a26 | [
"MIT"
] | permissive | Ash515/awesomeScripts | 8126751d9cd47564e6d76726cbde38a4291cf223 | 3a2c0888207aca044e03ec9f387035e14879fd15 | refs/heads/master | 2022-12-23T09:42:33.998020 | 2020-10-05T11:50:18 | 2020-10-05T11:50:18 | 301,373,870 | 8 | 0 | MIT | 2020-10-05T10:40:52 | 2020-10-05T10:40:52 | null | UTF-8 | Python | false | false | 12 | py | a = 5 + "b"
| [
"deepak008@live.com"
] | deepak008@live.com |
907fa10baaf747393b739dea0d5ac7a8ad148eab | 63059890e4f66a5c81bf6e8b488836216086e70b | /01day/7-备份大师.py | 4665ffa90bb2f2188f449b135c21e42a01a32200 | [] | no_license | jiuwangshiyan/1808- | 2b647b8388dac14b6724808aa26d060bedc64a8e | eb3c04e4b7d39343c5beda518f95ad33dde2e65c | refs/heads/master | 2020-03-28T02:51:11.423694 | 2018-09-07T01:21:10 | 2018-09-07T01:21:10 | 147,602,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | name = input('请输入要备份文件的名字')
f = open('8.txt','r')
content = f.read()#content 是读取f.read
print(content)
f.close()
#把8.txt内容写入到9.txt里
p = name.rfind('.')
s = name[ :p]
e = name[p:]
newname = s+'备份'+e
f1 = open(newname,'w')
f1.write(content)
f1.close()
| [
"1848919677@qq.com"
] | 1848919677@qq.com |
d60a97c99a0513292a8111eef4d74b11f0edbc80 | 96fdfc2fa226f13b4e3b4755e7de626e10cd58e5 | /Sex/spiders/spider.py | f236e06bb8445cd89969b4023053f7f7603fbce4 | [] | no_license | zjmmjzzjm/sexspider | 96a1d699d4af5483e660f4c2e5e624aa092057ce | 0102a1e4940778725288c5e962628669cd8fe0d9 | refs/heads/master | 2021-01-16T01:23:48.420415 | 2014-05-24T03:41:09 | 2014-05-24T03:41:09 | 20,795,534 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,236 | py | import scrapy
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.http.cookies import CookieJar
from scrapy.selector import Selector
from Sex.items import SexItem
import datetime
import urllib2
import exceptions
#import socket
import string
... | [
"niklaus520@aol.com"
] | niklaus520@aol.com |
2c5633ab769bf20b5ae3575ae098ba9b6048e4bc | 6820a16eef223f31648ad66b1b77cf03f71b7248 | /Project/linear_regression/9x9-non-weighted.py | 48a423d14961b8b36df225d56a36dd14e81a8801 | [] | no_license | usmankiet98/Ai394 | e1a4daf9f283d260a1ba0f932781d729be4b68f7 | 86d7c4a35da5d216374bb1a654e677c1004b53fb | refs/heads/main | 2023-04-11T12:17:54.372365 | 2021-04-26T15:22:10 | 2021-04-26T15:22:10 | 350,694,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,072 | py | import numpy as np
import sklearn as sk
import pandas as pd
from sklearn.naive_bayes import MultinomialNB
from sklearn.model_selection import train_test_split
from sklearn import svm
from sklearn.svm import SVC
from sklearn import metrics
from sklearn.preprocessing import StandardScaler
from sklearn.neighbors ... | [
"noreply@github.com"
] | usmankiet98.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.