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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c949b20cd8512d71cc4345132f633e321b3ff982 | 29587c8e9c2b8495b2cf4039392bcb33af5a11ed | /yourcfp/users/urls.py | de9e4e85a241e35c29046d6601b5b118a871cdce | [
"MIT"
] | permissive | tapaswenipathak/CFP | 281d760b10bcdf9d2ab78f84748a7aa64fc109e4 | d6ec12c4a15b36a17f0099807fa59a3427ce22c4 | refs/heads/master | 2020-05-24T17:40:34.935381 | 2019-07-01T17:11:05 | 2019-07-01T17:11:05 | 187,390,570 | 2 | 1 | MIT | 2019-06-27T17:39:40 | 2019-05-18T18:09:20 | Python | UTF-8 | Python | false | false | 335 | py | from django.urls import path, reverse_lazy
from .views import OrganizerRegisterView, SpeakerRegisterView
app_name = 'users'
urlpatterns = [
path('register-as-organizer/', OrganizerRegisterView.as_view(), name='register-as-organizer'),
path('register-as-speaker/', SpeakerRegisterView.as_view(), name='register-a... | [
"sujay@localhost.localdomain"
] | sujay@localhost.localdomain |
31a47a1986dd8a2835b5213b6ba20f62e8fd0a35 | f27ce5cfb16df673e7110a3ef7a6847e8794efb5 | /example/config.py | 6ab43970bf7e9ce0b01aee68e31815d53d519ae5 | [
"Apache-2.0"
] | permissive | SkyShiS/sfctss | 5ab68d32fbb5f2eb66f0545a4eecaaffc6f1153e | 035022d2a7ace9d3f2058751a85cd662f0455310 | refs/heads/master | 2021-03-31T22:02:13.970278 | 2020-02-03T11:28:09 | 2020-02-03T11:28:09 | 248,135,043 | 1 | 0 | NOASSERTION | 2020-03-18T04:04:01 | 2020-03-18T04:04:01 | null | UTF-8 | Python | false | false | 1,410 | py | #!/usr/bin/env python3
# coding=utf-8
import random
import sfctss
def template_default_parameters(sites):
from_config = dict()
from_config['seed'] = 0
rand = random.Random()
rand.seed(from_config['seed'])
from_config['latency_between_sites'] = 3 * 1000 # in µs
from_config['lat... | [
"bloecher@dsp.tu-darmstadt.de"
] | bloecher@dsp.tu-darmstadt.de |
6927adb2877ed18131676f2f35fb65189fcc17a5 | ca617409a3a992a2014eab34bf45ea5cd22021d7 | /event_management/serializers/venue.py | c595ecb61bac9e3ec3a25c229f8cb80dabf5c790 | [] | no_license | Imam-Hossain-45/ticketing | 89463b048db3c7b1bc92a4efc39b83c4f17d967f | 65a124d579162a687b20dfbdba7fd85c110006c6 | refs/heads/master | 2022-04-14T22:36:23.152185 | 2020-03-07T11:52:38 | 2020-03-07T11:52:38 | 230,717,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from rest_framework import serializers
from event_management.models import Venue
from settings.models import Address
class AddressCreateSerializer(serializers.ModelSerializer):
class Meta:
model = Address
fields = '__all__'
class VenueCreateSerializer(serializers.ModelSerializer):
venue_addr... | [
"imamhossain1310@gmail.com"
] | imamhossain1310@gmail.com |
01e6e957bd3250232fe150d1be85a394ee15d3e1 | d83c22a949b6a57a63b8ff3406a5b62e6402e53c | /Belly/app.py | 896b48cf3669df374d68d01d8e0fc482e123e245 | [] | no_license | WinnieWuCa/biosample | e136da6b68156902b2c3da51accafe28504d5920 | e4e28c683bbf885fbc266a86b80d8940610c18b5 | refs/heads/master | 2020-05-22T06:28:54.959398 | 2019-05-14T03:29:50 | 2019-05-14T03:29:50 | 186,254,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | import os
import pandas as pd
import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine
from flask import Flask, jsonify, render_template
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
###############... | [
"noreply@github.com"
] | WinnieWuCa.noreply@github.com |
44f2971da645473139ddea161fee3f497f61a5e5 | 037b71b99febf38540bb5e1211c9162438a63af1 | /bin/mail_diff | 3e8d19ed1d7bb61c9e23b547de92f2ea7bc3a418 | [] | no_license | ashish-pandey/MailDiff | a3f2a9aee7d1681aa0eb4add7f2e02edc6500e6a | 1634ab2f64e31c85cf740f54ac99ddd3160f94eb | refs/heads/master | 2021-01-10T14:00:37.185186 | 2016-02-06T05:30:29 | 2016-02-06T05:30:29 | 50,712,483 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | #!/usr/bin/env python
import smtplib
import getpass
import commands
import subprocess
import os
import sys
ch = raw_input("Make sure you are in the directory which you want to monitor.. Continue(y/n)")
if ch!='y':
exit(1)
path = os.getcwd()
os_env_dir = os.path.expanduser('~')
str2=path.split('/')
n=len(str2)
dir_na... | [
"apndey.15@gmail.com"
] | apndey.15@gmail.com | |
1e77c71e14d2df705175577ba95acfce83d220cc | e64db6fced156ea26497958dd3a9265db177ba2b | /manage.py | abb96d18b3314fdce50aae2b041b57e426611e36 | [] | no_license | skyride/reve-flairs | 9c2fe782db8f74696d4eea42c83abf1ceb55e72e | 6f84d571f5756964b8bcb822147ce9b144036c76 | refs/heads/master | 2022-12-16T22:25:45.671614 | 2020-06-12T20:58:58 | 2020-06-12T20:58:58 | 110,861,354 | 2 | 1 | null | 2022-11-22T02:01:52 | 2017-11-15T16:55:30 | Python | UTF-8 | Python | false | false | 804 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "flairs.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
... | [
"skylinerspeeder@gmail.com"
] | skylinerspeeder@gmail.com |
1dd7e3a89799bbd9229ad76e34e8167a38cd3d53 | 5521efa6a6ddb873eefb9c936fa0217aa548b706 | /traintest/libs/models/backbone/resnet.py | 3564bdf1950231b75a66571e9d0f9f8a43f95a1a | [
"MIT"
] | permissive | CSID-DGU/2020-2-CECD1-Turing-6 | e3eb59fa7d8eac7be804f9ddf20936f5eac62858 | f0af256cf8068e106169e27a34fd0efc0e86782c | refs/heads/master | 2023-05-30T18:12:22.893219 | 2021-06-13T12:36:04 | 2021-06-13T12:36:04 | 298,169,309 | 0 | 0 | null | 2020-11-16T08:32:16 | 2020-09-24T04:32:18 | Python | UTF-8 | Python | false | false | 6,221 | py | import math
import torch.nn as nn
import torch.utils.model_zoo as model_zoo
from models.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d
class Bottleneck(nn.Module):
expansion = 4
def __init__(self, inplanes, planes, stride=1, dilation=1, downsample=None, BatchNorm=None):
super(Bottleneck, self... | [
"24871665+Yongjun042@users.noreply.github.com"
] | 24871665+Yongjun042@users.noreply.github.com |
e174bc10988c2d56602ce33a7e1169c5ce9a2e0a | 8fdf64f983e359964f6d2722bed8442b86c373fd | /003 CookApp/app/routes.py | 33bbe08a9ba0423bfe03984f8f20e8bf1d32713f | [] | no_license | grabarczykm/Flask | da5708b94f753a74d5b04827a85ba01232da42ae | aca1ab3311ce57e010f56c72bc9dd67e8de64519 | refs/heads/master | 2022-10-31T20:46:11.045747 | 2018-12-12T16:14:40 | 2018-12-12T16:14:40 | 152,759,578 | 0 | 1 | null | 2022-10-01T22:30:57 | 2018-10-12T14:05:54 | Python | UTF-8 | Python | false | false | 5,779 | py | from app import app, bcrypt, db
from flask import render_template, url_for, flash, redirect, request
from app.models import User, Receipe, Ingredient, Comment
from app.forms import RegistrationForm, LoginForm, ReceipeForm, CommentForm, IngredientForm
from flask_login import login_user, current_user, logout_user, login_... | [
"marcingrabarczyk93@gmail.com"
] | marcingrabarczyk93@gmail.com |
d45ebcb2044d4ecb459dddc43306761522ac244a | 338c80a565c6165fd141b2ab759dfc99c1b7a3b1 | /cbmsapi/apis/login.py | 7f239c3eb0f857539faf6d18f4c1c495d499a024 | [] | no_license | dmostroff/cbmsapi | 4eef70e3dc470576a54dcfb6dfcae661948a2bbb | 351532fcfad8cb93658f333be95c70b53eab9171 | refs/heads/master | 2022-06-15T07:44:26.351454 | 2019-08-23T12:26:41 | 2019-08-23T12:26:41 | 168,374,921 | 0 | 0 | null | 2022-05-25T02:25:04 | 2019-01-30T16:23:18 | Python | UTF-8 | Python | false | false | 2,851 | py | import sys
from django.http import JsonResponse, HttpResponse
from jsonrpc.backend.django import api
from jsonrpc import JSONRPCResponseManager
from django.views.decorators.csrf import csrf_exempt
from rest_framework_simplejwt import serializers as jwt_serializers
from cbmsapi.serializers import UserSerializer
f... | [
"ostroffent@gmail.com"
] | ostroffent@gmail.com |
866b82dc83ed8b65d149bf2a90211b2774ebaea0 | f66f3239a9a1cf845e7536346bc078a5f8280a48 | /src/slave/test/signal/test_signal_send.py | 168495dd829705144005c084b5d15b4a8159f9b4 | [] | no_license | shniu/fuload | 4bc6f8dc5b8649811a065697e22f00927250f4ea | 040d26dd44d4f181eec034fe8e9a81c0bef37cdd | refs/heads/master | 2020-12-26T04:26:05.381232 | 2015-03-30T14:24:43 | 2015-03-30T14:24:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import subprocess
from subprocess import Popen
import signal
childs = []
def handler(signo, frame):
global childs
for child in childs:
try:
child.send_signal(signal.SIGINT)
except:
pass
def main():
global childs
for i ... | [
"zny2008@b9611eb2-d0e1-e8f3-2d0a-be6844a88301"
] | zny2008@b9611eb2-d0e1-e8f3-2d0a-be6844a88301 |
d45242592da728412c5e018bc4a677a8d22ef311 | 92ddc026181c6fb0bf7633f35873fe8ab8eac320 | /Kaggle/titanic/processData.py | c1cb7ca3062955d1e70b84da1ca1ddd0b83e93f9 | [] | no_license | bljessica/machine-learning-practices | 96dfc8cde6ba12188112584cecbf2c59c98ecdfc | 32e9a54452a63e3321207cc6bbe14f5ec05b672e | refs/heads/master | 2023-08-04T22:32:48.209473 | 2021-09-15T04:48:54 | 2021-09-15T04:48:54 | 313,841,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | import pandas as pd
class DataProcessing():
def __init__(self):
pass
def load_data(self, file_path):
data = pd.read_csv(file_path)
# 查看数据缺失情况
# data.info()
data = data.iloc[:, 1:]
# 补足缺失数据
# Cabi (数据项缺失最严重)
data.loc[(data.Cabin.notnull()), 'Cabin'] = 1
data.loc[(data.Cabin.is... | [
"1194620082@qq.com"
] | 1194620082@qq.com |
62ac199217285381bbdadb0153d96e25342cd866 | 73457f4f8abe861d7b2d0a56f50790f653f49684 | /apps/organization/adminx.py | 7bb7040a2eb41d88e332beac8db7635190da30cf | [] | no_license | soulwyb/aisinoMx2 | 2884ecd1100e95872b6861b2b7fc26601698479d | 7105a8449e90e97787e6feae891ab4a001d87830 | refs/heads/master | 2020-03-29T04:57:01.019010 | 2018-09-25T06:39:46 | 2018-09-25T06:39:46 | 149,557,407 | 0 | 0 | null | 2018-09-25T06:39:47 | 2018-09-20T05:43:06 | Python | UTF-8 | Python | false | false | 949 | py | # encoding:utf-8
__author__ = 'wuyubin'
__date__ = '2018-09-25 14:04'
from .models import CityDict, CourseOrg, Teacher
import xadmin
#城市
class CityDictAdmin(object):
list_display = ['name', 'desc', 'add_time']
search_fields = ['name', 'desc']
list_filter = ['name', 'desc', 'add_time']
#课程机构
class CourseO... | [
"340145294@qq.com"
] | 340145294@qq.com |
86a07676c17c075a738ef717948dba430887d983 | a621633460ba31b87f923fcaea3643a0d1637750 | /projects/Python/cli/Hertz/XORed.py | 1e734888d9458acc9318bdcc54a91f3c34114c67 | [] | no_license | BogdanFi/cmiN | edeb8316fcfd23c8525066265bac510f7361ebed | b3938f025f837df5213c8602e5854a46f2d624d3 | refs/heads/master | 2020-04-28T09:01:26.127160 | 2018-07-03T16:12:08 | 2018-07-03T16:12:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | #! /usr/bin/env python
# 27.06.2009 <> 27.06.2009 | cmiN
# Challenge [Programare] XORed (Hertz) @ rstcenter.com
# non-standard modules = ( Crypto )
import os, multiprocessing
from Crypto.Cipher import XOR
def decrypt(encrypted, chr_table):
f=file("sol.txt", "w")
for x in chr_table:
word... | [
"cmin764@yahoo.com"
] | cmin764@yahoo.com |
065b0e30935c973c0a429bc770dc0d83497d304f | 052cc3263d136efd571021a5ae005c6cffff2580 | /storytelling-data-visualization/Color, Layout, and Annotations-221.py | 95646d9256c6cc9c51e948c179db2fdacfc95e76 | [] | no_license | shinggg/dataquest_work | efc8c677c09aba3bc0d15844c4922eb7791fc9d0 | e673d8b7e4617a4a794e7f9ccd114e0d9b985eaa | refs/heads/master | 2021-07-11T15:59:17.798856 | 2017-10-11T13:05:40 | 2017-10-11T13:05:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,021 | py | ## 3. Setting Line Color Using RGB ##
fig = plt.figure(figsize=(12, 12))
cb_dark_blue = (0/255,107/255,164/255)
cb_orange = (255/255,128/255,14/255)
for sp in range(0,4):
ax = fig.add_subplot(2,2,sp+1)
# The color for each line is assigned here.
ax.plot(women_degrees['Year'], women_degrees[major_cats[sp]... | [
"anuj8june@gmail.com"
] | anuj8june@gmail.com |
03b961d9bb1e58cd6fb103daf71f8f9bb93e4c01 | 52cf623d1a4a61ae281a26645e8e569f089179b2 | /portfolio_env/urls.py | e05b0ffae02a474ad398bf7b94212212a229901e | [] | no_license | lapantonina/portfolio | f6cf387a450e0e42b71081c8cd0a996905a20a25 | abd015e3014467715495d1065c858118164fa8c7 | refs/heads/master | 2021-01-09T05:57:03.631363 | 2017-03-01T11:53:51 | 2017-03-01T11:53:51 | 80,868,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | from django.conf.urls import *
from django.conf import settings
from myapp import views
from django.contrib import admin
from django.views.generic.base import RedirectView
from myapp.views import *
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^$', views.home_page, name='home'),
url(r'^photos_... | [
"lapantonina@gmail.com"
] | lapantonina@gmail.com |
f15892d1de936228e6499e557af9650a022ac9e5 | fd1403c54581aad0192a82b88e048e6ad538e85a | /setup.py | 10f6b30bced0cffc0fbd82c4653873f0ba7afb84 | [] | no_license | swapnilsm/s3ConfigLoader | 8da658d4c38dcf3d581ee09e5450051a3ae18213 | ce20f709d35578b4431acce4a485140520314503 | refs/heads/master | 2021-01-21T22:05:13.557634 | 2017-06-22T21:06:28 | 2017-06-22T21:06:28 | 95,155,601 | 0 | 0 | null | 2017-06-22T20:53:01 | 2017-06-22T20:53:01 | null | UTF-8 | Python | false | false | 571 | py | from setuptools import setup, find_packages
setup(
name="S3ConfigLoader",
version="0.1.3",
packages=find_packages(),
install_requires=['boto3', 'pyyaml'],
# metadata for upload to PyPI
author="Rahul Subramaniam",
author_email="rahulsub@gmail.com ",
description="""This package implem... | [
"rahul.subramaniam@devfactory.com"
] | rahul.subramaniam@devfactory.com |
fcc0b6f27fc3a58d86306732ebc37ad67a93a52b | 8285ac41d39c573f059b8cd1c6c152fa45693a4a | /optimization_models/最適設計/Logistics_Network.py | 0d14ecfa04cb56b5344839e761a2c43200e86552 | [] | no_license | syu-hei/data_analysis | 182dbd6155576de6cae473816723286bdd667fe4 | ffd1c0aefcdbea4d94717bb39730b7e2608cb55f | refs/heads/master | 2022-11-30T07:46:00.990491 | 2020-08-11T15:49:21 | 2020-08-11T15:49:21 | 265,207,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | #############################################
### 輸送コストと生産コストをまとめて最適化設計します。 ###
#############################################
import numpy as np
import pandas as pd
from ortoolpy import logistics_network
製品 = list('AB')
需要地 = list('PQ')
工場 = list('XY')
レーン = (2,2)
# 輸送費表 #
tc = pd.DataFrame(((j,k) for j in 需要地 for k... | [
"53079859+syu-hei@users.noreply.github.com"
] | 53079859+syu-hei@users.noreply.github.com |
40e4fb45f8a017552c169bfbc6f623095befad43 | 6ff39313751f168be99c918907de060937d56a0e | /src/ecommerce/views.py | f6cb955719c0015530fb1334a0fc7f18754ffc7e | [] | no_license | JJBon/djangoEcommerce | 5362b51045e86c47e18586db2a049da7778d825e | ce7cedf81f820710ef4835cbc4149380bb8e4bd5 | refs/heads/master | 2021-10-16T15:04:40.693017 | 2019-02-11T18:45:58 | 2019-02-11T18:45:58 | 168,178,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,003 | py | from django.http import HttpResponse, JsonResponse
from django.shortcuts import render, redirect
from django.contrib.auth import authenticate , login , get_user_model
from .forms import ContactForm
def home_page(request):
# if not request.user.is_authenticated():
# return Login
context = {
"t... | [
"jjbonillatroncoso@gmail.com"
] | jjbonillatroncoso@gmail.com |
d45bbc2ebc3e163699e0e18d6bf32523bccae91f | 978248bf0f275ae688f194593aa32c267832b2b6 | /xlsxwriter/test/worksheet/test_write_sheet_views8.py | 16dd94be70b03ae21d672a359c7baa4a50a33d46 | [
"BSD-2-Clause-Views"
] | permissive | satish1337/XlsxWriter | b0c216b91be1b74d6cac017a152023aa1d581de2 | 0ab9bdded4f750246c41a439f6a6cecaf9179030 | refs/heads/master | 2021-01-22T02:35:13.158752 | 2015-03-31T20:32:28 | 2015-03-31T20:32:28 | 33,300,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,068 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...worksheet import Worksheet
class TestWriteSheetViews(unittest.TestCase):
"""
... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
1e4b7ce44b34a6487a6a83092e7d88a0882e822a | 857f29d0c477027977e80ab5248106e7674f6c8a | /Processing_and_Collection_Scripts/meta_classifier_creation.py | fff1891d0903b5b8c4476cc148df6e6a72ef2d03 | [] | no_license | izabeleb/COVID_URL_ANALYSIS | a28664fa812a41e1fff9f50f6c08d6e041ea8d7a | facaa7d746ec9451b4141debf977e906f1a29abc | refs/heads/main | 2023-07-12T12:43:47.126250 | 2021-08-26T00:01:00 | 2021-08-26T00:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,128 | py |
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 27 20:38:21 2021
@author: Izabele
"""
import pandas as pd
import numpy as np
from sklearn import tree
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score, roc_auc_scor... | [
"noreply@github.com"
] | izabeleb.noreply@github.com |
7b37a755485afa252bfa4cf25163359040ef524d | 01f6c517bad30152eeb4637997bc915712a6be54 | /MySuperMarket/MySuperMarket/settings.py | 71c137c6109b432fc3df1cb852eeaf03311e0c68 | [] | no_license | csnrahbsqt123/Myspmarket | 9ce0bd8add5e827778a2efa42954d1d26a57f984 | bd614590ae4b393b9ba4f6856aca143892a4ef9d | refs/heads/master | 2020-03-29T11:20:05.877231 | 2018-09-29T03:18:36 | 2018-09-29T03:18:36 | 149,846,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,072 | py | """
Django settings for MySuperMarket project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impor... | [
"946077501@qq.com"
] | 946077501@qq.com |
433be8a7d7781edf3a6c0b6fd7ea8ce7d790b2f2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02803/s436740421.py | e18ddeaa284997e7a2fa19641dcbbc710be7f0af | [] | 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 | 1,057 | py | from collections import deque
H, W = map(int, input().split())
field = ['#' * (W+2)] * (H+2)
for i in range(1, H+1):
field[i] = '#' + input() + '#'
di = [1, 0, -1, 0]
dj = [0, 1, 0, -1]
ans = 0
q = deque()
for si in range(1, H+1):
for sj in range(1, W+1):
if field[si][sj] == '#':
continue
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
adb9ebc214007bf395c573c59a8aa28386bfcfde | 571ce7a63ba334b64275e65872f4b50841243aa7 | /student-system.py | 18b72a27b200178bcaf3a6b98059e113a79843b0 | [] | no_license | prwn90/student-system-py | aaac613f79810fb70cf4ed1bc3a9852193ea6ae0 | fa755d422f089947b62d836ca57ad7b8ca3b9f4c | refs/heads/master | 2020-04-18T06:35:22.223451 | 2019-01-24T08:05:51 | 2019-01-24T08:05:51 | 167,327,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # simple student system !
import sqlite3
import sys
from tkinter import *
import time
while True:
con = sqlite3.connect("students.db")
cursor = con.cursor()
def createTable():
cursor.execute("CREATE TABLE IF NOT EXISTS students(name TEXT,surname TEXT,number INT,students note TEXT)")
def ad... | [
"purwin.daniel@gmail.com"
] | purwin.daniel@gmail.com |
6b09c02200e9cd1e184bdbbc08dba0c6c89f9b8e | e8f6a0d45cc5b98747967169cea652f90d4d6489 | /week2/day2/taco_project/taco_project/settings.py | 0d5bc4a9d6be4b8a4afe7e0834b1445e8f8b528f | [] | no_license | prowrestler215/python-2020-09-28 | 1371695c3b48bbd89a1c42d25aa8a5b626db1d19 | d250ebd72e7f2a76f40ebbeb7fbb31ac36afd75f | refs/heads/master | 2022-12-28T22:24:52.356588 | 2020-10-06T18:50:12 | 2020-10-06T18:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | """
Django settings for taco_project project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import ... | [
"CBaut@users.noreply.github.com"
] | CBaut@users.noreply.github.com |
c0f7f717646abd8da91323120231936d689acff1 | e61c34e22f3fec7099bc489a0456c8f9c8f295c9 | /jeopardy.py | 7dd595078ab0703c83366c9075572dd343a03f75 | [] | no_license | eearchey/Old-Jeopardy-Clues | 7ed7f1204b34104803501338df38278cba6c931c | c8da25c8612d9df6f843b8a585e3357fb8c7d16d | refs/heads/master | 2023-06-10T19:09:45.863280 | 2021-06-28T16:40:59 | 2021-06-28T16:40:59 | 310,107,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | import psycopg2
try:
connection = psycopg2.connect(user = "postgres",
password = "Jasper",
host = "localhost",
port = "5432",
database = "jeopardy")
cursor = connection.cursor... | [
"emilyarchey@Emilys-MacBook-Pro.local"
] | emilyarchey@Emilys-MacBook-Pro.local |
4e11342ff0eff39dd9d8fa55d634c78b123b1462 | 895cf7d265a7976c9243894bccebf3daa645bc57 | /newspaper_project/urls.py | f6991ecad02c2e49e61e9dc69905575616c3bb51 | [] | no_license | HenryM975/D_news | ebab9b443699e7b8925320d7235cf398d3a310c5 | 140be1f6385352265a6c7172261524ce5a302858 | refs/heads/master | 2023-08-05T02:33:20.483347 | 2020-08-01T09:31:18 | 2020-08-01T09:31:18 | 282,980,070 | 0 | 0 | null | 2021-09-22T19:42:46 | 2020-07-27T18:18:05 | Python | UTF-8 | Python | false | false | 994 | py | """newspaper_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"hemry975@yandex.ru"
] | hemry975@yandex.ru |
bc32c7eda4370de9d835ada025586b1dd584fc68 | 6b366ba670428b6b5609daa375966fbdc69a60a7 | /py_code/py25_apps/code/Attic/1_prove/example_osgViewer_on_wxCanvas.py | 181aee1ba15a645b0465873454c50400fd9e8976 | [] | no_license | flyskyosg/virtualrome | 2ab5d072ac3dc67055f2bcf9da51ddea55ef7645 | 8719c9f3ba43e68aacb0d060c08ce8e06874c191 | refs/heads/master | 2021-01-22T04:41:56.795839 | 2009-10-16T18:05:36 | 2009-10-16T18:05:36 | 33,448,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,204 | py | '''
From the OSG: MailingList:
Hi Serge,
View::setUpViewerAsEmbeddedInWindow() creates a
osgViewer::GraphicsWindowEmbedded and attaches it to Viewer's master
Camera. This GraphicsWindowEmbedded just does a non op for all the
operations like makeCurrent(), swap buffer etc. It quite literally
fakes it, osgViewer::Vi... | [
"silvano.imboden@363b1339-bb4f-0410-9e72-7d383497cecc"
] | silvano.imboden@363b1339-bb4f-0410-9e72-7d383497cecc |
481c160815aa241198d2718002e849e44681b008 | 0d030f4f402e3119a0cb85996275ff462bdf7e9f | /day11/exercise03.py | 8a0abef1902b2454e1528f87cb1aa4734c039d60 | [] | no_license | b63865377/- | 3a88a6e7bd5fa43e79bfabbf52f3ec7740d5df14 | 668ce9d120aa73ded5fcce0058f5d29d524e7785 | refs/heads/master | 2022-11-30T19:32:04.771723 | 2020-08-19T08:40:10 | 2020-08-19T08:40:10 | 288,694,968 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | """
只写属性练习:
限制鼠标实例变量在有效范围内
品牌、 单价、 重量、 颜色
字符小于6 0-10000、100-1000
"""
class Mouse:
def __init__(self, brand, price, weight, colour):
self.brand = brand
self.price = price
self.weight = weight
self.colour = colour
@property
def brand(self):... | [
"465274386@qq.com"
] | 465274386@qq.com |
bd1244422c562b95b4abe609a6ecc9151d8cc0f3 | 2c5edd9a3c76f2a14c01c1bd879406850a12d96e | /config/default.py | 37e61c16709d86117c0fa3d63970296d5b8742d2 | [
"MIT"
] | permissive | by46/coffee | e13f5e22a8ff50158b603f5115d127e07c2e322b | f12e1e95f12da7e322a432a6386a1147c5549c3b | refs/heads/master | 2020-08-14T04:42:05.248138 | 2017-10-23T13:39:05 | 2017-10-23T13:39:05 | 73,526,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | HTTP_HOST = '0.0.0.0'
HTTP_PORT = 8080
DEBUG = False
SECRET_KEY = "\x02|\x86.\\\xea\xba\x89\xa3\xfc\r%s\x9e\x06\x9d\x01\x9c\x84\xa1b+uC"
# Flask-NegLog Settings
LOG_LEVEL = 'debug'
LOG_FILENAME = "logs/error.log"
LOG_BACKUP_COUNT = 10
LOG_MAX_BYTE = 1024 * 1024 * 10
LOG_FORMATTER = '%(asctime)s - %(levelna... | [
"ycs_ctbu_2010@126.com"
] | ycs_ctbu_2010@126.com |
2a6a1a8ea97b5b42657c553a1bd49d80bfbdec16 | 4a0779004f663d757a78e1cbb33596de105265ff | /loanchart.py | ee531642588c1742fbc845c4ada82c5ab74f2771 | [] | no_license | dksavage1/dksavage1.github.io | 440625b9e22807b387d7e12d8a87a3acd33a49a0 | 4c7db547d33caa9d915b8855f1a16bfc5bbc83cd | refs/heads/master | 2020-07-14T03:04:33.614215 | 2019-12-05T19:35:18 | 2019-12-05T19:35:18 | 205,221,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #Write python program that generate a table that display future value of $1 at the end of n periods.
# The formula is FutureValue = ( 1 + i)^n. No credits will be given if you don't use nested loop.
n=0
for n in range(1,n+1):
for i in [4.0]:
futureValue = ( 1 + i)**n
print(f"{payment:.4f... | [
"noreply@github.com"
] | dksavage1.noreply@github.com |
4e8260a008f825aeb2e1b02773ae8149eaa3367b | 790f0e9d366db68e15e1fd553e8f4c9bba02f423 | /mixture-plot.py | c554a3accd0f300487fcaefc614b59a7fd94bb3a | [
"MIT"
] | permissive | fabeschan/midigeneration | ebb5915d81a86031703466ec190476bc0695e245 | 502c7518a99fef02b4244ddb7cb98fc8bfcb11f3 | refs/heads/master | 2021-01-19T06:14:46.224741 | 2017-04-11T22:28:35 | 2017-04-11T22:28:35 | 35,465,833 | 2 | 1 | null | 2015-11-19T23:43:24 | 2015-05-12T03:59:14 | Python | UTF-8 | Python | false | false | 1,555 | py | import data, patterns, sys, cmm, chords
import numpy as np
from skimage import io
from matplotlib.pyplot import figure, show, cm
def mixture(chord_transitions, sc2):
sc2 = cmm.NoteState.piece_to_state_chain(piece2, use_chords=True)
x = np.zeros((len(sc2),), dtype=np.float)
for i in range(len(sc2)-1):
... | [
"fabeschan@gmail.com"
] | fabeschan@gmail.com |
ac811dcdbc088c94bef5eb2ea75d1c8b108e16f5 | 966d024fd12a5eb99b14131d84c6197108647ed3 | /common/smoketest/key_vault_keys.py | aaf9891e0d3aae4794c4437ceaaee5783b4d7f8d | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | changlong-liu/azure-sdk-for-python | 9cca2843f7797f1f8462625384a7ed68f13e6789 | c5abf0d42bb31711db175f6c3c1c9a4640240b5c | refs/heads/master | 2021-08-18T00:01:47.740450 | 2020-03-30T12:02:56 | 2020-03-30T12:02:56 | 233,775,394 | 0 | 0 | MIT | 2020-01-14T06:47:51 | 2020-01-14T06:47:51 | null | UTF-8 | Python | false | false | 1,799 | py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import os
import uuid
from azure.identity import DefaultAzureCredential
from azure.keyvault.keys import KeyClient
class KeyVaultKeys:
def __init__(self):
#... | [
"noreply@github.com"
] | changlong-liu.noreply@github.com |
968e61247fed9afe342c38e04c25c9121bd48ec0 | 8c4512f5e765ac2637eba291164eb36aa25f7d08 | /coffeeMachine/beverage.py | d525c8a569ef03ce49ccbb411386e2866eb81312 | [] | no_license | vbshubham/CoffeeMachine | 59afe02ff746849cae2b650e8054843ee10b3a0a | ff60dc1f053f2b86bfaf163ad46f85aeee1080eb | refs/heads/master | 2022-11-27T15:56:29.342728 | 2020-08-09T05:02:16 | 2020-08-09T05:02:16 | 286,098,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from collections import Counter
class Beverage(object):
ingredients: Counter # counter of items and quantity required for this beverage
name: str # name of the beverage
def __init__(self, name, ingredients):
self.name = name
self.ingredients = Counter(ingredients)
| [
"vbshubham@gmail.com"
] | vbshubham@gmail.com |
412d085105bee17708b1a370c786bf36a4b66a06 | c7f12bf7053df043515af8191847ad0eac0ebeeb | /Easy/itertools.combinations().py | 0371409087d44f1ce10299f4317d7788f41cb267 | [] | no_license | sarthak815/Hackerrank_Python | 7ba462762d2db6b3d2df4eaf0ceab7e43de9b88b | 3d1e5cbd096792c21223713f77fe46c917a85a90 | refs/heads/master | 2022-12-03T04:29:05.889703 | 2020-08-01T21:19:43 | 2020-08-01T21:19:43 | 280,941,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from itertools import combinations
word, n = input().split()
for i in range(1, int(n)+1):
lst1 = list(combinations(sorted(str(word)), i))
for j in lst1:
print(''.join(map(str,j))) | [
"sarthak815@users.noreply.github.com"
] | sarthak815@users.noreply.github.com |
fb6dd4b6a0141860817de2b74e0b898ea3e8246a | d399f36c5d6cbb3fbaf28a943eb3266d4b333a07 | /MNIST_keras.py | 1dfa6eec8549e864555ba3d0be6134eb0edfba9e | [] | no_license | chaitanya-ct/MNIST-digit-recognition | 6b51857bfcaf93f75546e1b8499768a4a9682463 | 91246fd693d57248301e7d4a9f5d4ddce2914e25 | refs/heads/main | 2023-07-07T14:39:03.115664 | 2021-08-19T15:15:21 | 2021-08-19T15:15:21 | 397,976,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182,667 | py |
<!DOCTYPE html>
<html lang="en" data-color-mode="auto" data-light-theme="light" data-dark-theme="dark">
<head>
<meta charset="utf-8">
<link rel="dns-prefetch" href="https://github.githubassets.com">
<link rel="dns-prefetch" href="https://avatars.githubusercontent.com">
<link rel="dns-prefetch" href="h... | [
"noreply@github.com"
] | chaitanya-ct.noreply@github.com |
b661039903956f2045b03c56ead293eb587f96dd | 437da32ae98e24f0804d3b92686e6a502954581e | /Link_Variation/modules/async_sim.py | 6d803fa99f3685a7b65da28f19850e345857170b | [] | no_license | csbBSSE/Gene_Network_Modelling | 22ee804740055d200f56b1fbbf0a254c2a9c35be | 6260624f71995dca85fe7b8431fbca38b5e2fe10 | refs/heads/master | 2023-08-25T00:48:07.248394 | 2021-02-17T13:20:36 | 2021-02-17T13:20:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,926 | py | import numpy as np
import time
import multiprocessing
from multiprocessing import Value, Lock, Process
import os
import sys
import random
lock=Lock()
ss_file = open("temp.txt", 'w')
nss_file = open("temp.txt", 'w')
initstates = open("temp.txt", 'w')
states=[]
def simulate(begin,cur_run,random_seed,max_sim,link_matrix,n... | [
"anishhebbar@iisc.ac.in"
] | anishhebbar@iisc.ac.in |
e447c39eb9fa3ef0b87e431f60ce762c955b61f5 | 2197619ee7df8db8375385a835d8c9216ed28f04 | /packages/services/server/auth_handler.py | 77c8e3cb494fe12cdf64a8bafc6af3d857ab101c | [] | no_license | kkiani/ShannonHome | 81413c1db168eb58078a551aad8ef50376e3a1c9 | 09f9f62dfc3772571a182a062f675f010b9297b1 | refs/heads/master | 2023-01-10T04:35:36.739148 | 2020-11-09T16:44:47 | 2020-11-09T16:44:47 | 285,335,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | import uuid
import hashlib
from flask import jsonify, request
from singleton_decorator import singleton
from packages.services.server.disposable_token import DisposableToken
from packages.services.server.config import *
@singleton
class AuthHandler:
__token = uuid.uuid4().hex
__tokenSessions = []
@proper... | [
"hi@kiarash.info"
] | hi@kiarash.info |
38e6750802775cd9734d0042ef1b6247d27b3ab8 | ad85fa86eaf0bbc6fc45e23bd51db87dea834b01 | /locallibrary/locallibrary/urls.py | 2818a45f15b9aacb723a84b7dea7637805be845f | [] | no_license | av9746/locallibrary | b402301de23763fec3d794ce985e1ab0e1bfba63 | 6955a2511a622d1a9c588b31ed52fb61cf3200b5 | refs/heads/master | 2020-12-02T08:03:47.512139 | 2017-07-26T11:35:47 | 2017-07-26T11:35:47 | 96,765,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | """locallibrary 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')
Cla... | [
"anze.vavken@gmail.com"
] | anze.vavken@gmail.com |
ec9ffd5e995cb40137065906f934835f827f4be9 | f872d699e265b97334585d3282b554b739a5d52a | /scripts/config.py | a0b420cfb6ed8a357b5598b55c2e37754b527d64 | [] | no_license | lucmski/twitter-bias | b58db959d8a744d5d5cf29f534e137ae44515374 | fb532225577104842e842c8a0d879e3f4ff1ac60 | refs/heads/master | 2020-08-02T10:12:18.608414 | 2019-02-08T15:32:23 | 2019-02-08T15:32:23 | 211,313,693 | 0 | 1 | null | 2019-09-27T12:24:25 | 2019-09-27T12:24:24 | null | UTF-8 | Python | false | false | 44 | py | import logging
DEBUG_LEVEL = logging.DEBUG
| [
"dimitar.g.nikolov@gmail.com"
] | dimitar.g.nikolov@gmail.com |
e53bee84de0b19c27956646ed221e41449d3e3ae | 0818a9020adc6e25b86060a8e84171d0b4958625 | /tensorflow-piece/file_gene_scripts.py | 840928b309ae60acdab8f757ab590e178999874f | [] | no_license | wgwangang/mycodes | 2107becb6c457ed88b46426974a8f1fa07ed37dd | 9fa48ca071eacf480034d1f69d3c05171d8a97d2 | refs/heads/master | 2020-03-28T07:58:45.017910 | 2018-03-14T07:21:14 | 2018-03-14T07:21:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | import os
def generate_train_test_txt(data_root_dir, save_dir, rate=.1):
train_txt_file_path = os.path.join(save_dir, "train.txt")
test_txt_file_path = os.path.join(save_dir, "test.txt")
dirs = os.listdir(data_root_dir)
train_txt_file = open(train_txt_file_path, mode="w")
test_txt_file = open(test... | [
"yinpenghhz@hotmail.com"
] | yinpenghhz@hotmail.com |
de9c0d5c8d44173edde465cf18aae567c868b2f3 | 383f3120bcdf144a165fedb3d1da5532764e5ce5 | /blogsite/posts/picture_handler.py | 53ecda99f49585c580192f3123764506411dade2 | [] | no_license | dszemenkar/FlaskBlogSite | f5d01315b78321a9a3320d0b59a67ab979132772 | 444e8703d9abd0297c7bec1352c9b0e09478a37e | refs/heads/main | 2022-12-28T05:37:30.068460 | 2020-10-15T18:54:30 | 2020-10-15T18:54:30 | 303,711,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import os
from PIL import Image
from flask import url_for, current_app
from datetime import datetime
import uuid
def add_pic(pic_upload):
filename = pic_upload.filename
ext_type = filename.split('.')[-1]
storage_filename = str(uuid.uuid4()) + '.' + ext_type
filepath = os.path.join(current_app.root_path, 'static\p... | [
"dszemenkar@icloud.com"
] | dszemenkar@icloud.com |
549f5ec4547076e1de19b3e1f4cc1e5533c21a77 | fc2b284121a2af6ad6c0e06be1408460d812cce7 | /mid-phase1-text-modality-NetScale/src/corpus_pb2.py | 3a629d2f8b3da47e91a63f8f3918976b168e4b7b | [] | no_license | guangyaai/DARPA | 241c86ab870c78c89762b3666a0675b547d280e5 | 1e4a4df2625ee597f51ffac74bd4bda25eac64ea | refs/heads/master | 2021-05-15T11:38:55.467264 | 2011-01-22T18:43:43 | 2011-01-22T18:43:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 5,456 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
from google.protobuf import descriptor
from google.protobuf import message
from google.protobuf import reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
DESCRIPTOR = descriptor.FileDescriptor(
name='corpus.proto',
... | [
"antoine@Guadalupe.local"
] | antoine@Guadalupe.local |
b7f663857c370f9ee31f5ad87322c0b1a50a2f52 | d91bcfa0b2bb649249eb45fbdd9a610dbc502a49 | /수학 2/1002.py | a50799e5807d45027b812e40f04fee2620e495ba | [] | no_license | therealjamesjung/BaekjoonCodes | ea491ada7d10c96b5f1d7705f3a3dff748c5709e | 1f917ad17a292c2e3c84c44bb71eff4140c0ee4c | refs/heads/master | 2023-06-04T17:00:14.581985 | 2021-06-27T07:50:56 | 2021-06-27T07:50:56 | 300,835,761 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | from sys import stdin
n = int(stdin.readline())
for _ in range(n):
a = [int(x) for x in stdin.readline().rstrip().split(' ')]
d = ((a[3]-a[0])*(a[3]-a[0])+(a[4]-a[1])*(a[4]-a[1]))**0.5
if a[2] == a[5]:
if d == 0:
print('-1')
elif d > a[2]+a[5]:
print('0')
... | [
"jamesj0107@naver.com"
] | jamesj0107@naver.com |
b9b5bf18d0d448d79df775612248fc39807f8634 | 0c5ddfa671c76ca4e729e73f7c6f49c6d4692bea | /Aufgaben/Aufgabe2.py | 1989ddd8e84f37d68030063f4e67f62a7b1b76ab | [] | no_license | sianweid/Python_101 | 5eafb4583de4792bed84b9182afee27960606bc2 | ccb669be2b506fb1014f3b6b4c924b5c1af6c93f | refs/heads/master | 2021-05-08T12:50:27.665306 | 2018-02-19T15:07:03 | 2018-02-19T15:07:03 | 119,978,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | # Aufgabe 2
# Anlegen eines Dictionarys, was für mehrere Personen
# welches für meherere Personen die jeweiligen Vertiefungsgebiete
# und Noten in einem gemeinsamen Dictionary abspeichert Danach wird dann
# über das Dict iteriert und die einzelnen Werte jeder Person ausgegeben
#
# Zusatzaufgabe:
# Gebe die Personen au... | [
"AWeidemann@kkt.local"
] | AWeidemann@kkt.local |
cce89833386fabadf31ab143b688908baf52c4a9 | a6e09296f295550c91188d4bd5ce8cd4a6818996 | /Week_02/70.climbing-stairs.py | 908f3f94fe9ea776489618b954359a37ee85007b | [] | no_license | LuciusK/algorithm011-class02 | f95a6dc60cb7f3c15ee080972543f24a98785c6c | 85e49a3da24a090359fff76874a5ff0a496b9fc6 | refs/heads/master | 2022-12-04T11:46:03.041515 | 2020-08-23T11:43:35 | 2020-08-23T11:43:35 | 273,902,864 | 0 | 0 | null | 2020-06-21T12:47:59 | 2020-06-21T12:47:59 | null | UTF-8 | Python | false | false | 638 | py | #
# @lc app=leetcode id=70 lang=python3
#
# [70] Climbing Stairs
#
# @lc code=start
class Solution:
def climbStairs36ms(self, n: int) -> int:
a, b = 1, 1
for i in range(n):
a, b = b, a+b
return a
def climbStairs36ms(self, n: int) -> int:
dp = {}
dp[1] = ... | [
"Luciusprivate@163.com"
] | Luciusprivate@163.com |
e22a296ee2de022b49c29bb4b3b1da69397abb47 | 19ad8f42a7e5289baac8960e963c00ee0200a2e4 | /kway_merge/kway_merge03.py | 216933d012f927e998ae930caab04e4bbe1bcb75 | [] | no_license | ak-b/Problem-Solving | 3efe6d09589171444e6bc9912bb0dd525736b892 | 6d2e8fdcf3eaae92686be1fd475cbe653094f76a | refs/heads/master | 2022-12-27T15:45:50.437364 | 2020-10-13T11:41:04 | 2020-10-13T11:41:04 | 298,848,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,175 | py | '''
Given an N * NN∗N matrix where each row and column is sorted in ascending order, find the Kth smallest element in the matrix.
Example 1:
Input: Matrix=[
[2, 6, 8],
[3, 7, 10],
[5, 8, 11]
],
K=5
Output: 7
Explanation: The 5th smallest number in the matrix is 7.
Time complexity #
The Binary Searc... | [
"noreply@github.com"
] | ak-b.noreply@github.com |
2e8c21c823860a3fca29915b83fe92de8772a83a | 3875054f001883505016b0afe17dbf5bde5922dd | /Python/CodeKAL sevgisi.py | bc250be25791d99fe025422f9ca48f19e7e2d8dd | [] | no_license | KaanSema/HacktoberFest2018 | 519b391db61fb3020f4bb4e2455b0f616202ea15 | 3918a55d56759d653b47fa3ad7992546ea041ba0 | refs/heads/master | 2020-08-26T12:55:45.209463 | 2019-10-23T15:49:39 | 2019-10-23T15:49:39 | 217,017,030 | 0 | 0 | null | 2019-10-23T15:49:40 | 2019-10-23T09:17:33 | Java | UTF-8 | Python | false | false | 592 | py |
#Aşağıdaki komutlar CodeKAL'ı çok seviyorum ve CodeKAL'ın bir parçası olmaktan çok mutluyum! çıktılarını vermektedir.
print("CodeKAL'ı çok seviyorum")
print("CodeKAL'ın bir parçası olmaktan çok mutluyum!")
#GÖREV: Yukarıdaki komutların benzerin kullanarak İngilizce çıktılarını veriniz.
print("I love CODEKAL")
print(... | [
"noreply@github.com"
] | KaanSema.noreply@github.com |
f82263b8d652c912b1df45704b5f390611d3dfd2 | 3b60e6f4bbc011003ac4929f01eb7409918deb79 | /Analysis_v1/PlotterVariants/MultiSets/plotsHelper.py | ffa6f171c59e9cad382935e878e872b6eb9872c4 | [] | no_license | uzzielperez/Analyses | d1a64a4e8730325c94e2bc8461544837be8a179d | 1d66fa94763d7847011ea551ee872936c4c401be | refs/heads/master | 2023-02-09T04:54:01.854209 | 2020-09-07T14:57:54 | 2020-09-07T14:57:54 | 120,850,137 | 0 | 0 | null | 2020-06-17T16:48:16 | 2018-02-09T03:14:04 | C++ | UTF-8 | Python | false | false | 8,671 | py | import ROOT
from ROOT import TMath, TClass,TKey, TIter,TCanvas, TPad, TFile, TPaveText, TColor, TGaxis, TH1F, TPad, TH1D, TLegend
from ROOT import kBlack, kBlue, kRed
from ROOT import gBenchmark, gStyle, gROOT, gDirectory
import re
import sys
CMSlumiPath = '/uscms_data/d3/cuperez/CMSSW_8_0_25/src/scripts/pyroot'
sys.p... | [
"uzzie.perez@cern.ch"
] | uzzie.perez@cern.ch |
b96389bd34c8b1baf572726c69d3d76cd0a5fd79 | ad37c94a44c245236bbf2a49723fc5175f487b74 | /input_challenge.py | 4916e0d63975653a9dc4407e20d78d4fb003885d | [] | no_license | cybertrop/algorithim_problems | 90b7f9b0777649e1fccdeaabc8aa98db5743786c | c4b5f24d6d8317f1de159a2a635ef1c3b0e15ef0 | refs/heads/master | 2020-12-09T03:05:43.258104 | 2020-01-11T04:02:40 | 2020-01-11T04:02:40 | 233,172,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | #!/bin/python3
# input_challenge.py
# Level: Easy
"""
Functions are a great way to organize your code for reuse and clarity. Write a script that does the following:
Prompts the user for a message to echo.
Prompts the user for the number of times to repeat the message. If no response is given, then the count should de... | [
"noreply@github.com"
] | cybertrop.noreply@github.com |
8c51203893b90003bc0ed51b5c67d81122f5c426 | ec9894dc63d417bfc94d2e032add1d58383c2b09 | /ReverseOnlyLetters.py | a6fa18a981c7f550dc9150ff293343058f38b886 | [] | no_license | vaidehinaik/PracticeSession | c9fa30d2d52dd8a96c0e3150343fa5f09d887605 | 4308fd7b0510f87197905bf30951512e61dbd3a9 | refs/heads/master | 2022-11-26T06:03:04.060379 | 2020-07-24T03:28:00 | 2020-07-24T03:28:00 | 155,669,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | def reverseOnlyLetters(s):
left = 0
right = len(s)-1
str_list = list(s)
while right >= left:
if str_list[left].isalpha() and str_list[right].isalpha():
str_list[left], str_list[right] = str_list[right],str_list[left]
left += 1
right -= 1
else:
... | [
"naikvaidehi10@gmail.com"
] | naikvaidehi10@gmail.com |
fd9d6534798b17233ee53b6687da101d96fcd8d4 | f19f0d83580b7c94c987096adfd4348b829083b6 | /Chapter 10 - Scripts and Streams/FunctionsCalledbythe ParseDispatcher.py | 0838f0dbf243575131ee2906d88239bd4d2a0142 | [] | no_license | Graham84/DiveIntoPython | 71efd6084ac9943393cafdb8c5c0cde4faefedeb | 2028f3203009db8e77bfc73413d0e9ba1aca4c98 | refs/heads/master | 2021-01-11T09:31:44.642309 | 2017-08-13T17:21:00 | 2017-08-13T17:21:00 | 77,475,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | def parse_Document(self, node):
"""parse the document node
The document node by itself isn't interesting (to us), but
its only child, node.documentElement, is: it's the root node
of the grammar.
"""
self.parse(node.documentElement)
def parse_Text(self, node):
"""parse a text node
The t... | [
"gosiochain@rocketmail.com"
] | gosiochain@rocketmail.com |
9c317f3aa68d6126ee6f384927951648d381415c | 4a3fecb4475aa98b7041dbf06b704ba754d5a10c | /Other/ML/outlier_removal_regression.py | ea4f157738474fa482cf34a8dc7cee9c796e4470 | [] | no_license | mnshr/Udacity-DA | dd48288ddc08f8b294b1c99514a279afb74fab6c | 0188eefc87f077d134c61f3e955b5c0a21c98046 | refs/heads/master | 2020-07-19T13:45:52.555105 | 2017-08-26T17:29:42 | 2017-08-26T17:29:42 | 73,763,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,828 | py | #!/usr/bin/python
import random
import numpy
import matplotlib.pyplot as plt
import pickle
sys.path.append("../tools/ud120-projects-master/outliers")
from outlier_cleaner import outlierCleaner
### load up some practice data with outliers in it
ages = pickle.load( open("../tools/ud120-projects-master/outliers/practic... | [
"mhira@alumni.nd.edu"
] | mhira@alumni.nd.edu |
d445ca074bdd993d41431255ce10ca78b4f89431 | 3093be607260f3d896d877c22cb2ca3cfa259eb2 | /default/migrations/0001_initial.py | 22530739d2a30b22c42a8e6abb0f43067d0f821b | [] | no_license | Sherry921101/11 | b031aad100281c7428d3940c3b7125688f2a6758 | b2bccd5f111bf40a8eb6a2a6599eff1a6565c657 | refs/heads/master | 2020-09-05T16:04:42.203174 | 2019-11-21T03:38:31 | 2019-11-21T03:38:31 | 220,151,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | # Generated by Django 2.2.5 on 2019-10-17 03:09
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Option',
fields=[
('id', models.AutoField(a... | [
"shakehani1101@gmail.com"
] | shakehani1101@gmail.com |
22aedbb32bc054da94ca47790f1c3028b865a0b4 | 06632d50b4c1c944f8cefe994a69604eb61e3b9a | /Clasification-VGG16/convert2tflite.py | f9f41a8100106d5a2b9b8de8d67c1d06d010c775 | [
"MIT"
] | permissive | manhcuongUET/Graduation_Thesis_UET | e83c2e7deb546779b46c9d580e62199c15b5a320 | f89c67e6df03206446398445a7e0612ea5eac8d1 | refs/heads/master | 2023-08-11T06:03:05.589953 | 2021-09-18T13:52:30 | 2021-09-18T13:52:30 | 363,417,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py | # tf 1x | convert .h5 to .tflite
import os
import tensorflow as tf
import keras
from keras import Model
from keras import backend as K
from keras.models import load_model
from keras.layers import Input
import argparse
# from tensorflow.contrib.lite.python import lite
from tensorflow.lite.python import lite
import sys
i... | [
"manhcuong.qn1998@gmail.com"
] | manhcuong.qn1998@gmail.com |
3c5cc506c2a0ff20dc0225b9800e322305ec1edd | 207ff4008f3728df619afab7d114f43e7c8f62cb | /assignment.py | 2225140412fa5c71ca0a968463532332f47db4d5 | [] | no_license | ya1995/python-ch2.1 | 9a5608a4e13b03c05a53455348075622e7c6676e | aa049e6681b822c43cca3fea0ccb00ea33ecda44 | refs/heads/master | 2021-07-06T22:11:42.559141 | 2017-09-27T06:20:37 | 2017-09-27T06:20:37 | 104,979,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | # 치환문의 예
a = 1
b = a + 1
print(a, b, sep=',')
e = 3; f = 5 + 2
print(e, f)
# 여러 변수를 한번에 치환
e, f = 3, 7
print(e, f)
# 하나의 값을 여러 변수에 대입하기
x = y = z = 1
# 값 교환(swap)
f, e = e, f
print(e, f)
# 동적 타이핑
a = 1
print(type(a))
a = 'hello'
print(type(a))
a = 1.3
print(type(a))
| [
"ya1995@naver.com"
] | ya1995@naver.com |
8fe76f727f44429df1fc0876ce238e15960bc6ec | 549d11c89ce5a361de51f1e1c862a69880079e3c | /python高级语法/线程/都任务版的UDP聊天器.py | 9d751967f4b2eaba2e1846ea3f723ae9a52eca1e | [] | no_license | BaldSuperman/workspace | f304845164b813b2088d565fe067d5cb1b7cc120 | 4835757937b700963fdbb37f75a5e6b09db97535 | refs/heads/master | 2020-08-01T15:32:02.593251 | 2019-09-26T08:04:50 | 2019-09-26T08:04:50 | 211,034,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py |
import socket
import threading
def recv_msg( udp_socket):
while True:
recv_data = udp_socket.recvfrom(1024)
print("收到的数据:{0}".format(recv_data))
def send_msg(udp_socket, dest_port,dest_ip):
'''发送数据'''
while True :
send_data = input("输入发送的数据: ")
udp_socket.sendto(send_data.en... | [
"you@example.com"
] | you@example.com |
7d9b7d907b14ea48efeac482e83974c1cc4f1f34 | b45e2a60105a93bc26c7dfe0e4a98e60a1e769d7 | /bluetoothcube/cubestate.py | 16c671a32e24be4c99e0ae2f1ae090fcf2f1f514 | [] | no_license | freichmann/bluetoothcube | 1466639ca84e8fbd45721eefdd3d757a0905bd99 | 697dad229f73efd89d5ee098e5d8450027adc10b | refs/heads/master | 2022-12-12T21:06:15.836521 | 2022-09-19T09:42:24 | 2022-09-19T09:42:24 | 231,598,928 | 0 | 1 | null | 2020-01-25T17:44:08 | 2020-01-03T13:55:00 | Python | UTF-8 | Python | false | false | 9,241 | py | import kociemba.pykociemba as kociemba
from kociemba.pykociemba.cubiecube import CubieCube as KCubieCube
from kociemba.pykociemba.facecube import FaceCube as KFaceCube
from typing import List
# CPP permutation transforms corners from giiker coords to kociemba
# coords. ICPP is the inverse permutation
# 0 1 2 ... | [
"rafalcieslak256@gmail.com"
] | rafalcieslak256@gmail.com |
1f5d452aef3283c3466eefd3c6411de3a4447630 | 0a848b5b2ea31a7e2e997f27b13f363530df78d1 | /backend/cart/migrations/0007_alter_order_data_ordered.py | 0329b1641f05f8fae43f941bde7ea8d8a5910f67 | [] | no_license | PhanVanThanh-hub/React-Django-Ecommerce | a88e4c0747a9a3d6179d45c60641595221fe701c | 00946075486495676595fe0a17dcdd0799756d4b | refs/heads/main | 2023-08-13T19:24:40.492000 | 2021-09-30T13:05:03 | 2021-09-30T13:05:03 | 412,066,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # Generated by Django 3.2.6 on 2021-09-28 10:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cart', '0006_alter_orderitem_product'),
]
operations = [
migrations.AlterField(
model_name='order',
na... | [
"thanhphan1230@gmail.com"
] | thanhphan1230@gmail.com |
626a61c25b99c323691284554d59aab98cfe62f8 | fe3e371b1fb4f914cfab21e989ae1bf888edbcea | /split_brain_segmentation.py | ecb31bfd34530cd8899eaaf34ad02e637462ae78 | [] | no_license | austinbrot/stroke-segmentation | 5affa8921910aec52e6b167b72cd26ca73f4c66a | c701de1077c198766f0eff014a1391c439490f60 | refs/heads/main | 2023-05-08T09:33:32.340775 | 2021-06-04T05:49:24 | 2021-06-04T05:49:24 | 365,409,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | import os
import random
import shutil
def main():
print("splitting images...")
cases = [case for case in sorted(filter(lambda f: not '.' in f, os.listdir('./kaggle_3m')))]
total_case_num = len(cases)
test_patients = random.sample(cases, total_case_num // 5)
cases = sorted(set(cases).difference(tes... | [
"abrotman@stanford.edu"
] | abrotman@stanford.edu |
8e0277e0fae0c9499d3837975223b854aed5431e | 6ba406a7c13d5c76934e36494c32c927bbda7ae7 | /tests/trails_fhn.py | 8ff814c29523973081000a55dda715750cf1dacf | [
"MIT"
] | permissive | sowmyamanojna/neuronmd | 50e5e4bd9a4340fda73e363133314118ea815360 | 3994d02214c3cc4996261324cfe9238e34e29f1c | refs/heads/main | 2023-07-09T01:31:32.597268 | 2021-08-23T14:33:38 | 2021-08-23T14:33:38 | 398,491,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | import numpy as np
import matplotlib.pyplot as plt
from fitzhugh_nagumo import FHNNeuron
neuron = FHNNeuron()
tmax = 100
dt = 0.01
I = 1.75
t = np.arange(0, tmax, dt)
neuron.simulate(0.6, 0, t, 0.6)
neuron.plot(name="0.1")
current_list = np.arange(0.01, I, 0.01)
neuron.animate(t, current_list, ylim=[-0.45,1.5]) | [
"sowmyamanojna@gmail.com"
] | sowmyamanojna@gmail.com |
0331da346ca610d13ec4bc51a89489aaae08e03d | cc924ae1a4f91bf0d7d13ce24f330a0252630bf5 | /django_blog/urls.py | 83bbd3ca377e96ec74f45681cfab7e38af24ab09 | [] | no_license | YYJWS/django_blog | aa91fa4e0377bca7e4c118ed8c824eab781c6c29 | cf1c41245382a477ce61642c191834533bcb2a9c | refs/heads/master | 2020-06-15T07:46:09.764649 | 2019-07-04T12:48:33 | 2019-07-04T12:48:33 | 195,240,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | """django_blog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"1021559579@qq.com"
] | 1021559579@qq.com |
c8d1758af356437a022a225635cdbc18f7b7b340 | 796fd89f3e089b9e92051b06eb065e5e553ad945 | /sstkdj/soundscapes/migrations/0004_auto_20191105_0122.py | 3385b9c5702556a602d76af522fd01a16709dc57 | [
"BSD-3-Clause"
] | permissive | kitefishlabs/sstkdj | 482c2a075b611195308a4c027c6e993f02695f1f | dc51a644dd6d41ea212dedd53e277e526581c7a7 | refs/heads/master | 2022-12-13T09:47:09.067847 | 2019-11-08T20:48:58 | 2019-11-08T20:48:58 | 218,901,892 | 0 | 0 | BSD-3-Clause | 2022-12-08T06:54:04 | 2019-11-01T02:54:18 | JavaScript | UTF-8 | Python | false | false | 424 | py | # Generated by Django 2.2.6 on 2019-11-05 01:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('soundscapes', '0003_auto_20191104_2209'),
]
operations = [
migrations.AlterField(
model_name='regioncircle',
name='s... | [
"tom@kitefishlabs.com"
] | tom@kitefishlabs.com |
04965c8e4576a5f2f13a30e9886d33638013ca55 | 80b4fbb6e9fc879a3ab2b26ed5492c51842dfa8c | /venv/Scripts/easy_install-script.py | 4f21cadf7dbdb4213961c58f025b65a4575e16b9 | [] | no_license | yusufibro/RESTORAN | 1618aa71724f766fcb3ca5d135862f765bc961fb | 075b5af8873236a9cccbf167604248511573cb0c | refs/heads/master | 2021-10-19T13:02:53.326263 | 2019-02-21T04:11:52 | 2019-02-21T04:11:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!"D:\Folder Hanan\pemograman\Ka Acep\LearnPy\venv\Scripts\python.exe"
# 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\.p... | [
"45021619+Hanib2404@users.noreply.github.com"
] | 45021619+Hanib2404@users.noreply.github.com |
e690f765dcad9e9e83b0d73e2dbcd4150a468cff | c73e2a90b5b473c2a56617df4a3a1996b095f901 | /code/simulation/simulation.py | c2af8d42206018f61b2cf739eb869c058d704cb9 | [] | no_license | kochlisGit/Autonomous-Vehicles-Adaptive-Cruise-Control | 9661a147f73aaf5f6bcba2c100ac291d2fc22f42 | 10a631916d39550b6f7ffaf6ac7fdd472bc0c1e3 | refs/heads/main | 2023-05-25T03:58:36.306639 | 2023-05-17T11:08:52 | 2023-05-17T11:08:52 | 348,772,469 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 15,790 | py | import carla
from agent.navigation_assistant import NavigationAssistant
from agent.stationary_obstacle_assistant import StationaryObstacleAssistant
from simulation.traffic_manager import TrafficManager
from simulation import image_data_utils
from enum import Enum
from queue import Queue
import numpy as np
impor... | [
"noreply@github.com"
] | kochlisGit.noreply@github.com |
4316ceefc3041be5ac6802bd7078bbb3dd761e9d | 8e4a0c185060fa75d9f8366544e99490f4a92f7b | /bin/debs | 070a8c0b99987008f6868a1dc0df15d9198850bb | [
"MIT"
] | permissive | thatguystone/debs | 9458e90dd84f9fc4ed4bc8a44f1d2fd8a057bbc2 | 998ec1a661b0b993fcfba8cdd1fc4c3999b4b12f | refs/heads/master | 2021-01-18T22:58:25.572666 | 2016-04-21T21:19:56 | 2016-04-21T21:19:56 | 27,620,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,780 | #!/usr/bin/env python3
import argparse
import logging
from debs import Debs, sbuild
parser = argparse.ArgumentParser(
prog='debs',
description='Build a Debian package and dput it')
parser.add_argument(
'-c', '--config',
action='append', metavar='.debsrc',
default=[],
help='extra config files to load')
parser.... | [
"a@stoney.io"
] | a@stoney.io | |
fcac47f39f0f50e44e9bbf0c424fd5aa4ad21c60 | 6bb216dbc3e4aafe52de5ca2e7a16e2770fe70e7 | /pgnlp/preprocessing.py | b3a9dc712119ecef7332581a64c347819bd3d559 | [
"MIT"
] | permissive | porfyriosg/pgnlp | c53880cc96364ad46e058c3cc90e664fe343f947 | d43b104f16dd8ca1fa7a988bcd0ba6f6183f3a4c | refs/heads/main | 2023-03-15T06:57:16.885462 | 2021-03-26T18:35:13 | 2021-03-26T18:35:13 | 305,053,376 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,653 | py | from string import ascii_lowercase
from .utils import *
_TEMPLATE_ = [
'remove_urls',
'remove_user_mentions',
'remove_hashtags',
'remove_dates',
'remove_punctuations']
class Cleaner(object):
def __init__(self):
pass
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def remove_numb... | [
"porfysgiannak@gmail.com"
] | porfysgiannak@gmail.com |
b05b868978ede5d1ef9da82910c4a16062dbb60d | 9322daa63a9b1af6718cb123d6b57b5820d58638 | /apps/users/models.py | e977a1e2b04a2cc2c799a679ea6f2fda210a1c3c | [] | no_license | xiaotang999/mogewebapi | 65073d2fe4440ef4f1d293ca67603e0e92b275ca | 364d2e24b7cb901574da25f484cd7e6c3cfae17d | refs/heads/master | 2020-04-08T18:38:50.500939 | 2018-12-02T08:45:52 | 2018-12-02T08:45:52 | 159,616,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,044 | py | from datetime import datetime
from django.db import models
from django.contrib.auth.models import AbstractUser
from imagekit.models import ProcessedImageField
# Create your models here.
class UserGroup(models.Model):
"""会员组别-发言数等"""
name = models.CharField(max_length=250, verbose_name="会员组名", help_text="请输入小... | [
"x.tang999@gmail.com"
] | x.tang999@gmail.com |
b492928a21e4d235842e0aff5d1a15c0326a95ab | 58ca72a2cbc064da39cf521a277bae40e470052e | /scienceconfig.py | 4f5f2838f9625b1ac1532dfc556f7a95cb11e19b | [] | no_license | nibalizer/sciencebot | fa7abfbb468263a617a55a43181186e58b6f9d91 | 297f50323d2f1aa97ec81a4c14616f95be22e8bc | refs/heads/master | 2021-01-22T09:04:21.764245 | 2013-10-07T22:32:19 | 2013-10-07T22:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | ganetihost = "derp.science.com"
channelkey = "science"
userpassword = "science"
nickname = "science"
| [
"skrum@go2uti.com"
] | skrum@go2uti.com |
49dc0c50b62c098c567a668bb2f7b81a2df1ab38 | 2b37caf3a8f0ce1d97371cbbb9ecdf244398d313 | /seeds.py | 88ea552e115d2df56080014a4d5ad27edf10d98d | [] | no_license | Shefaaa/catalogapp | a9d8a61fcbc955a89a8128a57411c9c44d0b8749 | 78dabd7770140fa77f29b4ba654f2e28e1a9068b | refs/heads/master | 2020-04-19T20:45:49.448084 | 2019-01-30T22:17:48 | 2019-01-30T22:17:48 | 168,423,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,803 | py | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import Category, Base, CategoryItem, User
engine = create_engine('sqlite:///bookcatalog.db')
# Bind the engine to the metadata of the Base class so that the
# declaratives can be accessed through a DBSession instance
Base... | [
"shefa@zadfresh.com"
] | shefa@zadfresh.com |
322568b8c8c8425b9b2ded467e4fa83ac290e143 | 9822c3f76a86dd4896917c9096a3e048d4c27250 | /MDPGridworld.py | 3cf7b2f962e72c18d19d0970f39daffd7d26888c | [] | no_license | Guardian99/MDPGridworld | 71d5ad7b4775d126abb1c6b9b7c82ecd723e98ff | 946a69aa1f1916e600c3957d88ceac095e99d00f | refs/heads/master | 2020-04-26T05:05:36.051537 | 2019-02-28T17:03:54 | 2019-02-28T17:03:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,742 | py | """Markov Decision Processes (Chapter 17)
First we define an MDP, and the special case of a GridMDP, in which
states are laid out in a 2-dimensional grid. We also represent a policy
as a dictionary of {state: action} pairs, and a Utility function as a
dictionary of {state: number} pairs. We then define the value_iterat... | [
"noreply@github.com"
] | Guardian99.noreply@github.com |
2b2ae4e3e90b1b98750f66a053a03514118123d6 | e88f2f590e9b58c294ea34f9277748b6bbabeac7 | /sandbox/finetuning/algos/concurrent_continuous_ppo.py | d4cd314bd47d95820381415300f80a6c264fbc93 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | jesbu1/rllab-finetuning | 4aade730f0401f46675e5a7588ca59968272a41d | ccfbc9a612dc9c85238183209814e98666825d01 | refs/heads/master | 2022-12-04T10:42:37.442485 | 2020-08-18T00:07:39 | 2020-08-18T00:07:39 | 282,724,263 | 0 | 0 | null | 2020-07-26T20:03:48 | 2020-07-26T20:03:48 | null | UTF-8 | Python | false | false | 10,264 | py | import theano
import theano.tensor as TT
from rllab.misc import ext
import numpy as np
import copy
import rllab.misc.logger as logger
from rllab.spaces.box import Box
from rllab.envs.env_spec import EnvSpec
from sandbox.finetuning.policies.concurrent_hier_policy2 import HierarchicalPolicy
from sandbox.finetuning.algos.... | [
"alexlioralexli@gmail.com"
] | alexlioralexli@gmail.com |
354d76816e1121db9533afe8a887efb984deb008 | d21ffe5e0da071a81a28c77ed8595b050ffb9181 | /old_boy/网络基础/Manager模块/简单实用.py | 62d32ddc5f03d42db996423e8c0a3e15ab1e5d0c | [] | no_license | QingqinLi/hm | 00f788e7efcee0a1970c7c9ade0a07e4d05ac8b4 | 691404dc5fc5530c3a7c44c902924dbef146e85e | refs/heads/master | 2020-06-03T22:55:30.890333 | 2020-05-09T02:29:59 | 2020-05-09T02:29:59 | 191,765,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from multiprocessing import Process, Manager
def func(num):
num[0] += 10
if __name__ == '__main__':
m = Manager()
num = m.list([1, 2, 3])
p = Process(target=func, args=(num,))
p.start()
p.join()
print('ss', num) | [
""
] | |
ec7ad13f52ea24a4fa93a76fa135119d1c90b601 | 735330e81cfdbe6a443dce2a00e7cdc1a1cb4c13 | /resources/template_api.py | 12ab3fdcecc2dd40258b581ca9a0ebff655cba5e | [] | no_license | cielfe/shopify-developer-intern-challenge | c748360e3336234492e6de1e0aea4351c3367499 | cf0f67452805cf8a56b523d0c4e5cedfb78805fe | refs/heads/main | 2023-04-18T17:46:49.608870 | 2021-05-07T04:26:44 | 2021-05-07T04:26:44 | 364,087,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,097 | py | from flask import Response,request
from flask_restful import Resource
from flask_jwt_extended import jwt_required, current_user,get_jwt_identity,get_jwt_claims
from flask_jwt_extended.exceptions import NoAuthorizationError
from bson.objectid import ObjectId
from bson.json_util import dumps
import json
from backend imp... | [
"43140030+cielfe@users.noreply.github.com"
] | 43140030+cielfe@users.noreply.github.com |
f2c68ec335f6a55681c06b381e461d9c65326cee | a316a0018bd1cb42c477423916669ed32e2c5d7c | /homie/node/property/property_boolean.py | 49d8eb14cd18735035fe6c9f1f25173d63f9b69c | [
"MIT"
] | permissive | mjcumming/HomieV3 | a8b60ee9119059d546b69b31280cf15a7978e6fc | 62278ec6e5f72071b2aaebe8e9f66b2071774ef7 | refs/heads/master | 2020-04-28T06:49:22.193682 | 2020-04-04T12:36:08 | 2020-04-04T12:36:08 | 175,072,550 | 5 | 7 | MIT | 2020-01-15T03:41:38 | 2019-03-11T19:44:17 | Python | UTF-8 | Python | false | false | 624 | py | from .property_base import Property_Base
class Property_Boolean(Property_Base):
def __init__(self, node, id, name, settable=True, retained=True, qos=1, unit=None, data_type='boolean', data_format=None, value=None, set_value=None):
super().__init__(node,id,name,settable,retained,qos,unit,'boolean',data_for... | [
"mike@4831.com"
] | mike@4831.com |
e5f869825fd74f9b1ff1e765f4a7bbabdb9c251e | f11b3339564491e57e7f9d8778f435c2556b9d32 | /proxypool/crawlers/free_proxy_website/proxygather_post_32192.py | ae2eff96cdb5be93af30b4f507a8372c232325bc | [
"MIT"
] | permissive | 584807419/FreeProxyPool | 261742f3be76207800343265df230800713507d4 | 6cb4b9b8c7f3d5114106119a70526dd5cf685672 | refs/heads/master | 2023-08-17T06:23:08.516177 | 2023-08-15T01:44:36 | 2023-08-15T01:44:36 | 255,309,818 | 0 | 0 | MIT | 2023-08-15T01:44:37 | 2020-04-13T11:42:39 | Python | UTF-8 | Python | false | false | 746 | py | from lxml import html
from proxypool.schemas.proxy import Proxy
from proxypool.crawlers.base import BaseCrawler
BASE_URL = 'http://proxygather.com/zh/proxylist/port/32192'
class Proxygather32192Crawler(BaseCrawler):
urls = [BASE_URL]
data = {
'Filter': '',
'Uptime': '50',
'Port': '321... | [
"zk199245"
] | zk199245 |
ab62551d9f78f228b0c94030aeaef5437aa659df | 38d5a0bbcf0303470361d9ebd2fc29221010578c | /anaconda_project/internal/cli/test/test_prepare.py | 1fdf02575d4d1c7c5260edbc6cd1159386e02d17 | [] | no_license | Kamalkapri/anaconda-project | 402e5fd4906a18c4356b0f1b89536faa149dd4c2 | 33b7fc0cd1fdbe4dc3a9164da14a819b86be842b | refs/heads/master | 2021-01-20T03:46:04.828322 | 2017-08-15T15:53:50 | 2017-08-15T15:53:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,135 | py | # -*- coding: utf-8 -*-
# ----------------------------------------------------------------------------
# Copyright © 2016, Continuum Analytics, Inc. All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
# -------------------------------------------------------------------... | [
"hp@pobox.com"
] | hp@pobox.com |
6ee0b28d5d47fef3766ee9a9567b845b290892dd | 3298ad5f82b30e855637e9351fe908665e5a681e | /Regression/Polynomial Regression/polynomial_regression.py | 07f16298a93575a5156ff3fe4ef8b1102a78ad42 | [] | no_license | Pratyaksh7/Machine-learning | 8ab5281aecd059405a86df4a3ade7bcb308f8120 | 74b7b045f17fe52bd02e99c0e25b8e0b4ac3f3a6 | refs/heads/master | 2022-12-21T14:05:28.882803 | 2020-09-28T17:03:55 | 2020-09-28T17:03:55 | 292,274,874 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
dataset = pd.read_csv('Position_Salaries.csv')
X = dataset.iloc[: , 1:-1].values
y = dataset.iloc[: , -1].values
# training the linear regression model on the whole dataset
from sklearn.linear_model import LinearRegression
lin_reg = LinearRegres... | [
"pratyakshgupta7@gmail.com"
] | pratyakshgupta7@gmail.com |
42214e6d5645084c7de09c43b33b6387b7a798aa | e7b7f906c8d0add038a32eb9c1cfd85219535a82 | /src/pskim/q12930/buildWeirdStr/__init__.py | 158b07f021600e17216f8ccbbd3a32f4bdb8b3cb | [] | no_license | aaplatform/SkillupAlgorithm2018 | 0931c24ccab6e3fbc926ca4a8c81b397229904fd | 2c719e1ba49b378a70ba55dc26f66d56951a3d31 | refs/heads/master | 2020-03-23T09:09:06.033344 | 2018-10-30T04:40:25 | 2018-10-30T04:40:25 | 141,370,399 | 0 | 2 | null | 2018-09-04T05:33:32 | 2018-07-18T02:29:38 | Java | UTF-8 | Python | false | false | 2,748 | py | <<<<<<< HEAD
'''
이상한 문자 만들기
문제 설명
문자열 s는 한 개 이상의 단어로 구성되어 있습니다.
각 단어는 하나 이상의 공백문자로 구분되어 있습니다.
각 단어의 짝수번째 알파벳은 대문자로, 홀수번째 알파벳은 소문자로 바꾼 문자열을 리턴하는 함수, solution을 완성하세요.
제한 사항
문자열 전체의 짝/홀수 인덱스가 아니라, 단어(공백을 기준)별로 짝/홀수 인덱스를 판단해야합니다.
입출력 예
s return
try hello world TrY HeLlO WoRlD
입출력 예 설명
try hello world는 세 단어 try, hello, w... | [
"orgps@lgcns.com"
] | orgps@lgcns.com |
2e58b5e681e8b7471a66e6f07a7fbb090c61578e | 97be14be314276fd5696bce07d150c4857df02d7 | /notebooks/wrangle_small_area_boundaries_2011.py | 4fbfef4302a1f5631d9f08a90f64f0ec05b5cf6b | [
"MIT"
] | permissive | oisindoherty3/dublin-building-stock | 3a5dc8d54f7c65b138de65a7d47efbe12b721c4b | b9c75a23c4a1d3116403df036b6fdc820ba6691a | refs/heads/main | 2023-04-25T20:06:18.463009 | 2021-06-04T15:32:58 | 2021-06-04T15:32:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | from pathlib import Path
from shapely.geometry import Point
import geopandas as gpd
from dublin_building_stock.spatial_operations import get_geometries_within
data_dir = Path("../data")
dublin_boundary = gpd.read_file(data_dir / "dublin_boundary.geojson", driver="GeoJSON")
dublin_routing_key_boundaries = gpd.rea... | [
"noreply@github.com"
] | oisindoherty3.noreply@github.com |
c182c67bf4f12d9aad4952376dbef111719da3ce | e032e442153251d4a87fb4712f07c28a56842161 | /ClientApi/src/api/publication/__init__.py | 4dec645887797f4ee15e5f556777b390e25f250e | [
"MIT"
] | permissive | comtois-etienne/SocialApp | e3cb5c92a3d928f9cc932dc7b440c44ba90ea639 | 4a48c36bc0fc58cfc787768bb39120cc8f040f76 | refs/heads/master | 2023-07-16T17:42:28.529535 | 2021-08-24T17:49:33 | 2021-08-24T17:49:33 | 379,962,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from .routes.publications import PublicationCR, PublicationRUD
__all__ = [
'PublicationCR',
'PublicationRUD',
]
| [
"Maxiimmeb@hotmail.com"
] | Maxiimmeb@hotmail.com |
4b3495a0d31d2147e7d2057a2b2b319c55540db8 | 0c599a59b93646d7b0048643bf97e35f0965b15c | /Task02/sample.py | 35de26fa29bc3d19c14ab61ebc00ba958144f323 | [] | no_license | elnin09/CloudComputingCapstone | eb602dddec6a18b921866cf0ac3d521635126965 | 21a69ea75ce058a7c2225c48c22263f4d3752532 | refs/heads/master | 2023-07-04T00:57:24.303233 | 2021-08-01T14:56:56 | 2021-08-01T14:56:56 | 277,253,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from kafka import KafkaConsumer
consumer = KafkaConsumer('test')
for msg in consumer:
print (msg) | [
"darmora2@illinois.edu"
] | darmora2@illinois.edu |
8892e5df2d6ef1f4ef9a73beed27a51663a2ced4 | b766b301ff55570dcbc0b1488db938828c22aaa0 | /ROS/sender/turtlesim_cleaner/src/ultrasonic.py | a0af0dd3aa3a278b06ac331c9e736432783c5a77 | [
"MIT"
] | permissive | fabriciotorquato/pyxavier | 656a3f0e1d2e3d331df97bb94f24452cc413a6d5 | eed13ad0dd2ac8cdbb7c028b61251690b4564de5 | refs/heads/master | 2023-07-23T17:35:45.227080 | 2023-03-06T17:14:12 | 2023-03-06T17:14:12 | 217,623,772 | 8 | 0 | MIT | 2023-07-22T19:48:54 | 2019-10-25T22:33:22 | Python | UTF-8 | Python | false | false | 2,449 | py | #!/usr/bin/env python
'''
**********************************************************************
* Filename : ultra_sonic_avoidance.py
* Description : An example for sensor car kit to followe light
* Author : Dream
* Brand : SunFounder
* E-mail : service@sunfounder.com
* Website : www.sunfounder.... | [
"fabricio.torquato1@gmail.com"
] | fabricio.torquato1@gmail.com |
92251bdf55717feb1e1cb67567302cf029f6e6c6 | 478de7e23f141c985de28a2b85bb74098f66f1b5 | /parsing1_1.py | 76bdc830e8c261ecf610eda979bef44c693a9746 | [] | no_license | sangmyung-omg/math-parsing-1 | a1bf2db0443b23410e7ace2c2adf8fd06c4c4512 | 6e9aabec63487a14b54bd095e59a03dd8de7a153 | refs/heads/master | 2022-04-20T13:02:14.249801 | 2020-04-23T06:07:23 | 2020-04-23T06:07:23 | 258,103,905 | 0 | 0 | null | 2020-04-23T05:32:07 | 2020-04-23T05:32:06 | null | UTF-8 | Python | false | false | 997 | py | from bs4 import BeautifulSoup
import pandas as pd
import re
uk_data = []
property_data = []
book = open('./풍산자/1-1.xml', 'r',
encoding='utf-8')
xml = book.read()
soup = BeautifulSoup(xml, 'xml')
uks = soup.findAll('_00-개념1.') # 66개
properties = soup.findAll('_00-개념본문') # 200개
for uk, property in zip(uks... | [
"64122530+jiung-park@users.noreply.github.com"
] | 64122530+jiung-park@users.noreply.github.com |
85f3d6bc413c58a8db9942c42d4f486a03fa310f | 7f971628fad92278c39316fbf8ed7c38647abacb | /Project_Euler/E20.py | 38eea3f525e5ad3f76754aa3a55c489bd3e8070c | [] | no_license | jreag1/Examples | 4456180bcb458f79bf0bae9100523da04e530994 | 9871133ab92df54f8c4120a1272830c47c76d560 | refs/heads/master | 2022-12-12T02:11:29.112538 | 2020-08-22T20:27:41 | 2020-08-22T20:27:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | #Find the sum of the digits in the number 100! (factorial).
import math
def answertwenty():
num = str(math.factorial(100))
ans = 0
for x in xrange(0, len(num)):
ans += int(num[x])
return ans
if __name__ == "__main__":
print(answertwenty())
#Returns 648. | [
"noreply@github.com"
] | jreag1.noreply@github.com |
d3f52637036a2703d7d487bb4ff2d42299f0f174 | 46e92d04bcbbfc57987a856a4ade2dd3c5db87b2 | /client-win/client-python-win.py | e3e55e8efa88e74cdec25dc290c9278f1bb4503f | [] | no_license | piaopiao412/python-socket | 86b3bb76a607ae168dc300dbcc7453175583ff45 | b6c8146d3e0859d95ebedc14dbf4cf96857f539c | refs/heads/master | 2023-08-30T07:07:55.727825 | 2021-11-03T08:45:18 | 2021-11-03T08:45:18 | 424,113,042 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | '''
Fuction:客户端发送图片和数据
'''
###客户端client.py
import socket
import os
import sys
import struct
import time
def sock_client_image():
while True:
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('192.168.203.83', 6000)) # 服务器和客户端在不同的系统或不同的主机下时使用的ip和端口,首先要查看服务器所在的系统网... | [
"1482027832@qq.com"
] | 1482027832@qq.com |
07f515eae1a86622a522fa62d427c819d880730d | c8efab9c9f5cc7d6a16d319f839e14b6e5d40c34 | /source/All_Solutions/1116.打印零与奇偶数/1116-打印零与奇偶数.py | 6ba403369346dcd95a2fdfe939a07dc70c003e60 | [
"MIT"
] | permissive | zhangwang0537/LeetCode-Notebook | 73e4a4f2c90738dea4a8b77883b6f2c59e02e9c1 | 1dbd18114ed688ddeaa3ee83181d373dcc1429e5 | refs/heads/master | 2022-11-13T21:08:20.343562 | 2020-04-09T03:11:51 | 2020-04-09T03:11:51 | 277,572,643 | 0 | 0 | MIT | 2020-07-06T14:59:57 | 2020-07-06T14:59:56 | null | UTF-8 | Python | false | false | 1,103 | py | import threading
class ZeroEvenOdd:
def __init__(self, n):
self.n = n+1
self.Zero=threading.Semaphore(1)
self.Even=threading.Semaphore(0)
self.Odd=threading.Semaphore(0)
# printNumber(x) outputs "x", where x is an integer.
def zero(self, printNumber: ... | [
"mzm@mail.dlut.edu.cn"
] | mzm@mail.dlut.edu.cn |
3227d434686ba6da100b085237a0ece6e66c7bab | 8373bf48cc5dbecde94dc3a3be56f4a23ce1d236 | /scripts/Caleb_script.py | 5b220b2aba08d21b98bd12a48d400a3039d295ba | [] | no_license | jenykin24/HNG_storm-task | 20ebdb579cac81a38696f29692d193a6f2270ec0 | 5590b1d55a6da07f4be342a431b76cecfa006240 | refs/heads/development | 2022-10-21T12:19:51.516600 | 2020-06-06T20:11:07 | 2020-06-06T20:11:07 | 269,383,885 | 0 | 0 | null | 2020-06-04T18:44:30 | 2020-06-04T14:37:37 | null | UTF-8 | Python | false | false | 236 | py | firstName = "Caleb"
lastName = "Agbeniga"
hngID = "00380"
email = "agbenigacaleb@gmail.com"
language = "Python"
print(f"Hello World, this is {firstName} {lastName} with HNGi7 ID HNG-{hngID} using {language} for stage 2 task. {email}")
| [
"agbenigacaleb@gmail.com"
] | agbenigacaleb@gmail.com |
079ded3be59ad28e3f6743e307ba309423d27dcd | 87cfb3d137853d91faf4c1c5f6e34a4e4a5206d9 | /src/zojax/cssregistry/tests.py | 41aa3e1e8e541b96a69a0706d39bde5e7b101372 | [
"ZPL-2.1"
] | permissive | Zojax/zojax.cssregistry | cea24579ef73f7ea2cec9c8b95671a5eeec0ce8f | 688f4ecb7556935997bbe4c09713bf57ef7be617 | refs/heads/master | 2021-01-10T21:06:12.664527 | 2011-12-16T07:15:04 | 2011-12-16T07:15:04 | 2,034,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | ##############################################################################
#
# Copyright (c) 2009 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"andrey.fedoseev@gmail.com"
] | andrey.fedoseev@gmail.com |
36178725cfd528afb277287395267df6bd137b18 | b7a4cc8ff6ea5007c809ec547425e355aed195ad | /comments/models.py | f045108899a80b667484ae3fea718b3e4dc99aa8 | [] | no_license | alex028502/django_php_tempates_example | 19f8c59c57f13f4a27485a342b4491483e52db67 | f5254de33cd7248cd16fb410ec48024de2ed89f2 | refs/heads/master | 2021-01-19T03:35:41.358392 | 2017-04-07T09:52:49 | 2017-04-07T11:48:54 | 87,326,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | from django.db import models
class Comment(models.Model):
name = models.CharField(max_length=100, blank=False, default='')
message = models.TextField(blank=False, default='')
| [
"alex@example.com"
] | alex@example.com |
1ce74bdfd6b83262f8c3252109a4656398b08bad | 61d9ff0e56e50a83cd011f690b9e52a8478714b8 | /crack the code interview/stack_with_min.py | 137db73c025942791d0adddba51c108771a7a553 | [] | no_license | LLeung49/PracticeTemp | 3c2758d4a2042bd0f67385ee7349766347d500b6 | f2579ea2e309521bd35c479ee1bd9990d6c9fc42 | refs/heads/master | 2021-01-11T16:27:55.561670 | 2017-07-06T02:54:12 | 2017-07-06T02:54:12 | 80,086,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | import sys
class MinStack:
def __init__(self, stacksize):
self.array = []
self.stacksize = stacksize
self.minvals = []
def Peek(self):
return self.array[-1]
def isEmpty(self):
return len(self.array) == 0
def isFull(self):
return len(self.array) == s... | [
"lucienleung@outlook.com"
] | lucienleung@outlook.com |
0cebc028aeb8507d77236e163b2b178f8f4b50de | 9bb2648b474c267c2926c49866507e5932923501 | /hackerrank/python/caplitalize.py | 2b46c40d2b216dc97a8836e03e5140b5346a99d5 | [] | no_license | lakshay-saini-au8/PY_playground | 0a059092d1e345f9d35a93d2c8049b63fd43a23b | 6f7b5653a2f4c6978580396561f2545b75ece349 | refs/heads/master | 2023-01-04T04:35:03.612906 | 2020-10-28T18:23:03 | 2020-10-28T18:23:03 | 290,396,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | '''
You are asked to ensure that the first and last names of people begin with a capital letter in their passports. For example, alison heck should be capitalised correctly as Alison Heck.
'''
def capitalize(str):
seprate = str.split(" ")
for index, word in enumerate(seprate):
if (word != ''):
... | [
"lakshaysaini2013@gmail.com"
] | lakshaysaini2013@gmail.com |
dc5d024dfa7b79ba713eccd309e6af4905daedda | cb4b2b4a1c6cc62a6ae0636420c960f953c81db7 | /tasks/urls.py | eede7cb7756968ceb1322285c6002ce7e458b2d5 | [] | no_license | CeejayPrime/django-todo | eea2ff12ea9ea45c156a7a50f8764bee4a4462d0 | c0d48aa89b2aa258d56da9904d8b2e993454a869 | refs/heads/main | 2023-03-11T14:11:42.956625 | 2021-03-01T17:22:30 | 2021-03-01T17:22:30 | 337,367,380 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name="index"),
path('register/', views.RegisterPage, name="RegisterPage"),
path('login/', views.LoginPage, name="LoginPage"),
path('logout/', views.LogoutUser, name="LogoutUser"),
path('update_file/<str:pk>/', v... | [
"36557279+CeejayPrime@users.noreply.github.com"
] | 36557279+CeejayPrime@users.noreply.github.com |
af010f0c61a62e06131ebc3f3d03917e2e49567a | e793c9ec93c3447ac250d7aa9295ce7ac5b5424d | /day05/solution.py | 412f30acbe702ede4555cadecd5ac1c277dd9753 | [] | no_license | Aeilko/Advent-of-Code-2020 | e871d216a5016f5644b8df25c35a20c3e9c90740 | 8054bfb3e33a6a9c2a6ab2c6d6c37cdfadf24493 | refs/heads/master | 2023-02-05T06:14:47.537090 | 2020-12-25T05:26:07 | 2020-12-25T05:26:07 | 317,526,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,214 | py | import math
from utils.file import read_file_content
def split(min, max, lower) -> (int, int):
if lower:
return (min, (math.floor( (min + max)/2) ))
else:
return (math.ceil( ((min + max)/2) ), max)
def find_row(inp: str):
min = 0
max = 127
for x in inp:
(... | [
"aeilkobos@hotmail.com"
] | aeilkobos@hotmail.com |
8abc5d24b9f476e450541dccb7825792fb3b8b5f | 01fac8ccc743c9fb4579636741ca4e042a324e06 | /kattis/sibice.py | 03087878378e5ad35c074d6f8bf3ec54281154f8 | [] | no_license | tcooi/solutions | 58082e5beb6b63cb62cc8339fd4fe527e030d76e | 9fdf2784c540fbf75378fbaaf4a34db0b3753d7a | refs/heads/master | 2021-01-21T14:23:13.227632 | 2020-11-05T23:10:20 | 2020-11-05T23:10:20 | 56,982,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from sys import stdin
import math
n, w, h = map(int, stdin.readline().split())
fit = math.sqrt(w**2 + h**2)
for __ in range(0, n):
match = int(stdin.readline())
if match <= fit:
print("DA")
else:
print("NE")
| [
"tjanchao.ooi@gmail.com"
] | tjanchao.ooi@gmail.com |
cfb6646cc34fbdef15075c673b78f143881bcd00 | c105fce5cc840e9c2e9a72202efc960224bbea0c | /Contains Duplicate.py | 73fd813d0ae5258fdde15ee113e7a45b7ca98ece | [] | no_license | joonkyu4220/LeetCode | e8cb848864ffe2a6fd67f0862e011f649b40e812 | 5ed42ea4599c09991d918b83f45f05d2648c42dd | refs/heads/main | 2023-07-31T10:27:48.401179 | 2021-09-18T18:22:08 | 2021-09-18T18:22:08 | 330,622,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | class Solution(object):
def containsDuplicate(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
dic = {}
for n in nums:
if n in dic:
return True
else:
dic[n] = True
return False
| [
"noreply@github.com"
] | joonkyu4220.noreply@github.com |
2a330c17396ee6d12bfa8513bad002fed30eb3aa | d7016f69993570a1c55974582cda899ff70907ec | /sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2021_06_01_preview/aio/operations/_configuration_operations.py | 983de8a70ad7b726dd2c34712f7c3a4f291083eb | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 12,584 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
dedc425c067ba374edf928ffd45db92edc377d94 | b1dbb9da67d4e5270a061cf8c73f48091f57bfcc | /Code/DataViz.py | eb0ee70f475cca067d74867786abecc7833dc1d3 | [] | no_license | Worldie-com/SFCrimeClassification | d15132c1778415c9b8d1dd0c959c25269cd5f53e | 5290bebf21171b86b1303716f1454fbf5b6f5aac | refs/heads/master | 2022-09-28T11:13:52.757452 | 2020-06-02T12:17:21 | 2020-06-02T12:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,671 | py | class visualisationBfP(object):
def __init__(self, trainData):
self.trainData = trainData
def Week(self):
crime_week = self.trainData['DayOfWeek'].value_counts()
pylab.rcParams['figure.figsize'] = (10.0, 6.0)
y=crime_week.keys()
x=[]
for i in crime_week:
x... | [
"ayushsara12@gmail.com"
] | ayushsara12@gmail.com |
c229f148971ef7d9ec96d7d89f139a4dafe4bfe6 | 2e7151b4cff3debaff80d64dcf5e6476da148a1f | /lesson_21/pop_victor/tema21-LIB-VictorPOP.py | 9041abfee4b3c1091d13c2ddeb7eeb72527b0d77 | [] | no_license | mariuspodean/CJ-PYTHON-01 | 2add5a56def9151224469c34723b3b9b6785d319 | c263a5fc20995195f41f5974970bb5e68b885a03 | refs/heads/master | 2021-05-17T03:16:55.150711 | 2020-06-23T12:56:41 | 2020-06-23T12:56:41 | 250,594,218 | 11 | 4 | null | 2020-07-06T06:16:48 | 2020-03-27T17:05:16 | Python | UTF-8 | Python | false | false | 398 | py | from itertools import chain
items = [1, 2, 3, 4, 5]
def multiply(x):
return x*x
def add(x):
return x+x
print(list(map(lambda x: add(multiply(x)), items)))
print(list(map(lambda x: multiply(add(x)), items)))
the_list = list(chain(*map(lambda x: (add(x), multiply(x)), items)))
print(the_list)
# print(list(m... | [
"62120496+VictorPop84@users.noreply.github.com"
] | 62120496+VictorPop84@users.noreply.github.com |
37e9098a459db36343fc4e95e6fa6692250a6e41 | 82c69e86e2d9abb510ef4b5066fea1782b336d07 | /mergesort.py | 17630218eaee9869e5f340545a7c925ca78d1fab | [] | no_license | ChrisKenyon/Practice | 4e38c5c8a2f7d677f0564f700785fd5f3329e7fd | c6ee4dc6923b7f2a42d77f438b3dbfdb8b83973e | refs/heads/master | 2021-01-11T14:01:12.033999 | 2019-06-25T01:52:07 | 2019-06-25T01:52:07 | 94,923,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | def merge(l,m,r):
arr1 = array[l:m][::-1]
arr2 = array[m:r][::-1]
while l < r:
if len(arr1) > 0 and len(arr2) > 0:
array[l] = arr1.pop() if arr1[-1] < arr2[-1] else arr2.pop()
#array[l] = arr1.pop(0) if arr1[0] < arr2[0] else arr2.pop(0)
else:
array[l] = a... | [
"cjkenyon117@gmail.com"
] | cjkenyon117@gmail.com |
9cbf5b6cf37fb49f49e1452747be65c5d74a5e7b | 05887f0f20f3a57c11370021b996d76a56596e5f | /cats/articles/urls.py | ec12a3e5441c566e5a600233b109c2dba9bbd2ea | [] | no_license | kate-ka/cats_backend | 11b5102f0e324713a30747d095291dbc9e194c3a | df19f7bfa4d94bf8effdd6f4866012a0a5302b71 | refs/heads/master | 2020-12-06T16:59:02.713830 | 2017-10-27T09:51:23 | 2017-10-27T09:51:23 | 73,502,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from . views import ArticleList, ArticleDetail
urlpatterns = [
url(r'^api-v1/articles/$', ArticleList.as_view()),
url(r'^api-v1/articles/(?P<pk>[0-9]+)/$', ArticleDetail.as_view()),
]
urlpatterns = format_suffix_pa... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.