blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c6d52a4e06270dddf04863bcdef9de3cc07487dd | 09ca09bb5145d47aaefe7d521e420cbfe4984eaf | /pb_server_reference/twistedpb_server_1.2/server.py | b6956904a0ef1d53270f23c8e95ffa4485a53861 | [] | no_license | bendemott/bend | 2dfad27a72c1c3392c9d433cf5321dfd89c41ae7 | 8f6e57049324a21a37ab54ad4f3a644a413e6f0e | refs/heads/master | 2020-04-06T07:00:57.135879 | 2013-07-13T19:45:16 | 2013-07-13T19:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,347 | py | #! /usr/bin/python
'''
This is a Twisted Prospective Broker Server Application Server
Prospective Broker is a set of api's to handle remote objects and communication
between client and server.
This server is an alpha version and will contain logic to test new concepts and
methodologies around Perspective Broker.
Go... | [
"ben.demott@gmail.com"
] | ben.demott@gmail.com |
8bdff3b2d87095e5942e3af9fd25eca4d179f41d | 9e9ec4ad8430933c9c63bfa9539ccbd8a04b4bf5 | /course/urls.py | 06d09e7be4155e38f7354877528a342b9737d4b4 | [] | no_license | dmnhwjin/Django_Test_Platform | 34bceb2cafbef575b61bac0eacd583b6580bfc85 | 567174a30bf5404f45cf8ac4e7011ba3ab262011 | refs/heads/master | 2022-02-10T06:47:22.068682 | 2019-05-08T12:51:10 | 2019-05-08T12:51:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from django.conf.urls import url
from django.views.generic import TemplateView
from .views import CourseListView,ManageCourseListView
from . import views
urlpatterns = [
url(r'^about/$',TemplateView.as_view(template_name='course/about.html'),name='about'),
url(r'^course-list/$',CourseListView.as_view(),... | [
"q95linyu@163.com"
] | q95linyu@163.com |
166351139c35e29e21caa9e41e3d1bad68ff61a9 | a4d087f5a4fcc9998ae5f84c393b42cbc26d6c99 | /plotRN.py | c84b03a2c636c7de4fa3edf01bc0f8e3e803872e | [] | no_license | zhuww/noisemodel | 49780390e97f31ab515024ea883bf5835bcf232c | 4c545692518842ed68bcb324c906c0c0ccba5288 | refs/heads/master | 2018-12-29T18:57:59.435146 | 2015-02-05T10:22:59 | 2015-02-05T10:22:59 | 24,010,531 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,870 | py | import numpy as np
import scipy.linalg as sl
import os, sys
import time
from numpy import dot
from datatools.tempo import *
from fortran_utils import *
from pylab import *
from scipy.optimize import fmin, minimize, fmin_powell
from rankreduced import get_rr_rep, pl_psd
np.set_printoptions(precision=3, suppress=True)
s... | [
"zhuwwpku@gmail.com"
] | zhuwwpku@gmail.com |
6496d16a1187ee2afb1d4f13a192c17ebc29b49a | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/work/v4_1/models/board_reference.py | 6e58999b0b5322ab38b6dc0d498ad651c3982709 | [] | no_license | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"usama.blavins1@gmail.com"
] | usama.blavins1@gmail.com |
a5e9f553c4445d6dc6b90192c0415a3fbc9acd66 | f93dc6941a780e4e117f796d8f32676e5706eb27 | /jagerunner/Configuration.py | 62e82e5cd12213f5aaa7d7af36f73202c5ef9af3 | [] | no_license | ghik/sg-swift | 396caf3dfaa6ac12ceace64d3c19721967092ba3 | 315e6502697d7992e071880379bdb4617085eaae | refs/heads/master | 2020-11-26T15:23:27.107947 | 2013-01-17T13:10:36 | 2013-01-17T13:10:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py |
class Configuration:
driver = 'jageplatform'
execpath = '/home/ghik/sem/Gridy/sg-swift/jage/algorithms/applications/emas-app'
agexml = "classpath:age.xml"
dotreplacer = '_'
constantParameters = ['outfile', 'steps', 'problem_size', 'islands_number', 'individual_chanceToMigrate']
s... | [
"roman@student.agh.edu.pl"
] | roman@student.agh.edu.pl |
52f5c5b0eebfe21aefcedfcaa6b683808db9b6ae | 674f1a1d4ed16e8db51e8d663a85b955a244aece | /src/vscript/tests/statements/test_sub.py | eb66b71409125a49bc86ee63ed83a12c549e80af | [] | no_license | VDOMBoxGroup/vdomserver1.3 | a84fcec493cdcbae95fa5b51ba54912ac2ea8d98 | b9df6bcbe3b78dbc3b48ab074150e1a0d31edab4 | refs/heads/master | 2021-01-20T20:08:02.516528 | 2018-05-22T06:06:16 | 2018-05-22T06:06:16 | 62,622,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,009 | py |
from ...testing import raises, VScriptTestCase
from ... import errors
from ...subtypes import mismatch, empty, null, integer, string, double, \
boolean, error, binary, date, array, dictionary, generic, nothing, \
nan, infinity, true, false, v_mismatch, v_empty, v_null, v_nothing
class TestSubStatement(VScr... | [
"Nikolay Grishkov@230e8929-42e3-3b44-a413-55659dd3a577"
] | Nikolay Grishkov@230e8929-42e3-3b44-a413-55659dd3a577 |
4d1e79f734bd19c0d0972d5276d3633d0a9326d3 | d1caebb87160a93239abad56188fc8e934b5ba04 | /recipe/bin/chardetect | b338c406b9fe3f3b912a0ab65f77826ddc75669a | [] | no_license | glennneiger/recipebook | 05ae0464227548e340e21557fde580b42fe7b7bc | 5320397d79fce98fd8306b722c594940038f0137 | refs/heads/master | 2020-12-03T22:43:40.944841 | 2020-01-03T01:27:38 | 2020-01-03T01:27:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/Users/priyanka/Desktop/recipe/recipe/recipe/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"priyanka.renta@gmail.com"
] | priyanka.renta@gmail.com | |
6b5467a41c41da8b62519815c7c1e220f5e91bc1 | 91ad6a972fb75a9c0f47924784a1efbab49dc0dc | /find_all_poss_palindromes.py | bb2daf4ff4ed8613db8666e6700d3bc19621bf16 | [] | no_license | asharma567/practice_problems | ed7d0ce19d18db104151a5d681fe80f3a086d671 | d39b050d24beb5beaab0bbb4d2a3f25c7e82d792 | refs/heads/master | 2021-05-16T02:43:17.265135 | 2018-04-05T18:19:31 | 2018-04-05T18:19:31 | 24,543,026 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | '''
finding all possible palindromes problem:
*still looking for a better write up of the problem
'''
from itertoools import permutations
def permute_string(string):
#starting with the first character move it once to the right
for char in string:
for i in xrange(len(string)):
before ... | [
"asharma567567@gmail.com"
] | asharma567567@gmail.com |
e7bab45d83b2b3418bbf9dfb6ebb11ed89573d0a | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/joblib/test/common.py | 038ab537b9faa4cf059cd0c8b2edab674cdc1a7a | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 3,061 | py | """
Small utilities for testing.
"""
import threading
import signal
import time
import os
import sys
import gc
from joblib._multiprocessing_helpers import mp
from joblib.testing import SkipTest, skipif
# A decorator to run tests only when numpy is available
try:
import numpy as np
def with_numpy(func):
... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
a16d77aee837954ac3a8a0501b4049e329e31f53 | 369961a60d92e42ff3273b3e0397590a9ca0b344 | /blog/views.py | b36f5692cd97fb70559e2ef44f8224ef066f0b48 | [] | no_license | monxiaolee/django-blog | 2c0d174a493f27dcb5e9d483a994b894357b0c90 | 6b38d25c5cd7f81dea15da25626ee4c9aece32b6 | refs/heads/master | 2020-03-19T13:52:38.576933 | 2018-06-08T09:40:00 | 2018-06-08T09:40:00 | 136,599,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | # -*- coding: UTF-8 -*-
from django.shortcuts import render
# Create your views here.
from comments.forms import CommentForm
from django.http import HttpResponse
import markdown
from django.shortcuts import render, get_object_or_404
from . models import Post, Category
def index(request):
Post_list = Post.objects... | [
"15893623902Lee"
] | 15893623902Lee |
2306a63f3458c869472722d03d5f2cd7e91436b8 | dc3df9ba09049caf3c7ecb6879cdb274cdc99bc2 | /SVM/hw5.py | 62c72cc02a3b6404deff6ed7e6751e57ced1e3a4 | [] | no_license | OriZilka/machine_learning | 4b5b1a8e8bc2c71af7fc6173af49a07662ad39e2 | 5dd5305c660c595a7ff476fac8b2ef4bad7c9a9e | refs/heads/master | 2022-12-04T18:46:49.693845 | 2020-08-20T11:15:58 | 2020-08-20T11:15:58 | 288,985,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,650 | py | from numpy import count_nonzero, logical_and, logical_or, concatenate, mean, array_split, poly1d, polyfit, array
from numpy.random import permutation
import pandas as pd
from sklearn.svm import SVC
import matplotlib.pyplot as plt
SVM_DEFAULT_DEGREE = 3
SVM_DEFAULT_GAMMA = 'auto'
SVM_DEFAULT_C = 1.0
ALPHA = 1.5
def ... | [
"zilka@gmail.com"
] | zilka@gmail.com |
3c8918c20a8826ccc1a9ea38ea050047dfc5c55a | a97bb37bab680a4b96bb8adddc6aa6f07cf25f55 | /main.py | bd9843c5cfc631ddc0a59fd8068d3ff0f00c56aa | [] | no_license | Svtter/fastapi_tutorial | 0cf72e57e56e5552e3c6a7ade39603e546dfcea3 | a0fa793654d88e5e78e852c7b02d0ef857951723 | refs/heads/master | 2020-04-30T20:50:06.375820 | 2019-03-22T05:51:22 | 2019-03-22T05:51:22 | 177,079,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"Hello": "World"}
@app.get("/items/{item_id}")
def read_item(item_id: int, q: str = None):
return {"item_id": item_id, "q": q}
| [
"svtter@qq.com"
] | svtter@qq.com |
6e1d48d8959e9b2f56624bdd99cabc6a16df0d47 | 74c6b25b7ad41ba26d7995cf4bfcd4679987f27c | /accounts/models.py | f3107bf24ecffc3316207ebd0098c095e5c02a05 | [] | no_license | ifteheralom/mytutor-web | 7a791dab7dc397131132753145c8db17c43d3597 | 94c922f57f25d34d5bcaf3288c999ee0fbc3b08f | refs/heads/master | 2020-04-17T11:53:06.854092 | 2019-01-19T14:58:52 | 2019-01-19T14:58:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,964 | py | from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
class ClassRequest(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
req_to = models.CharField(max_length=100, default='')
msg = models.CharField(max_length... | [
"ifteher.alom@gmail.com"
] | ifteher.alom@gmail.com |
1c9154c8db4a80397eb95294a8a71b01270574b7 | 44651d363ab806b4557d605ea513fe72808db852 | /getting_started/__init__.py | 4783d23fcae24fa9d4031e6701b46c11dfbffc54 | [] | no_license | copev313/Flask-App-Getting-Started | 6f368c8ed216f1c39659bb6a917d02986e27a44d | c9123bf255e4675c6b1c661f2655d23bffeda04f | refs/heads/main | 2023-05-24T08:06:00.899938 | 2021-06-18T13:23:31 | 2021-06-18T13:23:31 | 378,145,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from flask import Flask
app = Flask(__name__)
# Add any other Flask app configurations here . . .
from getting_started import views | [
"copev313@gmail.com"
] | copev313@gmail.com |
c6d8326c3b641681ecf4f3bdbcfbf09033f4aeec | 386b863933b4b5a1729012ba1247b90c237ba319 | /module/controller/con.py | b9fc66177ee381a1ac1dd3f196a4c0b9130a8237 | [] | no_license | derechoanthony/k-Api | 5d153058adced5214dd077e4378948b905938859 | 7cc5fcf130050df102e7532002e1aa518ce263c5 | refs/heads/master | 2021-09-14T09:11:24.678957 | 2018-05-11T01:22:33 | 2018-05-11T01:22:33 | 125,138,230 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,129 | py | from sqlalchemy import Table, Column, Integer, String, Float, MetaData, ForeignKey,func, select, outerjoin, case, literal_column
from sqlalchemy.sql import select
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from config import SESSION_OPTS
import sqlalchemy
import json
import datetime
#... | [
"derechoanthony@gmail.com"
] | derechoanthony@gmail.com |
319225d08a9c015e35a2eeec8e3d282d841b3718 | e2ee6be0e3e1262541224b64e9f037c3d0dbfa2d | /blog/api/serializers.py | 9c6aa7c84e2c5d629c1e85cd377a6977baafd56f | [] | no_license | kevinchrist20/blog-api | 9df13d267770f43aba08cbb5267d06215b07a994 | ea24fa9fd371437a6cff432002b80a347eda0a82 | refs/heads/main | 2023-01-11T01:56:09.585363 | 2020-11-08T14:36:53 | 2020-11-08T14:36:53 | 308,846,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from rest_framework import serializers
from .models import Category, Blog
class CategorySerializer(serializers.ModelSerializer):
class Meta:
model = Category
fields = ["id", "name", "description"]
class PostSerializer(serializers.ModelSerializer):
class Meta:
model = Blog
fie... | [
"kevinamevor@outlook.com"
] | kevinamevor@outlook.com |
ed0aea728182b38005db1db7ce0e119926bcc869 | 7bbf41a5cc3b39a7b5abdd6c4a58e3e42fd2d59b | /MainFrame/Categories/AddCategory.py | 80d9878071f97e1a7e53e18d2d23a59a6247cf8f | [] | no_license | retimarcell/multilanguage_dictionary | eb41146233d1a930fafe5c30be3e8ef665363f88 | a00dd00fb5818c8006057bc857cfe5f78d549e9c | refs/heads/master | 2022-02-10T19:09:28.503283 | 2019-05-11T13:19:10 | 2019-05-11T13:19:10 | 174,150,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | from tkinter import *
from tkinter.messagebox import *
from User import Category
class AddCategory:
def __init__(self, logObj, user):
self.logObj = logObj
self.logObj.simpleLog("Creating category addition window")
self.user = user
self.root = Tk()
self.root.title("Új kate... | [
"reti.marcell@gmail.com"
] | reti.marcell@gmail.com |
de36e37006d7df48083f195927a423456d030e09 | 89e1e77f382cb48cb75a51d568d149eab1730afe | /app/core/migrations/0013_auto_20201112_1230.py | bd737a21d763536fa83ccef1659b6e9c1867b216 | [] | no_license | payamy/MusicAppAPI | 61f230c6aa2709b4536b0001be6b2d8755ae2e73 | a0393ace41faa895fb53887058b4e7e836352f48 | refs/heads/main | 2023-02-27T16:39:39.163929 | 2021-02-04T20:37:25 | 2021-02-04T20:37:25 | 301,766,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | # Generated by Django 3.1.2 on 2020-11-12 12:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0012_classroom_comment_tutorial'),
]
operations = [
migrations.AddField(
model_name='comment',
name='text',
... | [
"payamyarandi98@gmail.com"
] | payamyarandi98@gmail.com |
e2b7f063d35eaea6d7cbe958862f195bbb54a1e5 | b77dff442c658b4e99c69eb75bc3924adbbad231 | /api/views.py | a8af86d69ab6ef17ff4ebb7393d2ad2d5e9b92ac | [] | no_license | JorgeQuetgo/scrap_api | 5a4378d8b7000e463d2bf285162bbdad7a9870c3 | acae2ea6f6674849778b1336d3db4906c63b2987 | refs/heads/master | 2023-02-14T03:06:11.318449 | 2021-01-08T05:33:24 | 2021-01-08T05:33:24 | 327,804,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | from rest_framework.response import Response
from rest_framework import viewsets, status
from api.models import Product
from api.serializers import ProductSerializer, PageScrapSerializer
class ProductViewSet(viewsets.ModelViewSet):
serializer_class = ProductSerializer
queryset = Product.objects.all()
class... | [
"jorge.giron@atentousa.com"
] | jorge.giron@atentousa.com |
d5178f38d43ebcfc3521fb234262ac8566c86c85 | a4346b13110d82274ba37040d125c8e82a4d2b07 | /trends.py | 8427337e917df3fa98d3e40266aea4c0fa56e795 | [
"MIT"
] | permissive | SushruthaSVPKH22/DADV1 | a550df9a5155a0d6869416dd58554f1da30c8462 | 11339b814e88477c1583aaed38548bfced885b6d | refs/heads/master | 2020-05-23T22:22:42.489074 | 2019-05-16T07:07:29 | 2019-05-16T07:07:29 | 186,972,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | import requests
from bs4 import BeautifulSoup
import csv
def crawl(rawdata):
page=BeautifulSoup(rawdata.content,'html.parser');
data_tbody=page.find('tbody',id="ElectionResult")
for div in data_tbody.find_all("div", {'class':'tooltip'}):
div.decompose()
for span in data_tbody.find_all("span"):
... | [
"50095574+SushruthaSVPKH22@users.noreply.github.com"
] | 50095574+SushruthaSVPKH22@users.noreply.github.com |
80391c27b0f9cf82d7dc523406b0c9677f376808 | 5aac30da97184a9864590839a5f8be3bc5df1ced | /https_to_amqps.py | d862fb3b2c7f4cce24ca2dd72068d1b0ad7e2f59 | [] | no_license | mikhaelsantos/aws-lambda-https-to-amqps | 384d2f034e24e543fe89f206e8a4156684cb7118 | ce8f4abd301f0f0e1aab83a9b58b849863b2e291 | refs/heads/master | 2021-08-24T15:36:18.596274 | 2017-12-10T08:12:12 | 2017-12-10T08:12:12 | 113,733,485 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,719 | py | """
Lambda function to connect https to amqps
"""
import json
import os
import boto3
import pika
print('Loading function')
CREDENTIALS = None
class MissingEnvVarsException(Exception):
pass
def get_credentials(bucket: str, path: str, encryption_context: str) -> dict:
"""
Gets RabbitMq credentials from... | [
"mikhael.santos@f-secure.com"
] | mikhael.santos@f-secure.com |
dae634b72dac458cfa57d1bcb809f4d6d4bedf11 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2790/60730/256936.py | ed7cd9f25137e77fa2fe3809ef5f880ec7402267 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | num_m, num_n = map(int, input().split())
m = list(map(int, input().split()))
n = list(map(int, input().split()))
m.sort(reverse=False)
tmp = 0
for i in range(num_n):
for j in range(num_m):
if (m[j] <= n[i]):
tmp = tmp + 1
if (j == 4):
print(str(tmp))
t... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5e352046fdbd446e5a251b83c8baad682d09962b | b6c501374f95c21ed82a58519c34008c4f30f9d8 | /Python/flask_fundamentals/advanced_routing/server.py | 7a451938289b23818adfd2ce814eea412840906e | [] | no_license | satofromjapan/DojoAssignments | 839c67b02391d69637d5137f9d97526f496a5c15 | ba5589b00c64c04e84b2d1d662968e20be6fd92a | refs/heads/master | 2021-01-18T04:09:24.205148 | 2017-04-10T15:37:25 | 2017-04-10T15:37:25 | 85,758,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from flask import Flask, render_template, request, redirect
app = Flask(__name__)
@app.route('/users/<username>')
def show_user_profile(username):
print username
return render_template("user.html")
app.run(debug=True)
| [
"masato.takaha@gmail.com"
] | masato.takaha@gmail.com |
61786e2faf6ca3617cc2547869f76cce86441d76 | b76c6813f2ce2fd24a33175a0249cd9544583fe7 | /acerca_de/url_acerca_de.py | 50417f63558bf4aa93ed35902ad121d612af8286 | [] | no_license | adrianglez2203/nuevo_as | 0074e6d8155a471bb7d81bc3456914acdc7fba98 | df375410e9d6922ebb931645ff8f1c7b3f5cb93b | refs/heads/master | 2022-08-01T23:43:51.328124 | 2020-06-06T15:35:23 | 2020-06-06T15:35:23 | 270,111,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from django.urls import path
from acerca_de import views
urlpatterns = [
path('acerca',views.vista , name='acerca_de'),
] | [
"adrianglez2203@gmail.com"
] | adrianglez2203@gmail.com |
cdf70cd90909ae58c57b599d2204957e323a444b | 6208a116cf79629838538b622e27c85f2305363a | /krakenapp/migrations/0004_player_capital.py | 280187e94b466808f42b6a5708cf7a39656fa4d1 | [] | no_license | debnet/riskraken | cdb77b979dac8c30565ed1f508f6cbbce57a4f01 | 57a057c912b1d1411e41cb70f041636f2d35c03d | refs/heads/master | 2023-05-11T22:45:25.613783 | 2021-06-04T00:09:02 | 2021-06-04T00:09:02 | 358,425,108 | 0 | 1 | null | 2021-05-20T18:49:23 | 2021-04-16T00:05:22 | CSS | UTF-8 | Python | false | false | 752 | py | # Generated by Django 3.2 on 2021-04-25 23:31
from django.db import migrations, models
import django.db.models.deletion
import krakenapp.models
class Migration(migrations.Migration):
dependencies = [
('krakenapp', '0003_claim_instead_of_owner'),
]
operations = [
migrations.AddField(
... | [
"marc@debnet.fr"
] | marc@debnet.fr |
ba8c22cf3cea258a5f767182a5ff8dbf68b2b507 | 16b26e6a9e6d6a7db2a20a6327b3d042e2245747 | /bigramas/bigramas.py | dbef177920a9911443ced6ff74a1eed9c8710e79 | [
"Unlicense"
] | permissive | jabaier/iic1103.20152.s4 | 3826b8de35470acc0387c8199b6ecce50d4222bd | 63ddd5f9b73caff218b6744e7392e7a66afba570 | refs/heads/master | 2020-05-27T16:59:32.232746 | 2015-11-20T14:34:21 | 2015-11-20T14:34:21 | 41,114,018 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | import sys
import random
class Bigramas:
def __init__(self):
self.bigramas=[] # lista de bigramas
self.nbigramas=0 # numero de bigramas
def buscar(self,palabra):
for par in self.bigramas:
if par[0]==palabra:
return par[1]
# la palabra no está
... | [
"jabaier@gmail.com"
] | jabaier@gmail.com |
414447816b0198c4653782e0597ca4187c4cf8f3 | ab6fc61c008dcc139eb7d790267322dbb6b63d1c | /acme/settings.py | fadc918c4ac7fe135c4366dfa413fd4f988c2f5e | [] | no_license | philiplewis71239/website_v3 | 8e718ea8dfff7d73624162a8cc9cf1468946deaf | 80e8c55c83860514206de5cf45986ab3aef27be4 | refs/heads/master | 2020-05-20T04:09:33.064671 | 2015-01-06T18:31:32 | 2015-01-06T18:31:32 | 28,876,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,185 | py |
import os
class ConfigMeta(type):
def __getitem__(self, key):
# Implementing __getitem__() allows us to use dict key indexing
# syntax on the Config objects
return self.__dict__[key]
class DevConfig(object):
__metaclass__ = ConfigMeta
SECRET_KEY = '####SOME_SECRET_KEY_HERE###... | [
"philip.lewis71239@gmail.com"
] | philip.lewis71239@gmail.com |
41d2f58a5837570bccd54bad521cf8a559e21344 | 489e39c054428d74fa8372c923d64f4175736919 | /satgui/login/urls.py | 7e4cc7a093f87b3bf1933e34da9fd56ea9c204d2 | [] | no_license | juanhernandez17/SafetyAnalysisToolGUI | a94d961a2da23fa5666e73875180cb24a5400282 | 88986da9d2fbc784f66084e57145d7c3135488ed | refs/heads/master | 2023-07-27T05:15:59.489911 | 2021-09-15T01:20:53 | 2021-09-15T01:20:53 | 406,569,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from django.urls import path
from . import views
urlpatterns = [
path('user/', views.User.as_view(), name='user'),
path('register/', views.Register.as_view(), name='register'),
path('login/', views.Login.as_view(), name='login'),
path('logout/', views.Logout.as_view(), name='logout'),
path('account/'... | [
"juanhernandez17@my.unt.edu"
] | juanhernandez17@my.unt.edu |
4344b639645fd9baceaf24a629543fa2d88b3eca | 1410b8d0eb2338738a1539f716f18f99fd92fc9e | /1.py | b0550b3d6c836bfb50a0acf51d068f2acf071f4e | [] | no_license | AlenaGB/hw3 | 7e1d1d9adecf03f634bb541188b6d61ab5f15ad4 | cfafac70e1de0d908dbed2ff28ecb8d0ecdfdbbe | refs/heads/master | 2023-02-08T01:06:29.355567 | 2021-01-03T09:47:10 | 2021-01-03T09:47:10 | 324,968,743 | 0 | 0 | null | 2021-01-03T10:02:55 | 2020-12-28T09:31:16 | Python | UTF-8 | Python | false | false | 364 | py |
def convert (rub, rate):
try:
return rub / rate
except ZeroDivisionError:
print('Incorrect input data')
exit()
print('Convert RUB / USD '.upper())
print('You have {:.3} euros in your account '.format(convert(float(input('How many rubles do you want to convert to euros ')),float(input(... | [
"olyonapopova@gmail.com"
] | olyonapopova@gmail.com |
4db41f4d1a1037fd1b2f45dd65bc9db80863548b | 12d4932f5ae96115e23b7b1599cab922bf4be111 | /schedule/models.py | 83eda16b353d5d6aa6fd5eb35548e654dd6426c0 | [] | no_license | kabanfaly/planner | e90ce3b0c46346e12169941574ecc1e0cc32e1af | d276dce80a77c0cfdf32936493cede6a3ef073bf | refs/heads/master | 2020-12-24T11:16:41.995829 | 2016-11-26T07:02:19 | 2016-11-26T07:02:22 | 73,046,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | from django.db import models
from employee.models import Employee
from workplace.models import Workplace
class Schedule(models.Model):
start_time = models.DateTimeField(verbose_name="Work start time")
end_time = models.DateTimeField(verbose_name="Work end time")
break_time = models.TimeField(null=True)
... | [
"nfalykaba@gmail.com"
] | nfalykaba@gmail.com |
11f4ba38d434e1643f04aaf34ec8646b27782520 | 7e0fdfb76cae8145a4bbac0cac0e4cac6b8e3788 | /dingding_shouqi/dingding_shouqi.py | daaee3a0bc4aec488160ca6adf2ad171e17d3204 | [] | no_license | w193241125/dingdingdaka | 603b06323b5c5e3341e0077614e044b2c80c038b | 3d2088d2e876fc4e80fc06bea3eaa5b8833392ed | refs/heads/master | 2020-05-17T21:45:44.276659 | 2019-05-13T10:16:29 | 2019-05-13T10:16:29 | 183,981,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,007 | py | #!/usr/local/bin python
# -*- coding: utf-8 -*-
# @Time : 2019/3/5 10:38
# @Author : Larwas
# @Link : 164722305@qq.com
# @Site : www.larwas.com
# @File : dingding.py
# @Software: PyCharm
import os
import re
import time
import urllib
import json
import requests
# nameplt = re.compile("package: name='(.*?)'... | [
"test@test.com"
] | test@test.com |
68f57b90cb2d6b9dd5cb519f88279a89150b0f99 | 070eabad59ba058bbdf4a8d76be03c692143cd32 | /exp/exp12.py | 554b19772087d50833d69b718d2632c0dc1dfe03 | [] | no_license | osuossu8/Kaggle_Bengali2019 | 1ebaabd36a0225a42e77d07ea2da04a7860a01d4 | a32397e73b2861cb677988c7d39abb719e229d8c | refs/heads/master | 2022-04-20T16:19:36.961665 | 2020-03-14T13:02:38 | 2020-03-14T13:02:38 | 239,647,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,950 | py | import numpy as np
import pandas as pd
import albumentations
import argparse
import collections
import cv2
import datetime
import gc
import glob
import logging
import math
import operator
import os
import pickle
import pkg_resources
import random
import re
import scipy.stats as stats
import seaborn as sns
import shuti... | [
"osuosuossu18@gmail.com"
] | osuosuossu18@gmail.com |
16d7d093326b863bf363be47886a033059a9f1f4 | 96f181736c9975adfabd45cc776cab7a37d2e7a1 | /transformer/SubLayers.py | 636b67878e40d8e50b27f1d0f49b7d9bf2797668 | [
"MIT"
] | permissive | fangxiaoquan/transformer-pytorch | 6b43fb75635bb512c38c6f2ac8ec306b6e6ba5d9 | c9c5c81151c37ad7a088ea96aa5248fd4f4ad2d1 | refs/heads/master | 2020-05-17T00:36:59.073875 | 2019-03-17T14:42:02 | 2019-03-17T14:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,844 | py | ''' Define the sublayers in encoder/decoder layer '''
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
from transformer.Modules import ScaledDotProductAttention
class MultiHeadAttention(nn.Module):
''' Multi-Head Attention module '''
def __init__(self, n_head, d_model, d_k, d_v, dropo... | [
"1049136551@qq.com"
] | 1049136551@qq.com |
214e9acf4f63476ff161a03f36b9d65e5158d29c | e8c5d8a473a71f88616b692dcdfd2d604485f580 | /test_corrector.py | 1db70ec4aff76eef61b92ad17796f78834360551 | [
"Apache-2.0"
] | permissive | modernYan/corrector | a6907bf1dc0e5e91048704365b4ade7327939592 | 75c86075ea51a53ebe6d649d729e690e3b414f7a | refs/heads/master | 2021-04-03T01:51:33.407724 | 2018-03-07T12:49:45 | 2018-03-07T12:49:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | # -*- coding: utf-8 -*-
# Author: XuMing <xuming624@qq.com>
# Brief:
import unittest
from pycorrector.cn_spell import correct
class BasicTestSuite(unittest.TestCase):
"""Basic test cases."""
@staticmethod
def test_text1():
error_sentence_1 = '机七学习是人工智能领遇最能体现智能的一个分知'
correct_sent = corr... | [
"507153809@qq.com"
] | 507153809@qq.com |
249e8bc1a5af99696827d3c63022ba2318489a67 | cff7cf6a76d9c3009ba4092c65656cefa4261d91 | /pruning.py | c59123519f0ecae5a8e792264f02cdb5308c718e | [] | no_license | anyk8/ailab | d86c5947d9a2f71a4fdab44e38c41a28013b6594 | cb436cb3021317a2303b3784c1856098730a3d26 | refs/heads/main | 2023-02-07T00:58:02.064506 | 2020-12-23T20:10:37 | 2020-12-23T20:10:37 | 323,974,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | MAX, MIN = 1000, -1000
# Returns optimal value for current player
#(Initially called for root and maximizer)
def minimax(depth, nodeIndex, maximizingPlayer,
values, alpha, beta):
# Terminating condition. i.e
# leaf node is reached
if depth == 3:
return values[nodeIn... | [
"noreply@github.com"
] | anyk8.noreply@github.com |
e0409dc7eb85b5766250889ef408b577012505a7 | 8338bde799fab50fa28b3c9e85035fce12f1e152 | /src/crystal_analysis/fluctuations.py | a31246b51e26e6bab8b8c6c145aa242d5bfe1576 | [
"MIT"
] | permissive | malramsay64/Crystal_Melting | c5941ad261ef71f1357d6064302344b093b22b53 | e8305928b06b536d7293cb751963d058d55627aa | refs/heads/master | 2021-03-24T10:24:23.291821 | 2020-08-07T07:19:09 | 2020-08-07T07:19:09 | 119,946,491 | 0 | 0 | MIT | 2020-02-12T07:35:47 | 2018-02-02T07:13:03 | Python | UTF-8 | Python | false | false | 8,047 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2019 Malcolm Ramsay <malramsay64@gmail.com>
#
# Distributed under terms of the MIT license.
"""A module to measure the structural fluctuations of each state.
The concept of this module is to understand how much particles within each state... | [
"malramsay64@gmail.com"
] | malramsay64@gmail.com |
4c2de55d37b6463dc9cb09e1b3fab791b94fb59f | 1842d2e7989b9fb1bdd6edff2b2ce187ca9f27ad | /BIOMD0000000484/model.py | 9d53fe8ba1862ad4b82c03c37bafa36698e3a221 | [
"CC0-1.0"
] | permissive | biomodels/BIOMD0000000484 | cc08199b3d324bf10425829755d70e67d52b155d | 293ac221c1615e7446f55960cff130f784243220 | refs/heads/master | 2016-09-06T17:32:40.282597 | 2014-10-16T05:17:52 | 2014-10-16T05:17:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import os
path = os.path.dirname(os.path.realpath(__file__))
sbmlFilePath = os.path.join(path, 'BIOMD0000000484.xml')
with open(sbmlFilePath,'r') as f:
sbmlString = f.read()
def module_exists(module_name):
try:
__import__(module_name)
except ImportError:
return False
else:
ret... | [
"stanleygu@gmail.com"
] | stanleygu@gmail.com |
743b71909c584becf61641187deafdd92d6211f5 | 9a791a7d91fd6706b1c1d99a35e88d0d6ec50305 | /inventory/wsgi.py | 89d49fb96df012997a592d7cc95ab057e4b8c643 | [] | no_license | farhapartex/inventory-system-api | f534ad4676f2f7d674e46ead9a2e272a028d7b9e | 1ba1c17ee6e58a59a5937d0de14a352fd76b89fe | refs/heads/master | 2023-07-17T12:04:40.953901 | 2021-09-01T04:38:02 | 2021-09-01T04:38:02 | 395,754,219 | 2 | 1 | null | 2021-08-31T21:07:01 | 2021-08-13T18:26:12 | Python | UTF-8 | Python | false | false | 397 | py | """
WSGI config for inventory project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"nazmul@sixads.net"
] | nazmul@sixads.net |
0dbdf5bc26ef8d897eb91a748996cad40f21c8e3 | 869d300c764911d468f5b1e5a98e5d07a27535ab | /python-selenium/baiscs/file_operation.py | 25acf23e4f3b95c1ee7ef7962a1c90ddd7e3ef56 | [] | no_license | thananauto/python-test-frameworks | df5962996cd9c4cded9355fef6cb2a099c69e3b1 | abaf9d11d8c65f2cd9f916b241898ad11e26bf43 | refs/heads/master | 2022-12-15T18:14:57.745930 | 2019-12-16T13:51:04 | 2019-12-16T13:51:04 | 228,375,228 | 0 | 0 | null | 2022-09-16T18:15:48 | 2019-12-16T11:47:11 | Python | UTF-8 | Python | false | false | 1,198 | py | import os.path as path
class file_operation(object):
def read_file(self):
# file name in same directory
file_name = 'HelloWorld.py'
if not path.isfile(file_name):
print("file does not exist")
else:
# read the lines in files
with open(file_name) ... | [
"r.thananjayan@superp.nl"
] | r.thananjayan@superp.nl |
1dc318f1cbd37469290cdc9346b413cfb2444c2a | e3d758e32b5c3398826e77a07e00645b31c1cbb5 | /app/tests/test_algorithm.py | 67bc3937e3bd78648b62ed0c27ce1683384ce160 | [] | no_license | vittorfp/production-ml-model | a869d1856249f5954519aa34271015127787d377 | 1e71ee8e55f026a7626409a49b264bee3db535d0 | refs/heads/master | 2022-04-14T23:09:28.170591 | 2020-04-12T03:06:52 | 2020-04-12T03:06:52 | 253,011,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | import numpy as np
import pandas as pd
from .common import *
test_cases = pd.read_csv('./app/tests/test_resources/test_samples_1.0.csv')
def test_municipal_boundary_1(client):
""" Point out of municipal boundary """
response = client.get('/predict', query_string=BaseInputs.valid_outside)
assert response.... | [
"vittorfpereira@gmail.com"
] | vittorfpereira@gmail.com |
563a9e4d56769ebc277637da90f87d84e0eb46b2 | 16dcbf88ae9514109151fe5ff447b2b653ddf48b | /2016/035-TheasGame/thea.py | 60cf62e1e123e8f303f839ac3e8286c58ec426a6 | [] | no_license | ChristerNilsson/Lab | efa55ef5e79dff84b232dfcf94473eacdb263175 | b1f730f45ec6e901bd14c1e4196aa5e0f591ecd2 | refs/heads/master | 2023-07-06T04:35:09.458936 | 2023-06-24T21:40:54 | 2023-06-24T21:40:54 | 48,474,249 | 8 | 8 | null | 2022-12-10T07:03:31 | 2015-12-23T06:51:11 | JavaScript | UTF-8 | Python | false | false | 690 | py | import pygame
pygame.init()
windowSurface = pygame.display.set_mode((1000, 750), pygame.DOUBLEBUF)
done = False
while not done:
# --- Main event loop
for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True
s = pygame.Surface((1000,750), pygame.SRCALPHA) # per-p... | [
"janchrister.nilsson@gmail.com"
] | janchrister.nilsson@gmail.com |
9f65aa514c86af51f392a4fcb1202ccb289946a0 | 5c04b334c27dbef10cc7aef7a774d639bfcf50da | /Test_abb_demo.py | 8b9e0ae0ee331da6913b9a6eda02f13973a7bf94 | [
"MIT"
] | permissive | qingqingcaoyuanlin/Python-UIAutomation-for-Windows | 0043df5defcd8f9797c65e58bce0762cb6e434b7 | 1f5191cdf554646c659699758fe14c904381eb66 | refs/heads/master | 2021-01-13T03:36:23.416991 | 2017-01-07T04:54:27 | 2017-01-07T04:54:27 | 77,318,593 | 0 | 0 | null | 2016-12-25T09:07:29 | 2016-12-25T09:07:29 | null | UTF-8 | Python | false | false | 2,087 | py | # coding=utf-8
import os
import sys
import subprocess
import uiautomation
import time
#import wmi
from win32com.client import GetObject
TestAppName = "ABB HB Management Center.exe"
def Is64Winows():
return 'PROGRAMFILES(X86)' in os.environ
def AppPath():
if Is64Winows():
print 64
return "C:\Program Files (x86)\A... | [
"1451368913@qq.com"
] | 1451368913@qq.com |
96e362619f5e1ca63b616907a81a83d7ad5268b9 | 7a17f9e6706b6e3f6d55c8e30f0dcec97f495541 | /src/hyperka/hyperbolic/manifold.py | e5bfa0abf060d8a9093cb836b10fa666c81e5cfe | [
"MIT"
] | permissive | HELL-TO-HEAVEN/HyperKA | 8d097c58e0188961de6e4ea74f214e40d9408a04 | cadaf824a739b55211997e73d9948ddbfbe7ce83 | refs/heads/main | 2023-03-30T04:20:31.477323 | 2021-03-25T07:56:55 | 2021-03-25T07:56:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from abc import abstractmethod
from abc import ABC
class Manifold(ABC):
def __init__(self, *args, **kwargs):
pass
@property
def name(self):
raise NotImplementedError
@staticmethod
def dim(dim):
return dim
def normalize(self, u):
return u
@abstractmethod
... | [
"sunzequn@live.cn"
] | sunzequn@live.cn |
c7cf64d046d44cec3e870758d1ac703c96d85b08 | 6a9acefd938ea7648d3f7662a54632f3e35f03ea | /train_sagemaker.py | a14177c5662a1d116c37c1e2940f3fddbb866a8a | [
"MIT"
] | permissive | ankushpanwar19/Multi-Task-Learning | 2a7c8c6c71add695e3ad1f7da91c2de154809375 | 1808ba1821ae3c4d414e31d583d31b15782daa38 | refs/heads/master | 2023-08-25T10:35:46.945803 | 2021-11-04T11:53:35 | 2021-11-04T11:53:35 | 424,565,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | #!/usr/bin/env python
class Unbuffered(object):
def __init__(self, stream):
self.stream = stream
def write(self, data):
self.stream.write(data)
self.stream.flush()
def writelines(self, datas):
self.stream.writelines(datas)
self.stream.flush()
def __getattr__(... | [
"ankushpanwar19@gmail.com"
] | ankushpanwar19@gmail.com |
97143f84e721ba0460659c1d77f50b0db0636348 | 877b524e74239cf9b12479d41bb813f4658f48f3 | /PyBoss/main.py | 130082f552663c5f32668864f0fa40a6bb99431d | [] | no_license | mkung8889/python-challenge | 37b3a12c2ceae1c27e140eca6c3976d7b3477fe2 | 257d23c33e3c6bbc1b1a1fa77b0b5ec5657daf31 | refs/heads/master | 2020-04-04T20:21:15.373905 | 2019-03-20T04:51:49 | 2019-03-20T04:51:49 | 156,243,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,787 | py | import os
import csv
csvpath = os.path.join("employee_data.csv")
with open(csvpath, newline = '') as csvfile:
csvreader = csv.reader(csvfile, delimiter = ",")
rows = []
empid=[]
name=[]
dob=[]
ssn=[]
state=[]
newheader=['Emp ID','First Name','Last Name','DOB','SSN','State']
namesp... | [
"m8464k@gmail.com"
] | m8464k@gmail.com |
4f909656863aee7b5f4d20c715e2587664bed01e | ae5acf841aa3cd54e7f39d460d586b6a3ba24523 | /laptop/3Revesion/mojarProgram/prime_number-4.py | 7768c6a78970412b0af68cef5739cf936ff15f8d | [] | no_license | JayedHoshen/python-practic | dee9503811899790d323d8aa4ca8b89621a8eec8 | 2f930346cadfb4389f95d1bc2a421fec7ee48fcf | refs/heads/master | 2021-04-20T10:24:30.975522 | 2020-03-24T10:21:00 | 2020-03-24T10:21:00 | 249,674,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | import math
def is_prime4(n):
if n < 2:
return False
if n==2:
return True
if n % 2 ==0:
return False
m = math.sqrt(n)
m = int(m)+1
for x in range(3,m,2):
if n % x ==0:
return False
return True
| [
"jayedkn64@gmail.com"
] | jayedkn64@gmail.com |
a004eb4e54de656cea5ce095940f98897f035dc3 | 1c583fea1f145df1fd1ad918cc5837636ac31fac | /longest_word/solution.py | c8d7f3537248dac3d5ce8e6923af81560d5658df | [] | no_license | rafaelcastanheira/python_challenges | be09bd380c5eef2d7592cbf22e96c555ce293efb | 1421a9690620044bb376e253f4603a338e9b9a70 | refs/heads/master | 2023-02-07T03:37:29.248987 | 2020-12-27T01:08:17 | 2020-12-27T01:08:17 | 324,663,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | import re
def LongestWord(sen):
clean_sen = re.sub('[^a-zA-Z ]+', '', sen)
words = clean_sen.split(" ")
biggest_word = ""
print clean_sen
for word in words:
if len(word) > len(biggest_word):
biggest_word = word
return biggest_word
print LongestWord("abc123 fjHB!D dj748... | [
"rafaelfrancisco@Rafaels-MBP.lan"
] | rafaelfrancisco@Rafaels-MBP.lan |
3f5d83c63578aa071d10dd553bc6853ce9f51a82 | 4a9e050b7728f61aacc10e5564359a5ab3616124 | /脑筋急转弯/292_Nim_Game.py | 32382e4167f8db29333bd4e69ab346ff9cd01882 | [
"MIT"
] | permissive | pdg0709/LeetCode_Python3_Solution | a3d779b12925f2f37396dee07dd9d2276222dab5 | 1ec4b73fcdec79382906d6ae20f82a273a76d984 | refs/heads/master | 2020-06-19T02:55:33.304005 | 2019-07-12T02:19:26 | 2019-07-12T02:19:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # -*- coding:utf-8 -*-
# &Author AnFany
# 292_Nim_Game Nim游戏
class Solution:
def canWinNim(self, n: int) -> bool:
# 最后剩下4块石头时,谁先拿谁输,因此:
# 只要我第一次拿完后,剩下的石头的块数可以被4整除,我就可以赢
# 因为以后的每一次我都可以拿去(4-对方刚才拿的块数)块石头
if n % 4 == 0:
return False
else:
... | [
"noreply@github.com"
] | pdg0709.noreply@github.com |
2ad7dd43cec66e4027d9bdb249e97819d849cc61 | 1a80df8069c1f2bf67b00818529d39c34c19bee4 | /blog/tests.py | f08962a092a8dd4e03949a023e3dc89105e91104 | [] | no_license | subiee/do_it_django_a_to_z | ea6569f34bff79290d807d60eb4a2e57b0d7cec0 | d0cae35387234ac44bce827a73a856a8f4409413 | refs/heads/main | 2023-04-14T19:12:55.017482 | 2021-05-06T07:46:51 | 2021-05-06T07:46:51 | 330,678,964 | 0 | 0 | null | 2021-02-17T13:25:21 | 2021-01-18T13:43:16 | JavaScript | UTF-8 | Python | false | false | 19,521 | py | from django.test import TestCase, Client
from bs4 import BeautifulSoup
from django.contrib.auth.models import User
from .models import Post, Category, Tag, Comment
class TestView(TestCase):
def setUp(self):
self.client = Client()
self.user_trump = User.objects.create_user(username='trump', passwor... | [
"asb2008@naver.com"
] | asb2008@naver.com |
4233d111f76ceabf87cbb1c1701d766aeaf5393b | 17e813f4f20a6ce2d82619be9fac517b5176a74b | /Trees/btToLinkedList.py | 84dacb4426c7a87aa171291005e233ea32317e16 | [] | no_license | AryanGanotra07/DSALGO | 0ee86bbca4b345d21f5d6eb60d96c7aff6f1fc93 | 8cbac991ceec43522a57c65d68f00b54ccb6ea3f | refs/heads/master | 2022-12-08T22:33:14.031636 | 2020-09-13T14:05:41 | 2020-09-13T14:05:41 | 283,800,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
import sys
sys.setrecursionlimit(15000000)
def solve(a, b):
if a is None:
return
b.append(a.val)
solve(a.left, b)
solve(a.right, b)
... | [
"aryanganotra7@gmail.com"
] | aryanganotra7@gmail.com |
d2d035ab631e4aacef58458847bb44fb566439df | 7b9c326abb4ad6656e684ce0bd94df3f1433aeaf | /blog/urls.py | d6097cc9b810cc366aabb1845d64a143f2d3c06b | [] | no_license | DavidSunley91031341/Django-Project | 3ab815b36c0aec9a345fb60873c877beb2568e63 | 506580331b0cf113485bf0e53db37a1d36216efd | refs/heads/master | 2020-06-13T16:03:04.166582 | 2019-07-02T08:34:05 | 2019-07-02T08:34:05 | 194,703,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from django.urls import path
from .views import (
PostListView,
PostDetailView,
PostCreateView,
PostUpdateView,
PostDeleteView,
UserPostListView
)
from . import views
urlpatterns = [
path('', views.home, name='blog-home'),
path('post/<int:pk>/', PostDetailView.as_view(), name='post-deta... | [
"noreply@github.com"
] | DavidSunley91031341.noreply@github.com |
9bba1997d99d77cb0ada3b6c36fe8ba255ca1ebf | c74b24d93f3c13bb91ead1416b408adedd3fb34b | /evaluate.py | 8585902ce1d1e675a3a4babdc75f0165e9e3f732 | [] | no_license | Muhanned/COVID19 | 61249694e49603cce990c5f3980800eff5000658 | b73952eb081c93d2975394a429d39675b42a7735 | refs/heads/master | 2022-11-06T05:50:31.953031 | 2020-07-04T06:00:36 | 2020-07-04T06:00:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,516 | py | import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
import json
import math
from vis.visualization import visualize_cam, visualize_saliency, overlay
from vis.utils.utils import load_img, normalize, find_layer_idx
from keras.models import load_model, Model
from sklearn.metrics import auc, precision... | [
"robinwang08@gmail.com"
] | robinwang08@gmail.com |
cba39aeeb90b4394b5e1603acec6f8d9f3631202 | 653e6ef1b55cd83dabd7576e8ecfe5cd4b53c223 | /drawing.py | 2f76af7acf02a149c535218c35b1195bcd7047d2 | [] | no_license | shkodaaniram/DR | a07626eb1e755849bb4eb2b5357343606d02624f | 1edd125ec02886800fa2d117befed8d5e9e1f348 | refs/heads/master | 2021-01-19T09:18:17.551481 | 2017-08-02T19:31:22 | 2017-08-02T19:31:22 | 82,100,467 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | import cv2
import numpy as np
def minimized_od_field(img, x1, y1, x2, y2, img_name):
test_img = img
width = img.shape[1]
height = img.shape[0]
cv2.line(test_img, (0, y1), (width, y1), color=(0, 255, 0), thickness=5)
cv2.line(test_img, (0, y2), (width, y2), color=(0, 255, 0), thickness=5)
cv2.... | [
"shkodaaniram@rambler.ru"
] | shkodaaniram@rambler.ru |
1cf57d3750f0ccb24547e63287695969cfd1b8b1 | 844f02cd5f52eb40c8bceaeb0fe6b4100d26b326 | /cdt.py | bdd9b2e28a30f2034cc1b0adc63bbfff6db08739 | [] | no_license | cream/tools | e1a382d46b01886fd794e979e4b91284ccf52c6e | 62d8e9c848821f86fb7d1239b7960c69861e30e8 | refs/heads/master | 2021-01-15T13:18:28.212623 | 2013-07-13T08:26:54 | 2013-07-13T08:26:54 | 457,080 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import optparse
import tempfile
import tarfile
import os
import sys
import shutil
import dulwich.repo
import dulwich.client
IGNORED_FILES = [
'.git',
'.gitignore'
]
def git_clone(remote, local):
client, host_path = dulwich.client.get_transport_and_path(... | [
"stein@cream-project.org"
] | stein@cream-project.org |
4531c63aed8b999a043f6ed11748ea0b9b240dab | d51d85dba14c26e75e07ee91da966167ad6782bd | /firm/apps.py | a3a2277c7b4e0f8b7591e6a883f4bf9d8b3a4649 | [] | no_license | TimBerk/studhunter | 569b6bf6d4a9ab0acbd2145f827543b6a0341800 | 8c37aad24b448d64ffeb7e7d8fbed63d97d4e659 | refs/heads/master | 2023-01-19T16:35:31.076450 | 2020-11-24T06:27:40 | 2020-11-24T06:27:40 | 315,214,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from django.apps import AppConfig
class FirmConfig(AppConfig):
name = 'firm'
verbose_name = 'Раздел фирмы'
| [
"lysak.tatiana2501@ya.ru"
] | lysak.tatiana2501@ya.ru |
8aaa1f1cdbe2605fc4372c493b89d4c209ed2a00 | cec176ec2ff4b710a11ac72055bb7618c34d0709 | /chainerLayers/cukernels/hotFunctions.py | 09ab65676cc0f081e79da30b9bacc62a78e83ed8 | [] | no_license | bordingj/chainer_layers | 4dd8a3cf864f39559bbaa60225db26fd1c20fa60 | 719a985e611e1599fba944ecacf4242e055a9cfc | refs/heads/master | 2021-01-22T01:00:00.136618 | 2015-08-10T13:48:04 | 2015-08-10T13:48:04 | 40,472,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,188 | py | import numpy as np
from chainerLayers.cukernels.utils import Get_bdim_and_gdim1D, Get_bdim_and_gdim2D
from chainerLayers.cukernels.utils import Get_bdim_and_gdimRowVec, Get_bdim_and_gdimSmallNBigM
try:
from pycuda.compiler import SourceModule
from chainer import cuda
HotDot1_code = SourceModule("""
... | [
"bordingj@gmail.com"
] | bordingj@gmail.com |
0493e172f6cf409c1e77e364d48edf7b2e0f0c07 | 1ffa9ad2f07bc09c6eaf9fdb7ff8be21926078aa | /player.py | 7b50ce7c77260ba692673f62146927c944ee9871 | [] | no_license | Aganthor/FlappyClone | 9513c19e72c5053b53d21ad86ea2695417951a8b | a2eaa5791f7caa74bf81ca2c77bff051a6f261f3 | refs/heads/master | 2021-01-06T05:39:39.067597 | 2020-08-24T16:59:22 | 2020-08-24T16:59:22 | 241,225,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,404 | py | import pygame as pg
import os
import constants
class Player(pg.sprite.Sprite):
"""
Simple class to represent our little user controlled plane in the
game.
"""
MOVE_SPEED = 5
MAX_LIVES = 3
def __init__(self):
super(Player, self).__init__()
self.number_of_lives = self.MAX_LI... | [
"psyluche@gmail.com"
] | psyluche@gmail.com |
ee8f01d9ff709d7f69ae6cebd6b938844bdd5ee8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03290/s821428254.py | d06c09c404c991b8d3ef901f9f4a5f494259ea0e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from math import ceil
from itertools import product
D,G=map(int,input().split())
pc=[list(map(int,input().split())) for _ in range(D)]
def calc(P):
count = 0
g = G
for i in range(D):
p,c = pc[-1-i]
if P[-1-i]==1:
count += p
g -= (D-i)*100*p+c
if g<=0:
return count
for i in range(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
336adee3484b679923d2a78aa7da124b2b8993fb | 8a346fd556c74454c5c65181d213f851de57269a | /NeuralNetworkConti/Test.py | 80f9c660cf2bd7dee49b37493931838bb6b4a9c0 | [] | no_license | Suraj25P/fyp | 5d0755e9aeae909ed074bdff60591201162ca2ad | ce7befe622ec2d88adca0682037bd7cf7a2d711b | refs/heads/master | 2022-11-11T10:13:16.083807 | 2020-07-04T14:45:29 | 2020-07-04T14:45:29 | 277,127,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import tensorflow as tf
data =[689,22,35334575,2692,12967]
reg1 = tf.keras.models.load_model('G:\\distributedscheduling-master\\NeuralNetworkConti\\NNCONTIDICloud.model')
pred = reg1.predict([[data]])
print(pred.argmax())
| [
"noreply@github.com"
] | Suraj25P.noreply@github.com |
230cf400a6556c6d1b655d5c6cd8481c5ad98c61 | 2ade4dbe9db122c5e7ac98e614e71a268303c122 | /test.py | b9404713abe13138c29854d8abf0342e43145aea | [] | no_license | rossspencer715/Red-Car-Finder-KNN- | 128edba6f6696cd51f91a5de7667628fbf84f25a | 5523e9194c7fc61e455e4434d4a60d6fac7b3415 | refs/heads/master | 2020-09-26T11:39:19.003687 | 2019-12-06T04:43:07 | 2019-12-06T04:43:07 | 226,247,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 9 11:04:16 2018
@author: rossspencer
"""
'=============== Imports =============='
import numpy as np
from matplotlib import pyplot as plt
import train as trainingFunctions
'a *function* that will run your testing code on an input data set X. Your... | [
"rossspencer715@gmail.com"
] | rossspencer715@gmail.com |
22aaab1d01e9b4364424bcd7d47493c3d07f2aee | 4be3afb98e5469aa397aa03047baca5d78ee5a11 | /sellers/sellers_api/serializers.py | 58f39a331d846dc804027fb16e72aae13d52abf4 | [] | no_license | matheusreis0/sellers-api | 3fbe7a18df116e217cc66b24d44e6c9d1ed23fe4 | a11b7a8340c5aff1709aa7f739ab58b83ace37f4 | refs/heads/master | 2022-12-08T08:07:12.996587 | 2020-08-26T19:47:49 | 2020-08-26T19:47:49 | 290,553,538 | 0 | 0 | null | 2020-08-28T19:11:56 | 2020-08-26T16:50:37 | Python | UTF-8 | Python | false | false | 187 | py | from rest_framework import serializers
from .models import Seller
class SellerSerializer(serializers.ModelSerializer):
class Meta:
model = Seller
fields = '__all__'
| [
"matheus.reis@olist.com"
] | matheus.reis@olist.com |
9eb55066e90e41113b25a63cdb33625081d846da | 8157a8f899769458cc07d774ab59a837f21d4f25 | /playground/timer/read_local.py | ecfb183cd514e870f7f1aeb29efca4a68a446dff | [] | no_license | fu-ilab-swp18/bgp-group | 17be7d8f56fa7d7af922137abd673bf17fd0d116 | 17362761f5faed0bf230f4b67c6b75cf901480cc | refs/heads/master | 2020-03-14T12:04:14.639440 | 2018-07-25T22:19:12 | 2018-07-25T22:19:12 | 131,603,647 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import time
# Open the file with read only permit
f = open('/Users/mx/Projects/Uni/bgp-group/bgp_dump.txt')
# use readline() to read the first line
t = time.time()
line = f.readline()
while line:
line = f.readline()
f.close()
print('Elapsed Time:', time.time() - t )
| [
"max.stauss@gmail.com"
] | max.stauss@gmail.com |
df353c1470c57f958c87b2ae52a0e9ab0e2f6a95 | 959a20c87bdcf3a5fbd1d83546dad0d6af96a77f | /week_one/user_input.py | cb1e434e88d9e46fe88aa85f4f429f5fd52a7538 | [] | no_license | tylerLoh/onemonthpython | 2131a9befc8c1d8c08a69aa9f812cfcfa9687fa9 | 02e916c25fb3583bc4563d7ae19700e3d5009f8b | refs/heads/master | 2020-11-24T07:37:20.396219 | 2019-12-22T18:30:32 | 2019-12-22T18:30:32 | 228,032,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | """To capture user input from propmt terminal
built-int input() mtehod
"""
name = input("What's your name? ")
age = float(input("How old are you? "))
age_in_dog_years = age * 7
age_in_dog_years = int(age_in_dog_years) \
if age_in_dog_years % 1 == 0 \
else age_in_dog_years
print... | [
"tyleryin811@gmail.com"
] | tyleryin811@gmail.com |
bcf4f86043750b69eed83dad9603a1d113b66fb7 | a176f3705c92ec1974ada17af2a891e0bf763b97 | /core/get_input.py | 21fcd1c9c836417783cbba4c9450586ea9653811 | [
"Apache-2.0"
] | permissive | indrajithbandara/OWASP-Nettacker | 593bdf5426606e67a94e447b4a9534bf79b0396b | 087ce32f06758db03039a34e6e32fbc57fb4ffef | refs/heads/master | 2021-05-08T14:22:54.520184 | 2018-01-27T20:34:59 | 2018-01-27T20:34:59 | 120,082,592 | 1 | 0 | null | 2018-02-03T10:49:34 | 2018-02-03T10:49:33 | null | UTF-8 | Python | false | false | 514 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from core.compatible import version
from core.alert import __input_msg
def __input(msg, default):
if version() is 2:
try:
data = raw_input(__input_msg(msg))
if data == '':
data = default
except:
data... | [
"ali.razmjoo@owasp.org"
] | ali.razmjoo@owasp.org |
ec0fe22ab52822601adcf965f531dec7895c63aa | 66fb5bbf3cd0f2c7b00db7081271c376812b68dd | /control_planner/scripts/purepursuit.py | c4385ac0777d26b0a19d879eb7b8d5ef81f9ef78 | [] | no_license | freesloth/wecar_2 | d5e95ae67d65bcd78a60ceae95a48161656e4fab | c05888cc70ddd775a3151b722db06aa41705f6b9 | refs/heads/master | 2023-01-22T15:47:39.505150 | 2020-12-10T03:29:36 | 2020-12-10T03:29:36 | 278,523,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,179 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
import rospkg
from sensor_msgs.msg import LaserScan,PointCloud,Imu
from std_msgs.msg import Float64
from vesc_msgs.msg import VescStateStamped
from laser_geometry import LaserProjection
from math import cos,sin,pi,sqrt,pow,atan2
from geometry_msgs.msg import P... | [
"you@example.com"
] | you@example.com |
6fb892e8583fa7eb8e4ec468bbb83d3a7077a633 | fec9d5e77fe0248853c11084cb27ed3b1dcb500c | /users/arxiv/users/legacy/tests/test_endorsements.py | f38ff79e7bc0d63bd241498e861451266964fc1c | [
"MIT"
] | permissive | SamanthaFeidFischer/arxiv-auth | bb1c41f018a3573fa1cbc7b5def9532deb6bdd9c | 08df4e0196a04a06eac1d26477b3ad56ebf56f08 | refs/heads/develop | 2021-06-13T09:58:48.592901 | 2018-09-12T21:31:04 | 2018-09-12T21:31:04 | 148,851,802 | 1 | 0 | MIT | 2021-04-29T19:40:12 | 2018-09-14T23:37:49 | Python | UTF-8 | Python | false | false | 11,057 | py | """Tests for :mod:`arxiv.users.legacy.endorsements` using a live test DB."""
import os
from unittest import TestCase, mock
from datetime import datetime
from pytz import timezone
from flask import Flask
from mimesis import Person, Internet, Datetime
from .. import endorsements, util, models
from ... import domain
E... | [
"brp53@cornell.edu"
] | brp53@cornell.edu |
8aaf8f3f3727e9f197dde7885aeb985345df5674 | 8073d1dfce9df3bdc1155c9a6052a0a2a8075201 | /pframe_dataset_torch.py | 446ce56f2efcd2e739d5461f10e1eb252aa56e3b | [] | no_license | relational/clic2020-devkit | a7c19dd28b9b7ddf3d5a7e609f0d396b8250bc54 | 9a02862c4ebfdc8eba7edb5bd168aeaf589057ef | refs/heads/master | 2020-09-15T15:14:27.761441 | 2019-11-22T16:09:25 | 2019-11-22T16:09:25 | 223,486,717 | 0 | 0 | null | 2019-11-22T21:08:49 | 2019-11-22T21:08:48 | null | UTF-8 | Python | false | false | 2,069 | py | import torch
from PIL import Image
import glob
from torch.utils.data.dataset import Dataset
from torch.nn import functional as F
from torchvision.transforms.functional import to_tensor
import pframe_dataset_shared
class YUVFramesDataset(Dataset):
"""
Yields frames either as tuples (Y, U, V) or, if merge_chann... | [
"fmentzer@me.com"
] | fmentzer@me.com |
a8d0358b14e0899a93fda27fcd872490e907be31 | 5c0a253bf2fb83db01abc99097871c965f4cf565 | /study/machinelearning/clustering/flat/KMeans/kMeansWithScratch.py | 6e509df62cf33b8d8436cb1ad679ecef276bd6d5 | [] | no_license | airuibel/python-1 | 3b16553ede9d069ec56efbb12a89a4de6917a447 | 94f387e2d406fab2128bcfffce6146da720b2ccc | refs/heads/master | 2020-07-05T15:43:00.957221 | 2017-09-17T14:05:48 | 2017-09-17T14:05:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | # -*- utf-8 -*-
import matplotlib.pyplot as plt
from matplotlib import style
style.use('ggplot')
import numpy as np
X = np.array([[1, 2],
[1.5, 1.8],
[5, 8],
[8, 8],
[1, 0.6],
[9, 11],
[1, 3],
[8, 9],
[0, ... | [
"cysuncn@126.com"
] | cysuncn@126.com |
1fc8c3edd2c2ef3d16c220f36cb7d72c3bcad84f | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-datalabeling/samples/generated_samples/datalabeling_v1beta1_generated_data_labeling_service_list_annotated_datasets_async.py | 5f3fe6b186baf941dd84aef169d534faaebfa3cf | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 2,012 | py | # -*- coding: utf-8 -*-
# Copyright 2023 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... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
d49d4df253e01b51cbef0fd3337a5d662b8bb43c | 6a2c2af113bb8b4d55db6ceabc6e78a0bbcd1f91 | /genus processing/Shorts Back Pocket Flap.py | c5157eb6d81a0e4a0684d901d89b3339771afb61 | [] | no_license | JinghongM/Everlasting_Data_Cleansing | 4a966aca5cba102961f64338411d76e51f60f51e | 237073980b2bd1697db578013c7463dcbc1492fb | refs/heads/master | 2021-04-26T23:48:38.083155 | 2018-06-21T20:00:11 | 2018-06-21T20:00:11 | 123,861,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | import pandas as pd
import copy
import os.path
Pattern=6
Material=7
Species=4
CGP = pd.read_excel("../Realdata.xlsx")
for row in range(1,CGP.shape[0]):
genus = str(CGP.iat[row,3])
if "Shorts Back Pocket Flap" == genus:
print(row)
CGP.iat[row,Species] = "Back Pocket"
CGP.iat[row,3] = "Shorts"
i=0 ... | [
"noreply@github.com"
] | JinghongM.noreply@github.com |
db163f23c75034ea1dd7b2d3897238e64962d9d5 | 9b85af3301f88c6d3c319d1cda641fd690d0d367 | /handwrite/DigitRecognizer.py | c2646217a3527f814a6b4b00a575c053941880f6 | [] | no_license | mmm311/kaggle | 44d424252a56bfb854c6086b8aa425aee5a957cb | 79ba34399d577beb7e15d7986fb9ddf4869d7da4 | refs/heads/master | 2020-06-20T06:43:58.222753 | 2016-12-11T06:57:21 | 2016-12-11T06:57:21 | 74,873,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | '''
Created on 2016年10月24日
@author: liu
'''
from sklearn.ensemble import RandomForestClassifier
from numpy import genfromtxt, savetxt, dtype
import numpy as np
def main():
#创建训练集
dataset = np.loadtxt(r'E:\graduate program\code\python\data\train.csv',
dtype ='f8',
... | [
"1034930026@qq.com"
] | 1034930026@qq.com |
e3aa31f0202dec4519341cd7b14b24a1eed94c12 | 1ff980bd6c225d09b9bf10942336a74caf7d0ccd | /myweb/urls.py | bf71b11f8580ee8fe909066a9699c43313a00b94 | [] | no_license | dofospider/myweb | feb6907544edb76156364fc32667ba82c02c56d8 | d12bb1f1604260369805180c6c13afa2899f2832 | refs/heads/master | 2021-08-30T16:03:13.648106 | 2017-12-18T14:56:57 | 2017-12-18T14:56:57 | 110,114,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | """myweb URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"dofospider@gmail.com"
] | dofospider@gmail.com |
843d17cca1e8dbc0f76f485585fb22132ff28259 | 044ec056bc99ba090d3ea3368974d52cc5ac32f3 | /Modul6/coding.py | ba5e22b8be7ad99c0ac253832e160b786fc1e345 | [] | no_license | L200184044/prak_algostruk | d527115b7dce7b4bac5908a276798a15bf796e10 | 5e330ff77a7024d11dbccb68a3af66b82553a276 | refs/heads/master | 2021-02-12T21:15:39.757178 | 2020-07-04T06:43:34 | 2020-07-04T06:43:34 | 244,631,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,813 | py | Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> #NOMER 1
print ('-----Nomer 1-----')
class MhsTIF(object) :
def __init__(self, nama, nim, asal, uangsaku) :
self.nama = nama
... | [
"noreply@github.com"
] | L200184044.noreply@github.com |
32f7a189d793b0b0da1823a492e1a0590968f29a | cad4f7e40dc575a3224c4a554319245d6d09162f | /ksh/ch3/condition06.py | 417bad7bd071ac56383b4ed294b1fdff988bc553 | [] | no_license | ksh60706/python_study | 56c3dddbdb492db332dd0931771c92b1a0ef81eb | 02c9457e56d39d7649c566ab01110fe3ff65ea0c | refs/heads/master | 2022-11-17T05:33:52.708897 | 2020-07-07T06:39:49 | 2020-07-07T06:39:49 | 274,009,716 | 0 | 1 | null | 2020-07-07T06:39:50 | 2020-06-22T01:05:25 | Python | UTF-8 | Python | false | false | 658 | py | # 변수를 선언합니다.
score = float(input("학점 입력 > "))
# 조건문을 적용합니다.
if score == 4.5:
print("신")
elif 4.2 <= score < 4.5:
print("교수님의 사랑")
elif 3.5 <= score < 4.2:
print("현 체제의 수호자")
elif 2.8 <= score < 3.5:
print("일반인")
elif 2.3 <= score < 2.8:
print('일탈을 꿈꾸는 소시민')
elif 1.75 <= score < 2.3:
print("오락문화... | [
"ksh60706@hansol.com"
] | ksh60706@hansol.com |
c25c460122f690887e2795f8a510fd73595b7ae8 | c56d36c10e52f569f3864790611fe9cf11bcb050 | /lesson9/mitm_xueqiu.py | 8d2d4019d65f5d1f4b7158c744e5c9c3bbbf9d92 | [] | no_license | yr-rui/LG7 | c9ba3e062eba4e5444a2e82a5bba8648da3258c9 | 471318a2af4e1d9e8b964d73f12f8f7ab713495f | refs/heads/main | 2023-07-30T15:47:47.702967 | 2021-09-15T12:48:09 | 2021-09-15T12:48:09 | 360,015,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,499 | py | """HTTP-specific events."""
import json
import mitmproxy.http
from mitmproxy import http
class Events:
def http_connect(self, flow: mitmproxy.http.HTTPFlow):
"""
An HTTP CONNECT request was received. Setting a non 2xx response on
the flow will return the response to the client abo... | [
"rui.yue@changhong.com"
] | rui.yue@changhong.com |
4a14a4a9d4659be2920bea4854f201229b0f3159 | 38183a86c6a383715302c9d6f94850e4e5d748a3 | /api/check_car.py | 71322b03b6b6821f56512189afdbcee06354fd92 | [] | no_license | MRAproject/Backend-V2 | b1cb0879eb802e07f7408b21a17b0ef41f6cbf7b | 9613aafaaec66d78918ddc084e5e75951a5b8619 | refs/heads/master | 2020-04-27T18:07:45.409649 | 2019-04-09T07:45:10 | 2019-04-09T07:45:10 | 174,555,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,512 | py | from flask import request, jsonify
from datetime import datetime
import sqlite3
import base64
from plate_recognition.Main import main
def check_car():
image = request.args.get('carNumber')
img_data = base64.b64decode(str(image))
filename = 'some_image.jpg' # I assume you have a way of picking unique fil... | [
"amitmarkovich92@gmail.com"
] | amitmarkovich92@gmail.com |
42ae99636bef2b466a152cd47dbb195677753fcc | 4960e3e005ba04ec0a8b0defc6642dff5e71f5ae | /knowledge/cron/flow4/scan_domain2sentiment.py | 82aed86bc47562f200906949fc65791e17a4ba4e | [] | no_license | jianjian0dandan/knowledge_revised | aa7d772ba9efcaa579907b0418e145d6b440a9c9 | ffc80dcca932c977755128c80c17dca603ee8a8b | refs/heads/master | 2021-01-24T18:27:41.117166 | 2017-04-25T14:55:42 | 2017-04-25T14:55:42 | 84,448,466 | 1 | 0 | null | 2017-06-15T07:32:31 | 2017-03-09T14:02:46 | HTML | UTF-8 | Python | false | false | 1,974 | py | # -*- coding:utf-8 -*-
'''
use to scan user domain to redis hash for compute sentiment
update: one month
'''
import sys
import time
from elasticsearch.helpers import scan
reload(sys)
sys.path.append('../../')
from global_utils import es_user_portrait, portrait_index_name, portrait_index_type
from global_utils import R... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
bd4313e16c7f1ea0d9500ef337a3402bb36987d0 | a6d96bc4cedee2f77d1b5399ff480b86f17ea310 | /Mo6 indi5/migrate_01/migrations/0001_initial.py | 8c966d1965bea66ded333fae9ce73e87c03f61c2 | [] | no_license | sezniv/modulo6_indivigrupal_5 | 11966d56cb82cd4720a6a9595786c6b510190ab3 | f5e431941148038b9833463a9a813971a976a3d2 | refs/heads/main | 2023-02-18T08:08:01.836672 | 2021-01-18T00:46:26 | 2021-01-18T00:46:26 | 330,516,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | # Generated by Django 3.1.5 on 2021-01-13 21:52
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Departamento',
fields=[
... | [
"sezniv@gmail.com"
] | sezniv@gmail.com |
cfdaccfe846dadf7a82012fb5f6919842cddec02 | 1308e7ce4ad8eb2303303ef7ae8fd0d9a07d5e98 | /src/app.py | d6b97dd460309ca10b825f4204b4857afcc26eb4 | [] | no_license | biraj094/flask-github-actions | c9f24f4c4ec0da866b377ab9748f829691336bd9 | 9bf535480877b480806abe1bbd4218372433a909 | refs/heads/master | 2023-02-27T15:26:04.286635 | 2021-01-29T06:58:12 | 2021-01-29T06:58:12 | 333,686,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py |
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "Hello world"
def add(x,y):
return x+y
if __name__=="__main__":
app.run()
| [
"koiralabiraj@gmail.com"
] | koiralabiraj@gmail.com |
2bc4c9e6069212b6686c4d96d16cb7c202bd50ba | cc48a48e10b819825b47053566b34c4f0676dbd4 | /14nov.py | 8492ccdf13b0f460e376911c042d2f82cb594f23 | [] | no_license | Klankers/411_M2M | fc912aced83c8bc05348fd79c3814ac8f8e24cf6 | e44a43abe031cd9af98e3ec67efc92608141d4ff | refs/heads/master | 2021-04-30T00:52:01.946364 | 2018-02-14T03:49:12 | 2018-02-14T03:49:12 | 120,809,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | USERNAME = 'OOIAPI-TFWIQ9W27S5XJI'
TOKEN = 'TSB1PZMOBD1H4T'
import requests, json
from pprint import pprint #pprint used to format json objects. pprint(data[0]) is formatted to be legible.
#response = requests.get('https://ooinet.oceanobservatories.org/api/m2m/12576/sensor/inv/RS03CCAL/MJ03F/05-BOTPTA301/streamed/bo... | [
"noreply@github.com"
] | Klankers.noreply@github.com |
462dfd6ce89d105b27804c48b359032cd031ba41 | 161edb3d2fdc0ca247e0b08d76c5d2a49093bce0 | /manage.py | 1ec76941f11c81d6459ccabe0d4f365bae9dcb71 | [] | no_license | mkdabc/CRM | a5b6eb6cfef435f5d63e40a145dc41265cb98523 | e00ff8e613a83d22cd6bce69cef97020c7f840e5 | refs/heads/master | 2020-05-24T00:45:19.966904 | 2019-05-16T12:15:31 | 2019-05-16T12:15:31 | 187,022,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "crm_mkd.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"458351424@qq.com"
] | 458351424@qq.com |
1d2e2eb2c10108687a1dc49559484804e918c456 | 93d700b0275bca7bbe10da7b05afb63129180327 | /cmsplugin_rst/forms.py | 52c718fb178b45fdcd2bb193c48470d6edaec1f1 | [
"BSD-3-Clause"
] | permissive | nwojcik/cmsplugin-rst | d251a4bc029b4f804ee81b8cb5a4efbe719d3270 | afc564dc32fff5fa5e0ad7a9449088cb49737db6 | refs/heads/master | 2021-01-16T20:26:48.392784 | 2011-10-09T13:29:06 | 2011-10-09T13:29:06 | 2,537,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from cmsplugin_rst.models import RstPluginModel
from django import forms
help_text = '<a href="http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html">Reference</a>'
class RstPluginForm(forms.ModelForm):
body = forms.CharField(
widget=forms.Textarea(attrs={
'rows':... | [
"jonas.obrist@divio.ch"
] | jonas.obrist@divio.ch |
bb17f170a96d6910eed0134d74a5d07a2cffd5bb | 97626032008febd273330996ee7a8d27d9d0788e | /datastructure/practice/c7/c_7_26.py | 1fa7b4dc7d5b3436a0ea2ab39ab4f466baa70de3 | [
"MIT"
] | permissive | stoneyangxu/python-kata | ee03597a00ce80c7d1d34dc63b2302a3d2bfdc3e | 979af91c74718a525dcd2a83fe53ec6342af9741 | refs/heads/master | 2020-08-28T15:02:48.253340 | 2019-11-05T15:04:52 | 2019-11-05T15:04:52 | 217,733,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import unittest
from datastructure.links.LinkedQueue import LinkedQueue
class MyTestCase(unittest.TestCase):
def test_something(self):
queue1 = LinkedQueue()
queue1.enqueue(1)
queue1.enqueue(2)
queue1.enqueue(3)
queue2 = LinkedQueue()
queue2.enqueue(4)
queu... | [
"stoneyangxu@icloud.com"
] | stoneyangxu@icloud.com |
b1b7fec1ef05d9659b007e38d824978221d4191c | 0aa2db201678205e9eccd3f4f2dcb6f95a97b5f6 | /tut_23.py | ca22460439ce1e75e3520ad687c01f55a1515c70 | [] | no_license | udoy382/PyTutorial_telusko | ffa76b4b6772d289c787e4b682df2d0965a2bf62 | 5dc5f3fc331605310f7c3923d7865f55a4592e28 | refs/heads/main | 2023-06-09T11:00:41.915456 | 2021-06-30T14:29:56 | 2021-06-30T14:29:56 | 381,730,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # run this type of shape
# # # #
# # # #
# # # #
'''
for i in range(4):
for j in range(4):
print("# ", end="")
print()
'''
# run this type of shape
#
# #
# # #
# # # #
'''
for i in range(4):
for j in range(i+1):
print("# ", end="")
print()
'... | [
"srudoy436@gmail.com"
] | srudoy436@gmail.com |
68bb0815f024aa9943dbd62a2323742323b09af2 | 33d5e763d3904bbfc2c5ad7269a81bd5dcd5422f | /FileServer/fileServer.py | c0b234b256d6109ff45cfc9c47ead0dd5de05479 | [] | no_license | shadowamy/python | 5bc053dc64658c65d8d0e6e232dd91e1896b8c20 | e195f40fd6f77c110eb39dcc42dec2fdfec5f8fb | refs/heads/master | 2020-05-04T21:36:43.097596 | 2019-04-04T11:15:16 | 2019-04-04T11:15:16 | 179,439,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,851 | py | # -*- coding: UTF-8 -*-
import socket, time, socketserver, struct
import os, threading
host = 'localhost'
port = 12307
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # 定义socket类型
s.bind((host, port)) # 绑定需要监听的Ip和端口号,tuple格式
s.listen(1)
fileHouse = 'fileHouse'
def file_send(connection, filepath):
#filepat... | [
"547822367@qq.com"
] | 547822367@qq.com |
45afd3a8a7c4e27c8a14cae91ba000ca278b0c88 | e0f13152e4575f09f0b1e4b1811726bbe5066f90 | /tests/spend.py | 6f12c1c3b03880c9039e75a9eab6c88f5ec189dc | [] | no_license | yagamidev/amoveo | 88bc0dea994fab72c9f430f838ffc54418e30abf | 4dfd6cc8a5cb740500a873c83ff979fa521ec4e7 | refs/heads/master | 2021-04-09T11:45:23.697801 | 2018-03-16T09:13:35 | 2018-03-16T09:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | from get_request import request
def spend_test():
print("spend test")
pub = "BGRv3asifl1g/nACvsJoJiB1UiKU7Ll8O1jN/VD2l/rV95aRPrMm1cfV1917dxXVERzaaBGYtsGB5ET+4aYz7ws="
priv = "nJgWyLTX1La8eCbPv85r3xs7DfmJ9AG4tLrJ5fiW6qY="
brainwallet = ''
request(2, "load_key", [pub, priv, brainwallet], 1)
reque... | [
"zack.bitcoin@gmail.com"
] | zack.bitcoin@gmail.com |
29954117c6931a528ca8feec50c7348da1488d7b | 001f168a412cd1c80c5e0fece0775a41f41ad365 | /project4/server/amqp_receive.py | b7fe88fb7f8e97773afcfb0b41310167dc04afd4 | [] | no_license | aakashpk/ecen5053-002_eid | ea9d5b78c5af9c0887097a4b72d9c0be00008262 | c13ea5512eb35176ed558b23649f22bcc5ee2440 | refs/heads/master | 2020-04-29T09:48:12.508826 | 2019-03-17T00:55:51 | 2019-03-17T00:55:51 | 176,038,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | #!/usr/bin/env python
import pika
credentials = pika.PlainCredentials('project4', 'abcd')
connection = pika.BlockingConnection(pika.ConnectionParameters('192.168.43.189',credentials=credentials,blocked_connection_timeout=600))
#192.168.43.189
channel = connection.channel()
channel.queue_declare(queue='transmit')
cha... | [
"Aakash.Kumar@colorado.edu"
] | Aakash.Kumar@colorado.edu |
c5c02b528246d16171faa687ec9e7fb3d4df0a74 | 039ba9dba0f131496a959338c32e811904f00708 | /mycrm/shopcrm/shopcrm/settings.py | bd18f1c8d64d8efad0647ac52c6bf4b7e4fd5f5d | [] | no_license | mageshrocky/python_django_projects | 49e12aff8fe08704c2d17b60d5373f0990120336 | 444c30780632ceea5c6b7377356ed2c3c5ce6253 | refs/heads/master | 2023-05-18T11:57:01.691868 | 2021-06-15T11:18:26 | 2021-06-15T11:18:26 | 377,125,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,265 | py | """
Django settings for shopcrm project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
fro... | [
"magesh1699@gmail.com"
] | magesh1699@gmail.com |
d3d599ac0a078b0b7694041e0631328a31cf3277 | a6632d728726f8c3e07f9e8c7dedb7da2d772165 | /Youtube_cloneAPI/youtubecloneAPI/wsgi.py | ea7af36541305aeea598d3d2d181055458d91ce2 | [] | no_license | asnchz/Youtube_Clone_API | a9372c937f3e528ef742cacb44f6098ebe7e0530 | 2abe0b32902fe00176dd0e7beae26fff3356d4c3 | refs/heads/main | 2023-08-22T20:25:49.458191 | 2021-10-14T21:34:29 | 2021-10-14T21:34:29 | 416,890,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for youtubecloneAPI project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"asnchz27@yahoo.com"
] | asnchz27@yahoo.com |
b30b589f5979dd5defb995c813fba4cbb053a9f6 | d314f5f27dea761b5e25a4a34cd84dccfc8d3ff5 | /Elevator.py | 879dce25295bef71f10003f32d9f43de0baa77d9 | [] | no_license | daniiloleshchuk/Python-Lab10 | 7fd87418862480582f23eb684679b1f5354ae152 | 4db34442dacd72e3c1fc4959eab259a43ebb2121 | refs/heads/master | 2022-07-20T06:22:12.288445 | 2020-05-21T19:12:14 | 2020-05-21T19:12:14 | 254,920,356 | 0 | 0 | null | 2020-04-22T10:06:20 | 2020-04-11T17:33:03 | null | UTF-8 | Python | false | false | 1,588 | py | class Elevator:
# static field
staticVar = "This is static variable"
# constructor
def __init__(self, producer_name=None, carrying_capacity_in_kg=None,
engine_power_consumption_in_watts=None, height_in_sm=None, width_in_sm=None, length_in_sm=None):
self.producer_name = producer... | [
"danieloleshuk@gmail.com"
] | danieloleshuk@gmail.com |
93fb80555ba83304ee0774e8a8d306de3231038c | d8edd97f8f8dea3f9f02da6c40d331682bb43113 | /networks439.py | 52a3ed76800ad9bf46c5c6733e530a3fa5cc21d3 | [] | no_license | mdubouch/noise-gan | bdd5b2fff3aff70d5f464150443d51c2192eeafd | 639859ec4a2aa809d17eb6998a5a7d217559888a | refs/heads/master | 2023-07-15T09:37:57.631656 | 2021-08-27T11:02:45 | 2021-08-27T11:02:45 | 284,072,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,889 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
__version__ = 205
# Number of wires in the CDC
n_wires = 3606
# Number of continuous features (E, t, dca)
n_features = 3
class Gen(nn.Module):
def __init__(self, ngf, latent_dims, seq_len, encoded_dim):
super().__init__... | [
"m.dubouchet18@imperial.ac.uk"
] | m.dubouchet18@imperial.ac.uk |
0d4ab8da4f25648c8d0d15a9733749624e19c72d | e4c38f01c1d564156185b87235751fe5d59ca7c6 | /4. Trees and Graphs/routeBetweenNodes.py | 4afbd6245a05cbb2636317784d2a1d0e271f779a | [] | no_license | tommydo89/CTCI | 07c6efc98bde3a421c07607824351ea7d67a1723 | d03b5d2ccfd3fc24dc46d1f799881114079f50b3 | refs/heads/master | 2020-04-27T07:00:46.224438 | 2019-12-18T10:42:06 | 2019-12-18T10:42:06 | 174,124,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | # Given a directed graph, design an algorithm to find out whether there is a
# route between two nodes.
class Node:
def __init__(self, val):
self.val = val
self.adjacent = []
self.visited = False
class Stack:
def __init__(self):
self.items = []
def push(self, val):
self.items.append(val)
def pop(sel... | [
"tommy.td89@gmail.com"
] | tommy.td89@gmail.com |
4bbd4e1900beb6ff27f7d3b88e7c7d6ca27bfe17 | a865208496172a8e6eb9f7ddcc52f3a3052718ea | /website/music/views.py | 8f5b531a9af0b7b0ece52b3984edcd3e8bac3005 | [] | no_license | Vishal026/python-django-project | 74f8d6e84a81c172a9644fe4c42005389d63694c | 11f0c4e9c93e63b45eb1058e7d47f8a6cb8f5096 | refs/heads/master | 2021-01-22T13:23:48.403429 | 2017-09-04T13:37:29 | 2017-09-04T13:37:29 | 102,365,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | from django.views.generic.edit import CreateView,UpdateView,DeleteView
from django.core.urlresolvers import reverse_lazy
from django.shortcuts import render,redirect
from django.contrib.auth import authenticate,login
from django.views import generic
from django.views.generic import View
from .models import Album
from .... | [
"31509721+Vishal026@users.noreply.github.com"
] | 31509721+Vishal026@users.noreply.github.com |
05369d52316f17c3049325e4676bd2ef58c11da5 | dcf59838030d329733ecb166be831cf3c73991c9 | /fatorial2.py | 5c6a2a16db9a780d23935e1475002ce41dc32762 | [] | no_license | ender8086/FIAP | 14416514ebe54f37dc3af6135125548f3c36b60e | a0691b5efc68dc0633b5d79a3d51a17439e0e25d | refs/heads/master | 2022-10-16T21:40:06.342986 | 2020-06-14T19:25:59 | 2020-06-14T19:25:59 | 272,268,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | print("Pesquisa sequencial")
n = int(input("Digite n: "))
l = list(range(2, n+1, 2)) #função list + tipo range | [
"noreply@github.com"
] | ender8086.noreply@github.com |
4aa58e954b0b4010715814b0abc520a20475a2a0 | abcbcf29319774e80ca2d844c204f1f91da8b443 | /tests/unit/sagemaker/feature_store/test_inputs.py | 836ed5187e0b8de1b3081c2271995ea54e98024e | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | giuseppeporcelli/sagemaker-python-sdk | e56f5c60d88d4fe2e3589f1994bbc0c402d35a58 | 86143245227139b6883ee72a5fa396b48049cb3c | refs/heads/master | 2023-02-04T08:36:05.234799 | 2020-12-22T17:39:37 | 2020-12-22T17:39:37 | 290,551,159 | 0 | 0 | Apache-2.0 | 2020-08-26T16:40:19 | 2020-08-26T16:40:18 | null | UTF-8 | Python | false | false | 2,627 | py | # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | [
"choidan@amazon.com"
] | choidan@amazon.com |
5df3c7499dbe7f360e3bcf3df2fe00dbd9c8f6ce | 4277bbbe447b4b60d9ce8e3725cad2218058bdd0 | /home/forms.py | c746797eedfb6cbfa7747fd1d35f24c57c2065fd | [] | no_license | pritpalxyz/carrer_lama | 71ae11c80f3f6457f7f6e6758dcdd8aa962b3103 | 5b95f59a91f9cac9f1d6142f799da7287a220626 | refs/heads/master | 2023-05-26T00:38:51.395811 | 2017-10-22T20:36:35 | 2017-10-22T20:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | from django import forms
from .models import *
class addContactedForm(forms.ModelForm):
name = forms.CharField(label='Name', max_length=30, widget=forms.TextInput(attrs={'required':'required','name':'name','class':'form-control'}))
subject = forms.CharField(label='Subject', max_length=30, widget=forms.Text... | [
"pritsingh0117@gmail.com"
] | pritsingh0117@gmail.com |
da64cffd7313594a39968f872c075638d777d22e | 9811940577f6ffdda540c9735904e7aa30be3f62 | /cython_tutorials/test.py | a623d3d9ed8b6efe2991df006d03091b1b4e96f0 | [] | no_license | YellowPig-zp/python-projects | 300cb0b7862cf2e67a86540daf21030ed05a776b | 11715367bcd937b502d19a11b83b64bab09902e4 | refs/heads/master | 2018-09-17T17:35:18.605860 | 2018-06-05T21:02:16 | 2018-06-05T21:02:16 | 125,166,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | import timeit
cy = timeit.timeit('example_cy.test(5000)', setup='import example_cy', number=10000)
py = timeit.timeit('example_py.test(5000)', setup='import example_py', number=10000)
print(cy, py)
print('Cython is {}x faster'.format(py/cy))
| [
"zipeng.qin.1997@outlook.com"
] | zipeng.qin.1997@outlook.com |
0fbcb4dace7a1a4154e9787babcc6e51e2fb5d94 | 46769b03aa33875bf4c7b1d4a2c51635a397cdfc | /new_test_22_dev_10089/wsgi.py | 71a95a093114e20c8b2cd6e41198ec4cfed9c106 | [] | no_license | crowdbotics-apps/new-test-22-dev-10089 | 89b7e69c0dc0144f507ad6a0b84f06386d9a4e1c | ff18ba29e44581c139829607c663d731730b7bd9 | refs/heads/master | 2022-12-14T20:30:56.738780 | 2020-09-07T13:15:20 | 2020-09-07T13:15:20 | 293,532,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | """
WSGI config for new_test_22_dev_10089 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1cd44967f3be59b5da4887abb18f70c55b13da1d | 79c1f1e1f9a123a146a314b9e4cd7f57c2301ed3 | /visualize/CSVVsersion/SceneCSV.py | 1fa2468f95df5ef35c99938e975a8dbef066891a | [
"MIT"
] | permissive | ys1998/motion-forecast | 41a1ebc553edddcf8c463d67237f53c23aa53729 | ef8fa9d597906a756f28952a731f6bc8d178f2bf | refs/heads/master | 2020-04-17T16:41:20.276427 | 2019-07-07T06:19:30 | 2019-07-07T06:19:30 | 166,751,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | import vtk
class SceneCSV(object):
def __init__(self):
self.sceneSources = list()
self.sceneMappers = list()
self.sceneActors = list()
self.sceneLights = list()
self.addLight(1.0, 1.0, 1.0, 1000, 1000, -1000, 0.75, 180, 0.75)
self.addLight(1.0, 1.0, 1.0, -1000, 500... | [
"yashshah2398@gmail.com"
] | yashshah2398@gmail.com |
50bb72f6d2260ed83164526fc0355bfe4a41dc23 | 6cb9a8da836352f522d47946dc12afb5f9ac758a | /benchmark/parsers/batch-parser.py | 6240720aecbc026bb9c61e131fde087662e004ac | [] | no_license | animeshbaranawal/giraphuc | a70d1f1839e96302ec7ce13247299ba780c6b297 | 32adbc8a9bc0d73ccc037996b79a45c1f9a42e69 | refs/heads/master | 2021-12-08T05:48:45.499526 | 2016-02-22T00:22:51 | 2016-02-22T00:22:51 | 395,278,312 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,319 | py | #!/usr/bin/env python
"""Batch parser that extracts and prints out results for given log files."""
import os, sys, glob
import argparse, itertools
# do some parallel computing
#from joblib import Parallel, delayed
###############
# Constants
###############
BYTE_PER_GB = 1024*1024*1024.0
KB_PER_GB = 1024*1024.0
MS... | [
"young.han@uwaterloo.ca"
] | young.han@uwaterloo.ca |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.