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
9b73f5e1369ba4650b9c1b6d9387e009efebd53c
4011707f288cb532486458b5b6dc12cbde43b72b
/scripts/preprocessing_test.py
a8a968822b13fb693e7eda2c0c8b6a81e30940e3
[]
no_license
ZXChadD/Model-Re-training
98dead737c31bdf12e47efdf32b3897082c13645
b3edb70bc0cc2cca3740ae0c16ccb469afcc4d87
refs/heads/master
2022-12-05T07:18:11.792462
2020-09-04T02:16:01
2020-09-04T02:16:01
284,948,675
0
0
null
null
null
null
UTF-8
Python
false
false
6,620
py
import pickle import random from matplotlib import pyplot from PIL import Image from PIL import ImageDraw from pascal_voc_writer import Writer cifar10_path = 'cifar-10-batches-py' width_of_original_image = 32 height_of_original_image = 32 max_img_on_bg = 20 max_images = 10000 def main(): create_training_data() ...
[ "zhexianchadd@gmail.com" ]
zhexianchadd@gmail.com
302f65518292a696e7f129cd6da7782047494676
d7e41fee3b404cc30d93da72eb92ac466c4fe3ae
/aplpy/colorbar.py
c8a2d6c107a27ccf8a8f1624d08df868e8ed978c
[ "MIT" ]
permissive
lpsinger/aplpy
ca257d0da48aac9e29e0e71470e90147c710cecf
a59ec76d1f0b04ece7a78accd9d6672d5def5a0a
refs/heads/master
2020-04-08T22:43:37.778800
2012-12-21T14:27:56
2012-12-21T14:27:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,469
py
import warnings import matplotlib.axes as maxes from mpl_toolkits.axes_grid import make_axes_locatable from matplotlib.font_manager import FontProperties from .decorators import auto_refresh, fixdocstring # As of matplotlib 0.99.1.1, any time a colorbar property is updated, the axes # need to be removed and re-creat...
[ "thomas.robitaille@gmail.com" ]
thomas.robitaille@gmail.com
9abd00731a155fe58ee5d36fa1e58cf5541fdafa
438b7f178947f7981ecf1656c97cf9622ef6400f
/src/custom_plot.py
5d728faee0dad4eabd0dd2c8886052e9ddca8b1a
[ "MIT" ]
permissive
ManishSahu53/streamlit-covid-dashboard
a2f8093c01081492648bdf7e7a57d82435c13cca
c9824feee369c978c88211a65e89c9ded39d0fc4
refs/heads/main
2023-07-07T07:37:46.299598
2021-08-13T18:59:53
2021-08-13T18:59:53
365,351,378
1
0
null
null
null
null
UTF-8
Python
false
false
7,197
py
import itertools import copy import streamlit as st import plotly import plotly.graph_objects as go import plotly.express as px from plotly.subplots import make_subplots import logging import config @st.cache(show_spinner=False) def normalisation(data, population, rule): if config.RULE_MAP[rule] == 'percentage'...
[ "manish.sahu@tokopedia.com" ]
manish.sahu@tokopedia.com
34483c2ca07b40eaabcb779de868fcf8094cdac5
ebf3e0fdb7ca2c19e04f893b49120cd4fdf10649
/django/models_and_database/manage.py
b86d7b4ab80a51e710716e63299291a21b5f82f7
[]
no_license
Sem31/Django-Basics
19f8528f683c1bbc67a4d5d01988fa8d64d251c2
3219143d135a1d918e0994b61128375b01b35a5d
refs/heads/master
2022-12-12T00:01:04.518559
2019-09-29T18:16:57
2019-09-29T18:16:57
190,061,340
0
0
null
2022-12-08T05:22:25
2019-06-03T18:37:25
Python
UTF-8
Python
false
false
639
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'models_and_database.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
[ "31kamleshprajapat@gmail.com" ]
31kamleshprajapat@gmail.com
180645eb15e4d6eb4f32a0930b991ad1b0f8d559
200d2833ffcbc5838361278f19ee1436b819de7f
/classes/film.py
47f8ce0596ea75b4733b9ab191111b4096368b4b
[ "MIT" ]
permissive
rjkerrison/ranking
f7503f494c785a476a66c3e2ae93eccd54ea670d
efcb3939b377ab3eb407ad2cab49a95784e41e81
refs/heads/main
2023-01-20T15:33:03.153827
2021-05-22T09:20:31
2021-05-22T09:20:31
100,423,063
0
0
MIT
2023-01-07T10:39:28
2017-08-15T22:05:14
Python
UTF-8
Python
false
false
1,039
py
import json class Film(): def __init__(self, film_dict): self.name = film_dict['name'] self.director = film_dict['director'] self.release_date = film_dict['release_date'] def __getitem__(self, key): return self.__dict__[key] def __str__(self): return '{0}, directed...
[ "rjk1994@gmail.com" ]
rjk1994@gmail.com
f9d27805e02862676500e8314faf558221747bc4
cbd57ae9ec6beb2de489d960bbabef6a588da98e
/contact/urls.py
8b5578165fbc80581a3625af419983c3ac65d72e
[]
no_license
Sean-Hilton/ContactList
aa8cde62474ea32e49839aec2524dbc144a8ad05
896ecd604e4741feb38e8f671ed1470e96f40b49
refs/heads/main
2023-07-08T01:48:59.548057
2021-08-17T17:27:51
2021-08-17T17:27:51
393,488,242
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('login/', views.registerPage, name='login'), path('logout/', views.logout, name='logout'), path('add-contact/', views.addContact, name='add-contact'), path('profile/<str:pk>',...
[ "noreply@github.com" ]
Sean-Hilton.noreply@github.com
4ae02d2e3e2f153377bafaacdc640e31ea590fa5
d3ff882b34ce3db6b2968249a152be073aa7698c
/hw3.py
c3286efbc239ec61cc8afdc855430a98281f1359
[]
no_license
0xmonkey/EECS660
8fea69832e19ff30c08c195cfb1059b8c2a695b8
c1436d1bb1de1565f5f80645e00597be64ac4496
refs/heads/master
2020-04-15T22:41:44.524668
2019-01-10T15:24:39
2019-01-10T15:24:39
165,082,686
0
0
null
null
null
null
UTF-8
Python
false
false
5,682
py
# imports {{{1 from __future__ import division from collections import deque from copy import deepcopy from random import randrange #---------------------------------------------------------------------------}}}1 class AdjList: # {{{1 # A class for the adjacency list representation of a graph. # Undirecte...
[ "noreply@github.com" ]
0xmonkey.noreply@github.com
e7f67e86dc59350d2e03716109cfd53bf3497274
9ee5e51e96fe8baff2ccc7a03981e453b60e3bed
/test/technical_analysis/stock_analysis.py
2b69e76bf748ca07296f428bfbecce36e24c8a7e
[]
no_license
marciopocebon/myInvestor
0b97a065e9f5dd9beaefca99955d4fb31a619c03
f4861b462b1161fb49534ec85ce259026fa20fd3
refs/heads/master
2021-12-24T03:21:05.829680
2017-12-05T15:45:04
2017-12-05T15:45:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,055
py
# must run using ipython console # or jupyter-console import pandas as pd import pandas_datareader as web # Package and modules for importing data; this code may change depending on pandas version import datetime import matplotlib import numpy as np import matplotlib.pyplot as plt # Import matplotlib # We will l...
[ "mengwangk@gmail.com" ]
mengwangk@gmail.com
e2ef2536a85188c91efb424bfaf0d4bdd3c5f407
4cb5e7d4eb12af3970fbe1e1532f54dd2a3f5606
/python/practice.py
1d1459c70216ded391ebe169a33631d983b98ac7
[]
no_license
sreeteja06/vscode
d2fb81cc65ab7b62000f2aac86d7f2dd0680f61d
e4f815f3ce1cd2da884a2fe4493bd88ca1631863
refs/heads/master
2020-12-30T09:14:38.490788
2018-09-14T15:00:57
2018-09-14T15:00:57
100,395,906
1
0
null
null
null
null
UTF-8
Python
false
false
369
py
'''class hello: def __init__(self, first, second="hello"): self.first = first self.second = second print(self.first+" "+self.second) def main(): name_first="sree" name_last="teja" hello(name_first, name_last) hello("test", "name") if __name__ == '__main__': main() ...
[ "sreeteja.muthyala@gmail.com" ]
sreeteja.muthyala@gmail.com
57791e12aecfb2440e48964dc6d5a0c4e3c27d94
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-6589.py
aad7ca56d310f77854a1ba7b3ae9903b4a5cb6d7
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
31,741
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
66721974027c3e9f2a41ac5c3a4f149ba6e7b781
7b1acba7670d6264c0fc3d2280576d7360e6d3f1
/Lesson04.py
77f1540986eec776c9376c5ceb2833addec68418
[]
no_license
DandyCV/LITS
c649a498590995fbb51d3293c66e8c599132e62d
f873e8cb3941e4ddf3338e0ad5a7fe9d78e9c72b
refs/heads/master
2020-05-18T00:35:36.593367
2019-08-27T20:05:39
2019-08-27T20:05:39
184,065,480
0
0
null
2019-04-29T12:38:02
2019-04-29T12:17:55
null
UTF-8
Python
false
false
838
py
def mul2(func): def inner(*arg): r = func(*arg) return 2*r return inner @mul2 def f(a, b): # mul2(f)(3,3) return a + b print(f(3, 3)) def mul(a): def inner(b): return a + b return inner mul2 = mul(2) print(mul2(2)) def counter(f): count = 0 def inner(*arg, **kw...
[ "dandycvc@gmail.com" ]
dandycvc@gmail.com
bd26cb019f8f5cc53f4b49f77aa28bb017625955
917c6f92cdc362b32ec52ac6b894a892d034b30d
/spellTest.py
847599f9b71b19510116cfefdb2e489f11ddc470
[]
no_license
ThapaMahesh/text-analysis
31a0851ac78ebf92fc8ba36964900922c192fc89
f9951fa7c48d3a19d59bf515ebc57a9f5c03be3d
refs/heads/master
2020-04-28T23:12:29.682067
2019-03-25T15:55:33
2019-03-25T15:55:33
175,646,605
0
0
null
null
null
null
UTF-8
Python
false
false
4,467
py
import nltk import os from nltk.corpus import words, brown from preprocess import PreProcess import spacy import json import time from spellchecker import SpellChecker import multiprocessing def suggestions(word): spell = SpellChecker() errorList = {} if not word.isupper() and not any(char.isdigit() for ch...
[ "mahesh.gru03@gmail.com" ]
mahesh.gru03@gmail.com
f9aa272b0392c2b3feb3859fb54d6ff207929ce8
40fe554a4ad97da41210b9de40d90cd16c7c84a1
/crawler/utils/__init__.py
efb37fef958754fbb9e78bce41f886fe6738704f
[ "MIT" ]
permissive
Librechain/subcrawl
96ee0a6b263a4afcfcedaf22311142f7b3c9e39b
37a50118a4d2e1003fdcacca339ca45d59d0c673
refs/heads/main
2023-06-22T09:58:43.093237
2021-08-04T21:02:08
2021-08-04T21:02:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
# © Copyright 2021 HP Development Company, L.P. from utils.logger import SubCrawlLogger, SubCrawlLoggerLevels from utils.banner import SubCrawlBanner from utils.sqlite_model import * from utils.setup_redpanda_topic import check_topic from utils.ansi_colors import SubCrawlColors from utils.helpers import SubCrawlHelpers
[ "9351883+stoerchl@users.noreply.github.com" ]
9351883+stoerchl@users.noreply.github.com
de418aff0bc52fcbf8908fd1a80dbc4dc19e5d14
6d0e4aa21cba6332a31820fc6002ed118e9175df
/registration/views.py
86a6cdf60a1be76b80527052dc394f73ba4c1e61
[]
no_license
ArbindChaudhary/MinorProject
6c4e28017a5a0ac0033b2f0f34ecb35712e58de9
294450d9938b7ff7d7263561a54b5fc11404d541
refs/heads/master
2022-11-12T16:14:53.962486
2020-07-01T07:35:53
2020-07-01T07:35:53
276,307,326
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
from django.shortcuts import render import requests import json # Create your views here. def register(request): return render(request, "signup/signuppage.html") def registerUser(request): email = request.GET['emailid'] password = request.GET['pass'] name = request.GET['name'] print(email, passwo...
[ "mearbind9a@gmail.com" ]
mearbind9a@gmail.com
3c81638c40a68d5156eab8b2b16bbb160c873e16
f034a2a618f72156eed9fdf6715a73a43ef09c0a
/blog/admin.py
e25f30b1f8e1652645595401101da65ae40358da
[]
no_license
MEdaHad/compro_Django
30101c04d2662c315076e1aa1ae2b2b496567715
a86af85fbd9ccb1df81092959a451e4fa5a6e7cf
refs/heads/master
2021-05-21T01:26:46.644606
2021-02-09T09:37:24
2021-02-09T09:37:24
256,106,014
2
0
null
null
null
null
UTF-8
Python
false
false
317
py
from django.contrib import admin from .models import Post class PostAdmin(admin.ModelAdmin): list_display = ('title', 'image', 'slug', 'created_on') list_filter = ("created_on",) search_fields = ['title', 'created_on'] prepopulated_fields = {'slug': ('title',)} admin.site.register(Post, PostAdmin)
[ "medahad16@gmail.com" ]
medahad16@gmail.com
afcc5884a35e634a0798f89d16ea927e21c63653
67c81e9ee30b807030cebd40e9bbb23c4f107a9e
/clipper_admin/auto_pilot.py
f8cac422aeb46c79ff24c1cfd1d19d50c87f77b3
[ "Apache-2.0" ]
permissive
SimonZsx/clipper
d3989526f6bb1659bce43f4ea50ed9684341f568
457088be2ebe68c68b94d90389d1308e35b4c844
refs/heads/develop
2020-04-17T21:29:41.551500
2019-08-04T11:22:15
2019-08-04T11:22:15
166,952,203
2
4
Apache-2.0
2019-07-27T03:31:12
2019-01-22T07:57:50
Jupyter Notebook
UTF-8
Python
false
false
1,390
py
from __future__ import print_function from clipper_admin import ClipperConnection, DockerContainerManager from clipper_admin.deployers import python as python_deployer import json import requests from datetime import datetime import time import numpy as np import signal import sys # Stop Clipper on Ctrl-C def signal_h...
[ "yy0125@connect.hku.hk" ]
yy0125@connect.hku.hk
9b3fca7294d02e626e30244cf99d1aa5bed08592
8e40fe17721bf0c075cd00492cc106c68b9755fd
/plot_graph.py
9a46ada9c307a8cb1bc010b80d86fa07848f350a
[]
no_license
kingyau991319/IERG3280_Project
73e4376e8c768f611d6950d9549d0ce511f2e24d
302b63ca1b921f76491640e6003626e3566d1709
refs/heads/master
2022-07-17T00:25:00.458048
2020-05-18T02:51:03
2020-05-18T02:51:03
258,788,941
0
0
null
null
null
null
UTF-8
Python
false
false
938
py
import fd_recommandation as fr import json import numpy as np import matplotlib.pyplot as plt import seaborn as sns if __name__ == "__main__": # source of data test = fr.fd_rd("friend_test.json") output_data = [] person = [] with open(test.profile) as json_file: data = json.load(json_file...
[ "noreply@github.com" ]
kingyau991319.noreply@github.com
e1bd37107b121629b0f932118c3520d9abd9215d
f8dde4d48baa93492651621083b18b6f163f49ff
/torchocr/networks/architectures/RecModels.py
1479e62314899e801fa39edd328cbbbc1e1023a1
[]
no_license
csaimd/PytorchOCR
8a0f985d61c8128ba45696c332f71ad8a9567d39
3ef5d8f624755cdcf4ea0677ee8251b4471a82a5
refs/heads/master
2022-07-30T01:14:51.440650
2020-05-18T06:44:31
2020-05-18T06:44:31
264,957,765
1
0
null
2020-05-18T14:04:39
2020-05-18T14:04:38
null
UTF-8
Python
false
false
935
py
# -*- coding: utf-8 -*- # @Time : 2020/5/16 11:18 # @Author : zhoujun from torch import nn from torchocr.networks.backbones.RecMobileNetV3 import MobileNetV3 from torchocr.networks.heads.RecCTCHead import CTC from torchocr.networks.necks.RecSequenceDecoder import SequenceDecoder class CRNNMBV3(nn.Module): de...
[ "744351893@qq.com" ]
744351893@qq.com
dc18ff32e73c9f01fe8020b3f326969004db6e0b
1d182c457a977211b2d58f346c4f39c3d5000f8f
/test_case/test02.py
4ba4a4d67df906db92e4047b071e8183f0e047aa
[]
no_license
fcc-haru/automation-test-demo
94a04fbb2370982549d69a9821a72d8e50fc27db
603963aa5c586929bdffea20b7f6e534eb1abc59
refs/heads/master
2020-04-07T15:36:27.949427
2018-11-22T07:45:03
2018-11-22T07:45:03
158,492,676
0
0
null
null
null
null
UTF-8
Python
false
false
1,804
py
import unittest,time from time import sleep import sys sys.path.append(r'C:\Users\min.zhang\Desktop\rms-autotest') from common.browser import Browser from utils.config import Config from pageObject.login_page import LoginPage from pageObject.position_list_page import PositionListPage from pageObject.switch_page import...
[ "min.zhang@ad.sbibits.com" ]
min.zhang@ad.sbibits.com
2df8b170c2e69db0ef937e0f736d0c7f99e10784
3d962145fe6f6b118e059af8728ec4d302593101
/dbaas/dbaas/middleware.py
2e93c087ba2aca960ed1b7a8b12a213aa456d2de
[ "BSD-3-Clause" ]
permissive
perry-contribs/database-as-a-service
f015008a29600ce128c15686c2ff00fa360600f9
db8fbee3982bbc32abf32aa86f7387de01a243be
refs/heads/master
2022-12-18T12:17:40.496898
2020-10-01T09:12:54
2020-10-01T09:12:54
300,216,997
0
0
BSD-3-Clause
2020-10-01T09:11:19
2020-10-01T09:11:18
null
UTF-8
Python
false
false
1,390
py
from datetime import datetime, timedelta from threading import current_thread from django.conf import settings from django.contrib import auth class AutoLogout: def process_request(self, request): if not request.user.is_authenticated(): return if 'last_touch' in request.session: ...
[ "mauro_murari@hotmail.com" ]
mauro_murari@hotmail.com
feaf6ed7e4d0ac877ba1c0bdf4a9b09fdc82a40a
8f8fbc396cd173c572fc66e260dfd58087c92735
/Codeforces/A. Straight «A».py
381deb20f2fb0f060f4e3db2cf44b042053f00eb
[]
no_license
rezwanh001/python-programming-with-data-structures-and-algorithms
399ea7ba7a00f8f0223b9a155ead9aa73a88f9d7
caaee310d0d8af0cfb82694222632c69595aa6c4
refs/heads/master
2021-07-23T19:48:24.733218
2017-11-03T13:54:39
2017-11-03T13:54:39
108,736,843
6
3
null
null
null
null
UTF-8
Python
false
false
278
py
def Main(): n, k = map(int, input().split()) sm = 0 arr = list(map(int, input().split())) sm = sum(arr) N = n cnt = 0 while (sm + N // 2) // N < k: sm += k N += 1 cnt += 1 print(cnt) if __name__ == '__main__': Main()
[ "rezwan@Rezwans-iMac.local" ]
rezwan@Rezwans-iMac.local
ed938b119081443e2340ed8f35cf806752049149
472f164b68ca8e4afa1f74da27d70d124b3add74
/workstudysite/wsgi.py
48794f4b951954df5708b94c97d07219d27f81de
[]
no_license
AnosovaEkaterina/workstudysite
1df93b9a7c8b4c325734f7b043394d3258093bf6
5c366be08167623f0eb17fddc346450f7cd59a49
refs/heads/master
2023-04-26T07:22:10.830074
2021-05-31T13:21:07
2021-05-31T13:21:07
372,506,111
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" WSGI config for workstudysite project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
[ "fox9816@mail.ru" ]
fox9816@mail.ru
0fa6b5aa0e4943aa0fdace2140aaa7ec22ffa8f8
cc364792768f0ad5a8b6b36995c4382d759e992d
/TP 1.2 - Estudio economico ruleta/Codigo/estrategy_martingale.py
b29519aeaed90fca70b1aa5be3ced49ca5bbb603
[]
no_license
FernandezNatalia/Simulacion
09129adb6697ea3d7a2270608fc92965246d4996
e169ad06f22687cbf7fc74340ce8f5d455f6c94a
refs/heads/master
2023-06-10T19:10:02.403246
2020-07-30T17:12:42
2020-07-30T17:12:42
279,116,138
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
import random import numpy as np import math from matplotlib import pyplot as p import scipy.stats as ss from roullete import * def estrategia_martingala(apuesta,capital,favs,nofavs, apuesta_inicial, pleno): if(tirar_ruleta(pleno)): capital = capital + apuesta * 2 apuesta = apuesta_inici...
[ "noreply@github.com" ]
FernandezNatalia.noreply@github.com
e970cb1bdca48152b77d4ceb0097a31a46d47227
c7be50ef7b154f292ad1fd0f04e90b89f558af31
/WSU_SEAL/data_cleaner.py
1bcb344123fd57c18d6e945155b900cbd72a0429
[ "MIT" ]
permissive
CMUSTRUDEL/toxicity-detector
df6d6f4b5030dd29aac0ddae50f3f5f0e23a9ffc
53237db0afd088c488c8ef0fc5b88c8ac29cedbe
refs/heads/master
2023-07-20T02:16:44.474420
2022-06-29T18:13:06
2022-06-29T18:13:06
238,368,176
13
12
MIT
2023-07-06T23:18:44
2020-02-05T04:32:31
Python
UTF-8
Python
false
false
2,492
py
import math import pickle import re from wordfreq import word_frequency from nltk import RegexpTokenizer from collections import defaultdict def log_odds(counts1,counts2): prior = counts2 sigmasquared = defaultdict(float) sigma = defaultdict(float) delta = defaultdict(float) for word in prior.ke...
[ "abosu@csebuet.org" ]
abosu@csebuet.org
f0002acb5507cad1be812360cbda655027b4a4ee
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03836/s741210941.py
115e3d1b0023264fc7ddea4090c60e0bdb2df46d
[]
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
234
py
sx, sy, tx, ty = map(int, input().split()) X, Y = tx - sx, ty - sy for d, n in zip("RULD", [X, Y, X, Y]): print(d * n, end="") for d, n in zip("DRULULDR", [1, X + 1, Y + 1, 1, 1, X + 1, Y + 1, 1]): print(d * n, end="") print()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
d2d0f0e9540ff72210ef46f197d0fd14ea054dae
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03546/s313305577.py
d170aacbf34a2d5379c9166b8773528b739fcec0
[]
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,352
py
# G[i][j]: 頂点v_iから頂点v_jへ到達するための辺コストの和 # クラスにしてしまったけど、これ遅いのでクラスじゃ無い方が良い class Warshall_Floyd: def __init__(self, V): self.V = V self.G = [[float('inf')] * self.V for i in range(self.V)] def add_edge(self, fr, to, cost): self.G[fr][to] = cost def add_multi_edge(self, v1, v2, cost): ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f472bebf8fd8f21a87e1b9ff1e7bf3e60577b9b8
1c58aef845d5dc1398249d784450c3825a1a75a5
/Dynamic_Programming/speed_and_spikes.py
a9cbecd5027d6f47406253b683546dacd977f77a
[]
no_license
AmitKulkarni23/Leet_HackerRank
b1c1d7e5915397fd971d777baf75bb0f6fd27c78
047b167311d2fb93a53998a20d73533a4cae2ab8
refs/heads/master
2021-06-01T20:24:40.659530
2020-02-06T22:10:14
2020-02-06T22:10:14
123,007,444
0
0
null
2018-07-12T18:42:40
2018-02-26T17:58:28
Python
UTF-8
Python
false
false
2,069
py
# Speed and spikes problem # Source -> http://blog.refdash.com/dynamic-programming-tutorial-example/ def canStopOnRunway(init_speed, runway, init_position): """ Function that returns true if a person on a jumping ball with init speed can stop on a runway type: runway - List type: init_speed - int ...
[ "amitrkulkarni232@gmail.com" ]
amitrkulkarni232@gmail.com
dadfa1f5672332a46407587dcf52adc862b5f08f
0109dab6738e8bd615c1ae7c3d368aedb3efa157
/2_dars.py
d3e6278dd2861b44b0b624704ec92c1f7792e008
[]
no_license
Gulboy1990/Python_dars
fbab6917acf815b632cb76beb91a76d63f0f4242
083f8066bea63ed29d35841e47b5fb0f767ec42c
refs/heads/main
2023-02-16T18:25:14.838575
2021-01-12T12:38:52
2021-01-12T12:38:52
328,965,661
0
0
null
2021-01-12T11:36:50
2021-01-12T11:29:47
null
UTF-8
Python
false
false
430
py
# Ikkita qayiq turg'un suvda bir-biriga tomon 4 km/soat va # 2km/soat tezlik bilan suzmoqda. Ular orasidagi masofa 24km bo'lsa: # ular qancha vaqtdan keyin uchrashadi? # qancha vaqtdan keyin ular orasidagi masofa 24km ni tashkil etadi? v1 = 4 #km/soat v2 = 2 #km/soat s = 24 #km v = v1 + v2 t = s / v s = v...
[ "noreply@github.com" ]
Gulboy1990.noreply@github.com
7f1836ea32d0d8531567a6a9d255a62f7bfab0ac
98d08190319226bcfda8404023988bbdf14a76f3
/OPENCV/opencv_support.py
871475c332a2067599ee85d07435fb6304c29aaf
[]
no_license
SaidAlvarado/UNETBOT_2015
6cc90069d34c927f275526f16ea612660726f74c
7fe8f710fac8cca0d340ceab5a1e972bfdc98558
refs/heads/master
2021-01-10T22:11:09.567545
2015-10-26T19:27:47
2015-10-26T19:27:47
35,787,230
0
0
null
null
null
null
UTF-8
Python
false
false
14,261
py
import numpy as np import cv2 import random # Filtros de color de HSV rojoLow = np.array([0,198,68]) rojoHigh = np.array([17,255,255]) amarilloLow = np.array([24,210,67]) amarilloHigh= np.array([34,255,237]) azulLow = np.array([90,54,0]) azulHigh = np.array([116,255,93]) verdeLow = np.array([37,144,0...
[ "said_alvarado@hotmail.com" ]
said_alvarado@hotmail.com
ff0bc8e563418f52c188920b6d7c290630091b55
4742f8b06c0e2d537cd76d0b05664be09f2a08fb
/Python Scripts/_Mono_Framework/MonoButtonElement.py
de9bbe6e71029607e51f7408b3c822e234ac1ebe
[]
no_license
robjac/m4m7
bf6414bd0dd3ebfd7da72adecb761a85bfa79ce6
0dc6043594effd7375e7fb893321109f85288b46
refs/heads/master
2021-01-17T23:35:34.276099
2015-12-06T08:17:06
2015-12-06T08:17:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,989
py
# by amounra 0413 : http://www.aumhaa.com import Live from _Framework.ButtonElement import ButtonElement, ON_VALUE, OFF_VALUE from _Framework.Skin import Skin, SkinColorMissingError from MonoBridgeElement import MonoBridgeProxy from Debug import * MIDI_NOTE_TYPE = 0 MIDI_CC_TYPE = 1 MIDI_PB_TYPE = 2 MIDI...
[ "aumhaa@gmail.com" ]
aumhaa@gmail.com
b7a3098d8ad8cb4650c16ad94782f92f74766612
bd622cb8135ea1cfcba6b216fff89d6da6eb9c25
/administration/yealink/autoprovisioning/scripts/change-number.py
2618613d021a45a8df9b544faf1d76870e0957cb
[]
no_license
fernarium/Notes
da6a92ae0d71838549871a688ff37b6d29d7a1fa
4edc513cf94b62bbb004eefbe89f2f3cb875a792
refs/heads/master
2023-01-05T01:38:48.465734
2020-11-06T21:57:16
2020-11-06T21:57:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,997
py
#! /usr/bin/env python3 import csv import json import re import subprocess import sys import lm_auth import argparse import paramiko import logging import time from ldap3 import SUBTREE, MODIFY_REPLACE _user_objects = None class Extension: def __init__(self, name, old_number): self.name = name ...
[ "petewindows2011@yandex.ru" ]
petewindows2011@yandex.ru
23abbcb7ce157f9ae18189509f7c5be03874d2a7
995480a6352c56d66998786c2e2d06dff043ad13
/app.py
01b9fd4db17e408dd69d9062132c9339b30587f7
[]
no_license
AshleyMcGee/web_homework
e3192a6bbc25f49d1248e5b008931b61efae30ec
1dc050514ef94b1d524dfbef87e29c3c4379ce4b
refs/heads/master
2022-12-18T02:34:32.356734
2020-05-06T20:21:38
2020-05-06T20:21:38
180,806,526
0
0
null
2022-11-22T04:31:03
2019-04-11T14:11:44
HTML
UTF-8
Python
false
false
717
py
from flask import Flask, render_template, url_for app = Flask(__name__) @app.route('/') def home(): return render_template("index.html") @app.route('/temp') def temps(): return render_template("temp_x.html") @app.route('/humid') def humidity(): return render_template("humid_x.html") @ap...
[ "6312276+AshleyMcGee@users.noreply.github.com" ]
6312276+AshleyMcGee@users.noreply.github.com
7325dcc029209e10b76f417754456c26de5f846e
30099a17539959fd445a412c09cf5d5369971dc4
/test/test.py
2ed51d8a5db2198d4f3c88cd8b31e78cc63c9a7e
[]
no_license
Kmmanki/bit_seoul
7e16d6d51c21c449dd5150a64da3233bc562dcb7
8d1e86a84e218c7d96d6c6f9b2b5cd69765ebb9c
refs/heads/main
2023-04-08T02:16:10.372497
2021-04-15T01:35:09
2021-04-15T01:35:09
311,284,716
1
1
null
null
null
null
UTF-8
Python
false
false
1,536
py
import numpy as np from tensorflow.keras.models import Sequential,Model from tensorflow.keras.layers import Dense, LSTM, Concatenate, Input from tensorflow.keras.callbacks import EarlyStopping #1.data x1 = np.array([[1,2,3],[2,3,4],[3,4,5],[4,5,6] ,[5,6,7],[6,7,8],[7,8,9,],[8,9,10] ,[9,10,11],[...
[ "aksrl25@gmail.com" ]
aksrl25@gmail.com
c2e93b3c36a8107ad3846ca721114a10d9e8b761
0ebf7d3884953c8570bad6ca1e9e981f498a06b9
/candidate_mining/test/test.py
d667a38616faf1a7816c741add6e33e83fd777b9
[ "MIT" ]
permissive
xurenlu/CustomerServiceAI
dd0b7d948fd821d284a7be07326d24d00625b481
9c67c77f470383db19833463f6476dd27a0c76f7
refs/heads/master
2022-03-13T06:31:54.474403
2019-06-25T07:31:59
2019-06-25T07:31:59
193,917,406
0
0
MIT
2022-02-17T15:45:26
2019-06-26T14:09:25
Jupyter Notebook
UTF-8
Python
false
false
241
py
from test_pb2 import * node = ChatNode() keys = PathKeys() keys.keys.append('是') keys.keys.append('对') node.keys['是'].CopyFrom(keys) node.keys['不是'].keys.append('不是') node.children['是'].CopyFrom() print('hello world!')
[ "higgs@weidong.local" ]
higgs@weidong.local
0f8e38c0a2f1ee16f600bf711b04253540799ebb
c6292c1dd68f0c4dd3389628de0d2b786fa0ee64
/0x11-python-network_1/5-hbtn_header.py
b8d01504078e77816dad1f5eb961ca606bc0bf7a
[]
no_license
mj31508/holbertonschool-higher_level_programming2
835be695b568cd189c1448c54218a0201830005f
3fa47001c041cd0c74f88c3a19677e126bee37b4
refs/heads/master
2021-07-06T22:31:05.040354
2017-09-29T05:28:45
2017-09-29T05:28:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
#!/usr/bin/python3 # Taking in a URL and sends a request import requests import sys if __name__ == "__main__": url_arg = sys.argv[1] req_arg = requests.get(url_arg) try: store = req_arg.headers["X-Request-Id"] print(store) except: pass
[ "mj31508@gmail.com" ]
mj31508@gmail.com
6a241958cca84a65345168b655a8f3f526a7869c
9657a18cc272dfbf349932d422002803f820cd66
/First/Library.py
2a03347381b52dce15971b2a38c4b4d193254139
[]
no_license
zhangxuetonghub/Data-structure-with-python
94a7165f867662cd552acbd3da9e654c4fd7d1d0
dc8059e9841c5380d2df43980970901eb241f27c
refs/heads/master
2021-04-15T04:55:58.262320
2018-04-09T08:34:27
2018-04-09T08:34:27
126,753,906
0
0
null
null
null
null
UTF-8
Python
false
false
5,748
py
class Book: """图书类""" def __init__(self, title, author): """构造一本书""" self._title = title self._author = author self._onread = '' self._waitreaders = [] def setreader(self, readername): """设置正在借阅的读者名字""" self._onread = readername def gettitle(sel...
[ "noreply@github.com" ]
zhangxuetonghub.noreply@github.com
0a086ba5ffae00e39e59426d3cc287e047cf73a7
4d71eb6075ac388a67370fddc1ae0579575b304f
/examples/ssd/train_multi.py
8fdd055743af395d22b217e7d335ca7d5e61771e
[ "MIT" ]
permissive
apple2373/chainercv
1b4a6ad80648e848c7108e53fbb3e3fd44aa5c3e
1442eac6a316c31eab029c156b6d6e151553be2a
refs/heads/master
2020-03-18T20:53:21.473474
2018-05-28T09:37:14
2018-05-28T09:37:14
135,245,197
1
0
MIT
2018-05-29T05:27:15
2018-05-29T05:27:15
null
UTF-8
Python
false
false
5,279
py
import argparse import multiprocessing import numpy as np import chainer from chainer.optimizer_hooks import WeightDecay from chainer import serializers from chainer import training from chainer.training import extensions from chainer.training import triggers import chainermn from chainercv.chainer_experimental.data...
[ "Hakuyume@users.noreply.github.com" ]
Hakuyume@users.noreply.github.com
a3a897f1f2504d5873c33059d82aa822abf96ef2
c0c2cdfbc7e20969a1b56291c17404d72917e4f6
/EncryptedTraining/main.py
4956586d04ff00904ca1ec6bc9e447d48476f052
[]
no_license
Hither1/FHE-FL
4bfea82621a406b4cbc2a6a267cd92fcac5fb583
04af1bfe0cea169b692e9ae56f682e2e76ecb02a
refs/heads/master
2023-02-04T14:25:58.679117
2020-12-12T09:37:46
2020-12-12T09:37:46
320,621,887
1
0
null
null
null
null
UTF-8
Python
false
false
363
py
# This is a sample Python script. # Press ⌃R to execute it or replace it with your code. # Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings. # Press the green button in the gutter to run the script. if __name__ == '__main__': print('PyCharm') # See PyCharm help at h...
[ "suhither@gmail.com" ]
suhither@gmail.com
97e56eae4424e7ca3970be5160a8ee21de9e839c
6ebd30e2718e0c63935827794292c3e78ef18e84
/src/bot/commands/cmd_ccc.py
f87e4207587a81408e5b974863f9be6ad54f8b75
[]
no_license
Getaji/GetajiBot
ba36db4148daa47fa85beb8ca74e5da2aee9eb81
48e811e0dcfa6be99bd55a3210860019e9d9b913
refs/heads/master
2020-03-29T21:47:00.709875
2015-04-19T09:14:15
2015-04-19T09:14:15
34,165,375
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
from bot.commands.commands import CommandExecutor from bot.models import Command class CommandCCC(CommandExecutor): from random import shuffle ccc_chars = shuffle(["カ", "ク", "ケ", "コ"]) ccc_format = "{0}ニ{1}リーム{2}ロッ{3}" def get_names(self): return ["ccc"] def get_help(self): retu...
[ "t.tanaka.onion@gmail.com" ]
t.tanaka.onion@gmail.com
61ae0245162c53ffe1c3275cc52abbe3d4387f8f
a61bf859ceeb1ba98de3863225e07b29e1d7ce8a
/misc/debukatse.py
06b04c9719887ddd09a616a60c127a431fba5cce
[ "MIT" ]
permissive
thonny/thonny
3974b1860703e8450b837863682117f525a886c6
8fc9f5c7cbbe1d1c82aa5503ec4b684e28aa608c
refs/heads/master
2023-08-31T03:04:34.685140
2023-08-24T11:38:36
2023-08-24T11:38:36
163,728,962
2,788
1,048
MIT
2023-08-10T18:59:37
2019-01-01T10:29:50
Python
UTF-8
Python
false
false
129
py
def kala(x, y, z): print("tere", x) for x in range(3): print(x) x = 32 / 0 kala(x, x, 1) kala(4, 2, 1) print("valma")
[ "aivar.annamaa@cyber.ee" ]
aivar.annamaa@cyber.ee
456ce05684106390c0e4b30e8c1333d3bfad0d31
01dc8240b3c5d7af6232535f28a3cd4290796d09
/accounts/migrations/0004_remove_user_last_login.py
2ee449bb19b11a9ce9c0d173b397b430185ac2c9
[]
no_license
jburke1203/superlists
68f1713372ab655f4fd6460f84acd20f2ecff106
7f12c225d0d0a3d172e57425b0787ff489c17cec
refs/heads/master
2021-01-16T23:19:17.256007
2016-07-31T15:49:36
2016-07-31T15:49:36
64,208,420
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_user_last_login'), ] operations = [ migrations.RemoveField( model_name='user', name...
[ "james.burke1203@gmail.com" ]
james.burke1203@gmail.com
c6964aa92927f457cc94f4426cf7e343417f259a
c0abb8cfa2e39ff6dce4a00027029f711c0d7944
/main.py
b025edc70b37363bf2c9baf3698f03157c82a810
[ "MIT" ]
permissive
Glebuska/dns-resolver
ba8d95f26f525dd66704ac835136eb91c5c513db
16ee4b1880764957a0e99ac6cb6fa6b2e6de26b4
refs/heads/main
2023-05-28T18:10:27.018415
2021-06-01T20:27:37
2021-06-01T20:27:37
372,847,807
0
0
null
null
null
null
UTF-8
Python
false
false
4,991
py
import argparse from time import sleep import dns.message import dns.name import dns.query import dns.rdata import dns.rdataclass import dns.rdatatype from dnslib import RR, QTYPE, A, AAAA from dnslib.server import DNSServer, BaseResolver, DNSLogger FORMATS = [("A", "{name} has address {address}"), ("AAAA...
[ "gleb.mirzazyanov@gmail.com" ]
gleb.mirzazyanov@gmail.com
6915503a26e36723c9060192c3db1517fcb93cae
522ecf8aa112eeb9f2e2e782c9b53cd56a35c841
/indexer/classes/Document.py
408b32c27447f5e5210267f7179c199a1cd5769f
[]
no_license
brujua/Information-Retrieval
840f67eaf20fe8576bffc52df824621025312120
e7f2cd6a9b84c34d5bd1cd4fae9671e70e0c5b35
refs/heads/master
2020-04-30T20:52:21.189270
2019-05-08T21:56:30
2019-05-08T21:56:30
177,080,111
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
import uuid from dataclasses import dataclass from typing import Set, Dict from classes import Term @dataclass class Document: file_name: str terms: Dict id: int def has_term(self, term: Term): term_freq = self.terms.get(term, 0) self.terms[term] = term_freq + 1 def get_freq(se...
[ "brunocrisafulli@yahoo.com.ar" ]
brunocrisafulli@yahoo.com.ar
b18d5bf4e654575686c48ccc123b626e53e31e1c
756074f44eadf924f1f1daf6cc3943c03dc8880b
/platform/Sh3rl0ck_H0lm3s_master_6_3_20/game/migrations/0005_clue_groupclue.py
a84016906c1dcf98fddb1c520e352ebb55a4e079
[]
no_license
CiberGID/ciberscratch
98140b9a4f41493421a9955526bc8c89898d2848
31095d0fe6bdd95c54bc9649dc25a04e7dc0f714
refs/heads/master
2022-12-02T21:18:41.354235
2020-08-25T16:09:45
2020-08-25T16:09:45
287,000,597
1
0
null
null
null
null
UTF-8
Python
false
false
1,250
py
# Generated by Django 3.0.3 on 2020-03-05 15:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('game', '0004_remove_learnactivity_group'), ] operations = [ migrations.CreateModel( name='Clue'...
[ "LlanosTobarra@users.noreply.github.com" ]
LlanosTobarra@users.noreply.github.com
4243efcc2bbec7f555993c60229d1eedb05865e1
9c48808788274754e0c4ed882131701c20c89b4a
/rename_mesh_as_object.py
aac1436d9f18f22f69b7a2eabd8469a5c5d31130
[]
no_license
karboosx/blender-scripts
d0accb3c9bdc83ab1f489c0204954084211991d2
989296f6e3517a3a1d7ef2b398522753e6259477
refs/heads/master
2021-01-19T21:13:34.879000
2017-04-18T13:58:08
2017-04-18T13:58:08
88,629,574
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
import bpy print("Object, Verts, faces, edges") for element in bpy.context.scene.objects: if element.type != "MESH": continue element.data.name = element.name
[ "noreply@github.com" ]
karboosx.noreply@github.com
70d1a57a8ff9abd23d4a0f4d13454eef7b41d120
5f30f80b96dccdf5c589527e3c37cbc51cab1dfe
/chat/urls.py
cf64015d586ca1542c42761383fa51f1ff1284c0
[]
no_license
Bossy1996/chatapp
8a2b0969043c4ad6fbed265209ae9d9e08471966
52d23cf2621e48d47f07666f05b091bda88ee5f2
refs/heads/master
2023-07-08T01:35:50.067608
2021-08-19T01:38:14
2021-08-19T01:38:14
395,324,552
0
0
null
null
null
null
UTF-8
Python
false
false
116
py
from django.urls import path from . import consumers urlpatterns = [ path('/chat/', consumers.ChatConsumer) ]
[ "jonandonigaldos1996@gmail.com" ]
jonandonigaldos1996@gmail.com
a4d69b5d3d6747f313209a1534539033e0d26edf
268568ff2d483f39de78a5b29d941ce499cace33
/spyder/plugins/editor/__init__.py
837acce64e0e7f40a42373fee3222e97d7416db5
[ "MIT" ]
permissive
MarkMoretto/spyder-master
61e7f8007144562978da9c6adecaa3022758c56f
5f8c64edc0bbd203a97607950b53a9fcec9d2f0b
refs/heads/master
2023-01-10T16:34:37.825886
2020-08-07T19:07:56
2020-08-07T19:07:56
285,901,914
2
1
MIT
2022-12-20T13:46:41
2020-08-07T19:03:37
Python
UTF-8
Python
false
false
394
py
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2009- Spyder Project Contributors # # Distributed under the terms of the MIT License # (see spyder/__init__.py for details) # --------------------------------------------------------------------------...
[ "mark.moretto@forcepoint.com" ]
mark.moretto@forcepoint.com
7ac6d4c001329c9a35470df8bba27a7bc134ed92
7afc886f0b8dfdb1d9c0bac42c30cf76168d2659
/assignment1/cs231n/classifiers/neural_net.py
2df387b7742a9e60c74e4f6f65b8f5bd1f88670b
[]
no_license
LaoJu/cs231n_assignment
928be594591611f788a9ba7e12a3ffa7ad339b95
58e5daf34a167d7373dc2bbe6f5975bf011932bd
refs/heads/master
2020-04-14T02:45:29.104660
2019-02-23T02:08:02
2019-02-23T02:08:02
163,590,960
0
0
null
null
null
null
UTF-8
Python
false
false
10,736
py
from __future__ import print_function import numpy as np import matplotlib.pyplot as plt class TwoLayerNet(object): """ A two-layer fully-connected neural network. The net has an input dimension of N, a hidden layer dimension of H, and performs classification over C classes. We train the network with a softma...
[ "864196621@qq.com" ]
864196621@qq.com
ac63fc806677d2239cdeb46a809335480b479def
a223b2aeda331990bc7c5f93623eafbe500d503a
/todopro/todoapp/urls.py
762961463aad40f4faf1ff2a93bb09220f8b11ea
[]
no_license
DivyaKb15/divyatodopro
e00c3df8282b7d67a1845919284d97ef941f6639
b3b03ae4a4964ae9ddd6688425c1f2cb39ce1ac3
refs/heads/master
2023-02-21T16:39:51.371976
2021-01-26T18:53:11
2021-01-26T18:53:11
333,183,599
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
from django.urls import path, include from . import views urlpatterns = [ path('', views.task_view, name='task_view'), path('delete/<int:id>/', views.delete, name='delete'), path('update/<int:id>/', views.update, name='update'), path('cvtask/',views.TaskListView.as_view(),name='cvtask'), path('cvde...
[ "safirmeeyana15@gmail.com" ]
safirmeeyana15@gmail.com
7c0e2ffee816a35c2d057419a714c80b1ebecc75
f06cf7cf7fe12a50f45edbd56b20acfc28606a44
/Linked List/intersection_point_in_list.py
83f9cde211bce58dc409bc7e8d8650e0d63b775f
[]
no_license
prashant97sikarwar/data-structure-and-algorithms
53e016e50cf2ba26d2504f5a5f1ba39ca35f13f4
3ebe367c96a7bd82a427fc2beb7c8edd37247de7
refs/heads/master
2023-01-18T16:15:44.935431
2020-11-22T14:59:54
2020-11-22T14:59:54
257,667,068
0
0
null
2020-10-02T09:59:27
2020-04-21T17:32:43
Python
UTF-8
Python
false
false
456
py
class node: def __init__(self,val): self.next = None self.data = val def intersetPoint(head_a,head_b): curr = head_a purr = head_b while curr is not None: curr.data = curr.data - 1001 curr = curr.next ans = -1 while purr is not None: if purr.data >= 0: ...
[ "prashant97sikarwar@gmail.com" ]
prashant97sikarwar@gmail.com
57e3696503c3443d6e57294c7da7aefd27b261f9
244ecfc2017a48c70b74556be8c188e7a4815848
/res/scripts/client/gui/shared/utils/requesters/requestscontroller.py
be2c8caecc9dbab9b1fc757b83af66b425b517d0
[]
no_license
webiumsk/WOT-0.9.12
c1e1259411ba1e6c7b02cd6408b731419d3174e5
5be5fd9186f335e7bae88c9761c378ff5fbf5351
refs/heads/master
2021-01-10T01:38:36.523788
2015-11-18T11:33:37
2015-11-18T11:33:37
46,414,438
1
0
null
null
null
null
WINDOWS-1250
Python
false
false
5,567
py
# 2015.11.18 11:57:02 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/shared/utils/requesters/RequestsController.py from functools import partial import BigWorld from debug_utils import LOG_ERROR, LOG_DEBUG from shared_utils import safeCancelCallback from gui.shared.rq_cooldown import RequestCooldow...
[ "info@webium.sk" ]
info@webium.sk
f8850a5b26ff755a3a915e6f201bae0e908c9be5
6b20c1fb1b9cbc117f4de21e8a24259d1031100e
/scripts/average_vel.py
c773c8cf655a8934df2befccd8723c6788b74a3e
[]
no_license
Gastd/motion_ctrl
4e943fe35df0b4551712211d3d0130e611975e22
646e4ae933dcc3f658010753aa74f4f00767452f
refs/heads/main
2023-07-11T08:04:24.722041
2021-08-05T02:12:42
2021-08-05T02:12:42
301,256,131
1
1
null
2020-10-08T19:07:24
2020-10-05T00:31:23
CMake
UTF-8
Python
false
false
1,339
py
#!/usr/bin/env python import rospy from std_msgs.msg import String from geometry_msgs.msg import Twist linear_sum = 0 n_linear = 0 angular_sum = 0 n_angular = 0 def callback(data): global linear_sum global n_linear global angular_sum global n_angular linear_vel = data.linear.x angular_vel = da...
[ "gabriel.araujo.5000@gmail.com" ]
gabriel.araujo.5000@gmail.com
41240dabfbfc53853e0c6c4c1b66afbc663ebd85
b1d764d60b9bedd947ff14196dd035eebb165bae
/code kata/alphabet.py
503245fe133795ad2e96ab6dc3662e6cacea356a
[]
no_license
Manovah/guvi
8d8cbb8dd9f16fcda4a155b8c72d2f50c165f82b
8038042e549fe1561111fd0a4da7654791851ccb
refs/heads/master
2020-06-03T00:07:55.814847
2019-06-22T13:55:02
2019-06-22T13:55:02
191,355,081
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
x=input() z=['q','w','e','r','t','y','u','i','o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n','m'] if x in z: print('Alphabet') else: print('No')
[ "noreply@github.com" ]
Manovah.noreply@github.com
ea48cfb55a448b9c63e0fba03fe39b8f9193557e
092dd2cb4c28745a6e63c63d5ad79fcb8ef2cea2
/bax/models/exe_path.py
de7eceeac3b1bb6b0251a1e53322c4596ef2dd3f
[]
no_license
willieneis/bayesian-algorithm-execution
fdd2ffc7b9ee3ca819d63ff12fa1ca377ee2812c
d75d1a89bb566e62662e4d010d91893bfe1ee9f4
refs/heads/main
2023-07-19T13:29:44.473572
2021-09-03T23:01:55
2021-09-03T23:01:55
308,774,451
45
7
null
null
null
null
UTF-8
Python
false
false
1,518
py
""" Classes for execution paths. """ from argparse import Namespace import copy from ..util.base import Base from ..util.misc_util import dict_to_namespace class ExePath(Base): """ Execution path, which takes a model as input. """ def set_params(self, params): """Set self.params, the parame...
[ "willie.neiswanger@gmail.com" ]
willie.neiswanger@gmail.com
c594f78b733e395a7d369bd262c7cea585fbe150
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03705/s081733428.py
98e064ca6f0ef5b9a31b74e618de42bb0a8fbdba
[]
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
150
py
N, A, B = map(int,input().split()) min = A * (N - 1) + B max = B * (N - 1) + A if (max - min) + 1 < 0: print("0") else: print((max - min) + 1)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0f1b7cefd176b3539ee02af4cd1b8710084794b8
4e7797d520a68ded9bf77be555c13aff643389f1
/tests/test_helper.py
e448b376e57a6f296b955df3b01a3e0df4fcf3f7
[]
no_license
JBorrow/seagen
654cf06b3191fbd00faaa313afb2822b7ea396f2
fb1dbc0736593cc2cd6364812e1fcc0fabe3eb32
refs/heads/master
2021-04-27T00:20:41.761132
2018-03-06T15:23:18
2018-03-06T15:23:18
123,797,126
0
0
null
null
null
null
UTF-8
Python
false
false
743
py
""" Tests the helper functions """ import numpy as np import matplotlib.pyplot as plt import mpl_toolkits.mplot3d.axes3d as axes3d from seagen.helper import polar_to_cartesian def test_polar_to_cartesian(): """ Tests the polar to cartesian conversion by ensuring that r is conserved. """ phi = np...
[ "joshua.borrow@durham.ac.uk" ]
joshua.borrow@durham.ac.uk
4a59095a1135564021b5b7317d97b177fe85039d
220b973be371b7effdb27c5effbac8ad1da46485
/backEnd/pagerank_mapreduce/pg_reducer_generator.py
563ecae167504f634f63c983d991fae785d170a0
[]
no_license
wlz1028/pl_works
b782992fce53e6055d24e2c3921d97ed69b6c930
708f23696c7d9fe96d29fa430f94d0fa1d0ee42e
refs/heads/master
2020-04-06T03:30:02.220604
2014-12-03T23:37:23
2014-12-03T23:37:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
936
py
import sys last = None pg = 0 beta = 0.8 N = 4 counter = 0 def get_stdin(stdin): for line in stdin: yeild def reducer(): lines = get_stdin(sys.stdin) for line in lines: data = line.strip().split('\t') page_id,value = data[0],data[1] #If new page_id detect, #print ...
[ "wlz1028@gmail.com" ]
wlz1028@gmail.com
537a003979fe6e0256692f1c18d9ca8c8cea3a2c
4f01079e1741a290398862dba4452cb23615d0d6
/pioneer3at_control/scripts/nmpcCodeGeneration.py
097a4a18171d59b2c1bacca0f4d74a9ab74d92d2
[]
no_license
fmccastro/pioneer3at-nmpc
faa7a2d65fc0e611169ce79385b384983f006b1d
1f317c4c7d8038447b9cb24b1ca846b1daafe803
refs/heads/main
2023-08-04T06:05:22.638575
2021-09-13T20:51:06
2021-09-13T20:51:06
306,483,268
0
0
null
null
null
null
UTF-8
Python
false
false
1,782
py
import numpy as np from sys import path path.append(r"/home/fmccastro/Thesis_RoverNavigation/ROS_workspaces/ws_1/src/casadi-linux-py27-v3.5.1-64bit") from casadi import * if __name__ == '__main__': """ x = MX.sym("x") # States y = MX.sym("y") theta = MX.sym("theta") states = vertcat...
[ "franciscomccastro@gmail.com" ]
franciscomccastro@gmail.com
eed70d8d22b65175cdefba66cf6a140d701df085
668c6048babf844559bfad92f6da8c58aa582d7f
/bin/fairseq_plugins/criterions/translating_lm.py
18ae5f458ef03c9157c93e1def3fb58c31e8288d
[]
no_license
jancijen/oas-hepb
5cd25f443bcf1faa0a303aad9fd8b681c5293fc6
56407211406c86021bd740515a6f87123cbf0bf4
refs/heads/master
2022-11-25T15:05:55.387183
2020-08-01T23:33:49
2020-08-01T23:33:49
284,305,594
0
0
null
null
null
null
UTF-8
Python
false
false
3,857
py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import math import logging import torch import torch.nn.functional as F from fairseq import metrics, utils from fairseq.criterions import Fai...
[ "jan.jendrusak@merck.com" ]
jan.jendrusak@merck.com
80e7e24fa177ebc144d6d0a696111748c980e580
6cd94226c3fc1137beccad83c049ae95ffd4abfb
/0416/ntust/mysite/mysite/urls.py
87bb709a5cd2de07b07d1141edf5821d7c71e6cf
[]
no_license
chuang0709/JerryHW
2cd651030fb26902a568e0c06ea30c5e7733842f
b1737326b624ef15f342d0b796f591e8f1a57c4f
refs/heads/master
2021-09-15T04:40:26.351888
2018-05-25T15:30:01
2018-05-25T15:30:01
125,646,902
0
0
null
null
null
null
UTF-8
Python
false
false
807
py
"""mysite 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-bas...
[ "chunang0709@gmail.com" ]
chunang0709@gmail.com
03c777de9d4267ee5f7e331f86059ab4d864b1fe
da623e0caaab4767bc075bfa1ebd1af6da70a684
/tools/grading-tools/push-problemsets.py
a8b9d1e114d44bffbd9442ee83ea59352cbfcafb
[]
no_license
alex-ly/hcf-hacking
7408638fffea54e98c32eb03925b538c4a2ee4fc
9d9456fba8af04122cc49d14ea48743d91683ea1
refs/heads/master
2020-03-19T09:00:22.298295
2018-06-06T01:02:26
2018-06-06T01:02:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,197
py
import os import sys import subprocess import time OUTBOUND = os.path.join(os.environ.get('HOME'), "exchange/problemsets/outbound") USERS_ROOT = "/user-problemsets" def slashed(x): if x.endswith("/"): return x else: return x + "/" def list_users(): for x in os.listdir(USERS_ROOT): ...
[ "noreply@github.com" ]
alex-ly.noreply@github.com
f4e145be26561a2879e8628f18ff091439ea4389
58c092b831bad39b6bec3ba9e778d28b2631fbc3
/predict.py
b1892ddade50534ae42575fce0fd047f1fc256e9
[ "MIT" ]
permissive
StevenCyb/Inpainting-using-Context-Encoder-in-Generative-Adversarial-Network-V2
62bce3661f5e172ecb12f89b32e5a899df616221
0ddacabaef4829b1ca6b11b14bb0baaaec3f5ca2
refs/heads/master
2020-07-24T09:24:55.869033
2019-10-15T16:05:46
2019-10-15T16:05:46
207,881,476
1
0
null
null
null
null
UTF-8
Python
false
false
1,305
py
import os import cv2 import argparse import numpy as np from gan_ce.network import Network # Define arguments with there default values ap = argparse.ArgumentParser() ap.add_argument("-i", "--image", required=True, help="Path to the image.") ap.add_argument("-m", "--mask", required=True, help="Path to the mask.") ap.a...
[ "41087154+StevenCyb@users.noreply.github.com" ]
41087154+StevenCyb@users.noreply.github.com
7b74ecf9cdd1b909e24e5e576f8de6229d90b73b
74cab51fa52be54dfd720ba130f0c0435d99c8cd
/xray/scratch/00-VICTRE_pipeline/01-pipeline_codes/x-ray_runs/run_xray_jobs.py
9d528cc33e7ea4057dd677b530e765a726b82271
[]
no_license
shenghh2015/fda_breast_phantom
a57f82fc280783b1c3ca48308565beeff87e6530
dfb9d8613ed5cf0e5812a674027a5d200ffc91bd
refs/heads/main
2023-06-04T10:51:09.736674
2021-06-17T19:21:27
2021-06-17T19:21:27
377,733,048
0
1
null
null
null
null
UTF-8
Python
false
false
643
py
import os import argparse #os.chdir('/scratch/00-VICTRE_pipeline/00-base_input_files/x-ray_runs/') parser = argparse.ArgumentParser() parser.add_argument("--num_jobs",type=int) parser.add_argument("--gpu_num",type=int) args = parser.parse_args() path = os.getcwd() print('The current path:{}'.format(path)) os.ch...
[ "shenghh2015@gmail.com" ]
shenghh2015@gmail.com
8ed4b3e34cedad23e166bd98e3442803b499d5b1
edbb9542b29b2b84c1b05d1f51275c7656ae4ca8
/run.py
3d8c8af98fc7e1c39014706e6931fd111d774dff
[]
no_license
Ayush19-01/GCI-Unit-Testing
ec0f07814b66ef00e8fb171d086cca43130131a9
27b0a6cc42138c222f3f978e803b826dd3f3d5ab
refs/heads/master
2021-01-02T15:41:55.592147
2020-02-11T05:53:42
2020-02-11T05:53:42
239,687,217
0
0
null
null
null
null
UTF-8
Python
false
false
3,270
py
# Made for the sole purpose of GCI 2019 import random import numpy as np import os import time os.system("clear") def prRed(skk): return str("\033[91m{}\033[00m" .format(skk)) def prGreen(skk): return str("\033[92m{}\033[00m" .format(skk)) def prYellow(skk): return str("\033[93m{}\033[00m" .format(skk)) def p...
[ "noreply@github.com" ]
Ayush19-01.noreply@github.com
0aae26c696704b04d111a90fce0f8d28ce988fbe
edc29cf6a557dd3f10ac55088493b66038f9508c
/ocean/article/admin.py
d26ce96c9f49b84e8011d5d104752d3638d92446
[]
no_license
kong2030/python
2b3550299f7066ae1f9b0ecf7cd064a5721c90aa
603682d1dcd11be0e248aa0573a7be99b8c2e7a9
refs/heads/master
2022-07-16T19:39:22.877703
2022-07-04T04:12:45
2022-07-04T04:12:45
144,438,684
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from models import * import datetime # Register your models here. # Module admin model class ArticleAdmin(admin.ModelAdmin): # show the key info list_display = ('title', 'keyword', 'app_system') # 设置哪些字段可以...
[ "kong2030@qq.com" ]
kong2030@qq.com
5a0e92c01b0a60624933262537e50977be65a81e
0be4be42d6cc2db04d4e6832e2f1c292b0dbd332
/acribia_test/urls.py
7a77e3f739c1dc0d1a94f48114926bd869a4f80a
[]
no_license
NikSavilov/acribia_test
a1a305dc50d694c2f7f98fae7d4cfa16391df843
265266f85a919e2210289b916e0dd22815026ada
refs/heads/master
2020-11-28T01:20:20.248678
2019-12-23T03:48:44
2019-12-23T03:48:44
229,667,551
0
0
null
null
null
null
UTF-8
Python
false
false
804
py
"""acribia_test 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') Class-...
[ "31826550+NikSavilov@users.noreply.github.com" ]
31826550+NikSavilov@users.noreply.github.com
98151bb3945bdf399f1d80082c5852c8b1ed1486
89a670d5fa58a2c40e8eca942420bc8da03352b6
/sistema/sigestar/appsistema/admin.py
6e6bd425b48307e82ab55e628f831d72f3fa9056
[]
no_license
necritos/sigestar
f38378bff8a83f5f9695afd5b551082b8f04ae0c
e4ad3342d4e6606890422d9c499fae9bfb557c4c
refs/heads/master
2020-05-18T00:44:05.987232
2013-08-08T22:50:53
2013-08-08T22:50:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
from django.contrib import admin from appsistema.models import Categoria, Solicitud, Tipo, Rubro admin.site.register(Categoria) admin.site.register(Tipo) admin.site.register(Solicitud) admin.site.register(Rubro)
[ "manuelriosvega@gmail.com" ]
manuelriosvega@gmail.com
03b34f6a847f901f34b14a6a7fc01479413f66db
395f8a649669e6e7095a4ab494c555844298b945
/mastery/mastery/wsgi.py
899174eca097f275a257e0d5ec1a1b2df9a1be7c
[]
no_license
bradjerkson/10000HourRule
c76939ab9f9ef8c3df03b3d3cc9717147026ee27
631dbeded938ca6ba7b76ae896dd8ed847a8094a
refs/heads/master
2023-03-15T02:11:59.543875
2021-03-20T06:18:31
2021-03-20T06:18:31
280,025,509
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
""" WSGI config for mastery project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
[ "bradley_jackson@ymail.com" ]
bradley_jackson@ymail.com
4fd3f6a581d68839b003173568914ea6e56d657b
841c090b8c5ad93a386eed44b24eaa77c8aadff5
/Thanatos/models.py
098e173314240069a4f61809cf36c0594ca55d30
[]
no_license
jslatte/tartaros
9b765e750b212bedc5e054985404a884c951418a
cc14053da99f6671b12e03ef5dc1717c3d9e4aa5
refs/heads/master
2021-01-01T17:20:54.156453
2014-07-29T16:30:35
2014-07-29T16:30:35
8,034,842
1
0
null
null
null
null
UTF-8
Python
false
false
8,494
py
#################################################################################################### # # Copyright (c) by Jonathan Slattery # #################################################################################################### ############################################################################...
[ "Jonathan.Slattery@avt-usa.com" ]
Jonathan.Slattery@avt-usa.com
a1bca283975a1c1d1a69770d49be28717d7f7ede
93f36c1c6097691de7bc2be43f8c714a4736f8be
/test/test_service.py
5dddcd7fe6e2be092ebee4fd9c17e513ee0235d8
[]
no_license
subscreasy/subscreasy-python-client
28e5e54f6714af6081343a0550a3591d76ba7423
f74e572226bdd381f987b95954ceefacc7fb2b07
refs/heads/master
2020-03-18T22:36:53.227457
2018-05-30T09:11:24
2018-05-30T09:11:24
135,354,585
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
# coding: utf-8 """ Api Documentation Api Documentation # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.com.kodfarki.subscreasy.client...
[ "halil.karakose@kodfarki.com" ]
halil.karakose@kodfarki.com
cf90adffa041ea62709451a2f6cf519949fce841
b677894966f2ae2d0585a31f163a362e41a3eae0
/ns3/ns-3.26/src/olsr/examples/wscript
35a0d90e4cb07c3aaf83654d02db5ca1a0ebcde7
[ "LicenseRef-scancode-free-unknown", "GPL-2.0-only", "Apache-2.0" ]
permissive
cyliustack/clusim
667a9eef2e1ea8dad1511fd405f3191d150a04a8
cbedcf671ba19fded26e4776c0e068f81f068dfd
refs/heads/master
2022-10-06T20:14:43.052930
2022-10-01T19:42:19
2022-10-01T19:42:19
99,692,344
7
3
Apache-2.0
2018-07-04T10:09:24
2017-08-08T12:51:33
Python
UTF-8
Python
false
false
466
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*- def build(bld): obj = bld.create_ns3_program('simple-point-to-point-olsr', ['point-to-point', 'internet', 'olsr', 'applications', 'wifi']) obj.source = 'simple-point-to-point-olsr.cc' obj =...
[ "you@example.com" ]
you@example.com
e1e0082878d72d7286dad3889b135edbead96d79
0dabbacd26c74d4852e4f2bb7f17fbbfa7901f65
/routes.py
4690bcd2a7326825058242a9397a458cf59dbd0d
[]
no_license
Ommer/collection-of-learning
e045ff25b3def93f21ff53e10aae6e91598bfa6d
40a0fcae737e4bc5356361cb4af4ed848f3cff13
refs/heads/master
2021-01-10T15:01:34.685024
2015-12-21T07:54:51
2015-12-21T07:54:51
48,307,482
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
from flask import Flask, render_template app = Flask(__name__) @app.route("/") def index(): return render_template("index.html") @app.route("/about") def about(): return render_template("about.html") if __name__ == "__main__": app.run(debug=True,host='192.168.1.192')
[ "osimjee@canoga.com" ]
osimjee@canoga.com
b8a9b37ebf44bd54afb2999b4fb930b8506cd0bd
2caf4fc121b6df2fc468c5d3c0e02d5e611b3c70
/src/contact/forms.py
2fa325c3db4019dfa699d4205a4d506a9ad568a2
[]
no_license
plerzundi/caffeteira
ba6faa376b830dc68bfe8abc0e25ccbbe346ce4a
59ed2c6f22a1e120a6a72c6cd1f58595edab0762
refs/heads/master
2020-03-21T01:30:11.012665
2018-06-21T22:14:58
2018-06-21T22:14:58
137,946,086
1
0
null
null
null
null
UTF-8
Python
false
false
577
py
from django import forms class ContactForm(forms.Form): name = forms.CharField(label="Nombre", required=True, widget=forms.TextInput( attrs={'class': 'form-control', 'placeholder': 'Escribe tu nombre..'} )) email = forms.EmailField(label="Email", required=True, widget=forms.EmailInput( att...
[ "patriciolerzundi@gmail.com" ]
patriciolerzundi@gmail.com
e389593015b15209f4eed8fbdcdc15c6c7c1fdce
ae08bf2b937da68cac4c2fb0e926383012483fd8
/xpath/6.04-news_xpaht3.py
e5b90e7007bebe5636fde93b0cd4f134afb69c43
[]
no_license
hiei17/Crawler_Learning_Record
67f57bfdd15f84c63908c37da24e62f8f8cab8f9
99fb7d36451994e232670067a6a51699bd47c644
refs/heads/master
2020-04-10T10:13:33.686807
2019-01-26T14:28:01
2019-01-26T14:28:01
160,958,966
0
0
null
null
null
null
UTF-8
Python
false
false
648
py
from lxml import etree html = """ <html> <body> <ul> <li>1 <a href="">子</a> </li> <li>2 <a href="">子</a> </li> <li>3 <a href="">子</a> </li> <li>4 <a href="">子</a> </li> <li>5 <a href="">子</a> </li> </ul> </...
[ "1311822904@qq.com" ]
1311822904@qq.com
95ce44a1ea35c2f7d70624237f2a1f58ee321bed
05d84ca54c3866a546dc9eb03bf904552845b114
/main/migrations/0005_auto_20181110_0140.py
30b6a19f4a470da99c33289b5c2a8bf8c9fb0dfe
[]
no_license
chriscauley/ur-conf
43ba6793995b4a17308844c6ccaeb7e92f50eb1e
17819b750117ce3cb8808d4a6c8702b5234c8dbb
refs/heads/master
2022-12-13T08:38:05.026612
2020-05-11T13:10:53
2020-05-11T13:10:53
155,024,014
0
0
null
2022-12-09T20:29:49
2018-10-28T01:13:40
JavaScript
UTF-8
Python
false
false
368
py
# Generated by Django 2.1.2 on 2018-11-10 01:40 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main', '0004_auto_20181109_1624'), ] operations = [ migrations.RenameField( model_name='achievement', old_name='description'...
[ "chris@lablackey.com" ]
chris@lablackey.com
3916bdf4c6ab077979f7dde11de8de79137bc6e9
e18ef621eb92bb7af2e683fbc0b8c8b638b1ec46
/ACTIVITIES/python/fizzbuzz.py
4b424bb0e42620a78703aec8ffb3046877d6db54
[]
no_license
BPCao/Assignments
496b238ce8c2db101beef80d8538027fca26683e
6144f7a35fdec4b945f69e282b7164cac9f7ddfe
refs/heads/master
2020-04-22T12:32:08.729961
2019-05-02T13:07:19
2019-05-02T13:07:19
170,374,968
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
def fizzBuzz(): num1 = int(input("Please enter a whole number: ")) if num1 % 3 == 0: print ("Fizz") elif num1 % 5 == 0: print ("Buzz") elif num1 % 3 == 0 and num1 % 5 == 0: print ("Fizz Buzz") else: print ("No Fizz Buzz") fizzBuzz()
[ "bach.cao@Bachs-MBP.localdomain" ]
bach.cao@Bachs-MBP.localdomain
2e96b0e4182f1e8509d265aa949acbd7ad06be5d
bba2a950898219fce21da4a9f4b7b29833bce6e6
/main_app/apps.py
e3c718c8303bfb9aa2aa954a03bcb2b8820bd5b9
[]
no_license
jamesthejellyfish/Avybe_challenge
dc01af9731b3d403e6c61f6385b0c626f3045433
da80e0ce73f0c0ca114156da9b9a39d445579d9e
refs/heads/master
2023-03-19T20:03:23.844192
2021-03-12T19:03:42
2021-03-12T19:03:42
346,049,748
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
from django.apps import AppConfig class TestdbConfig(AppConfig): name = 'main_app'
[ "hungergamesnum.1@gmail.com" ]
hungergamesnum.1@gmail.com
970da725868a3f8523a6bfb87725a31b4be2d2aa
7feb434c269ef76b067e6cc87c596c35ec2fd93f
/python/move_pic_to_center.py
608a03de9ccda97e86a953021a0bd5736f707ae9
[]
no_license
Xuyangting/YouYuAutomator
ed2bf428b9a76e76e1585855f37c5cff9ba7639f
f95556173dc0a6a123faa350d29409c0d5fbd320
refs/heads/master
2021-01-16T21:30:22.237596
2017-08-14T06:35:21
2017-08-14T06:35:21
100,235,528
0
0
null
null
null
null
UTF-8
Python
false
false
923
py
# -*- coding:utf-8 -*- import sys import os from ftplib import FTP # 需要创建的文件夹名称,与质量中心执行任务的编号一致 dirName = sys.argv[1] # 建立连接 def ftp_connect(): ftp = FTP() ftp.connect("10.9.8.42", "21", timeout=10) ftp.login("timen.xu", "xyt407708323") return ftp # 上传文件 def upload_file(ftp, remote_path, local_path...
[ "timen.xu@ruifusoft.com" ]
timen.xu@ruifusoft.com
9753c022074d3fc63489a4c28d1996ab1f5fda97
650a65942fc3a7000f498e1932d4229b3a224524
/python/ray/autoscaler/_private/cli_logger.py
3bdf73d288daa6f30efa997c40479bf582b31860
[ "Apache-2.0", "MIT" ]
permissive
verystrongjoe/ray
52bd9ef627c736d325aee22148012183997d58b6
9f598230ebd9b84af8dce6a1b144d60f384e9266
refs/heads/master
2023-01-27T23:37:13.205094
2020-11-25T17:26:53
2020-11-25T17:26:53
288,704,026
0
0
Apache-2.0
2020-08-19T10:39:06
2020-08-19T10:39:05
null
UTF-8
Python
false
false
27,412
py
"""Logger implementing the Command Line Interface. A replacement for the standard Python `logging` API designed for implementing a better CLI UX for the cluster launcher. Supports color, bold text, italics, underlines, etc. (depending on TTY features) as well as indentation and other structured output. """ import sy...
[ "noreply@github.com" ]
verystrongjoe.noreply@github.com
d973271777c8e9494f9733d1dc4e18c88d81190c
9b97735e1004126be4eac3e71e7821132efbb545
/decorators_functional_and_class_based/decorators_logging_example.py
4369fb63071ff329a340df0218127ea87c613566
[]
no_license
danstelian/python_misc
bf52c5fa7941f4139ede6fbca0002dd9d3ee43d1
1613b6cecb05d8d44e08d7df4e2694bfc4476019
refs/heads/master
2021-04-26T22:56:50.496421
2018-04-02T05:38:26
2018-04-02T05:38:26
123,901,042
0
0
null
null
null
null
UTF-8
Python
false
false
758
py
import logging import time from functools import wraps def logger_decorator(func): logging.basicConfig(filename=f'{func.__name__}.log', level=logging.INFO) @wraps(func) def wrapper(*args): logging.info(f'ran with args: {args}') return func(*args) return wrapper def timer_decorator(...
[ "stelian.dm@gmail.com" ]
stelian.dm@gmail.com
64ee4f9020649bc64f22d45e7da73125a89815e5
19cccae9f14fef24f87c8cded25b9ed8ac3a4c4e
/build/ros_vlp_noswing/catkin_generated/pkg.develspace.context.pc.py
d6f2086fbe66d1bc9179608bcb2a3766fbd233ea
[]
no_license
shingyo12/catkin_ws
ab70d41ad6aa54a2c40a7b24adc496dc46f3c7c2
68547f806e72156043408dae664b98b15bd0011e
refs/heads/master
2020-04-07T19:37:16.966634
2018-12-13T08:17:31
2018-12-13T08:17:31
158,648,175
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "ros_vlp_noswing" PROJECT_SPACE_DIR = ...
[ "shingyo12@gmail.com" ]
shingyo12@gmail.com
9c685722409e3518af6a7fb6f46c6e4c518ffa8c
4e7b0dd419e3b6039d44cb10cc7f7e0c9eea521b
/mysite/polls/models.py
6206280a57d233e69597378dd758b68ce4bff6ca
[]
no_license
zsx0728/Python
5cd4fd36738e36c2e93f8ffc23457e24b444dc12
c53de64f82b37199edd8de21ad0cebc44c86c52d
refs/heads/master
2022-08-27T10:28:06.657966
2022-07-29T03:00:22
2022-07-29T03:00:22
157,692,838
0
0
null
null
null
null
UTF-8
Python
false
false
862
py
import datetime from django.db import models from django.utils import timezone # Create your models here. class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self.question_text def was_publ...
[ "root@agent.domain.com" ]
root@agent.domain.com
8a90f1562daaf6f29ced5e9afb0f9c2d898e3578
7a5a3eb831825fb0c0e80957278d95332e5f2258
/core/RIG/Control/mirrorCtlShp/mirrorCtlShp.py
cf45e216ce822ca1791c86f01caf11de51c3ea90
[]
no_license
lefan2016/MPToolkit
e76cee2be10558dd97f228789d0e05bca4deebfc
5b3d1cf7a83b9eeda57919722e353ada7a4f7f6b
refs/heads/master
2020-04-23T11:05:02.816596
2015-12-17T06:26:32
2015-12-17T07:08:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,722
py
#======================================== # author: changlong.zang # mail: zclongpop@163.com # date: Tue, 05 May 2015 11:44:00 #======================================== import os.path, re, pymel.core import maya.cmds as mc from mpUtils import scriptTool, uiTool, mayaTool #--+--+--+--+--+--+--+--+--+--+--+--+--+--+-...
[ "zclongpop123@163.com" ]
zclongpop123@163.com
ec8f1f0244c97e09ca218ea9d71d4a57ad698723
34178492c2e1fb21088f84f46deaef3bd0d1d910
/EXP/solver.py
11bb83794bc36ae9c0b760d64bd07a061628dc6d
[]
no_license
gururajraop/StarGANMask
090f8f9716dc8d530d1263acaa340d91a8a17099
f72f5558eb09397db78b26596f2f00af3f10cf42
refs/heads/master
2021-10-25T04:48:22.204771
2019-04-01T09:17:23
2019-04-01T09:17:23
176,917,822
0
0
null
null
null
null
UTF-8
Python
false
false
29,659
py
from model import Generator from model import Discriminator from torch.autograd import Variable from torchvision.utils import save_image import torch import torch.nn.functional as F import numpy as np import os import time import datetime class Solver(object): """Solver for training and testing StarGAN.""" d...
[ "gururajraop@gmail.com" ]
gururajraop@gmail.com
f6cd8ddf03f569cc1053b2976871a095db6d6ca0
41b599f17f8d51f5252c7e409a0e67b9e8a62605
/pipeline/pipeline_stack.py
87e7f068f561f5bf7f8505ba20cec720ed4a6f9b
[ "MIT" ]
permissive
timjbruce/monorepo-mulitregion
15ac878f7d53675948d35d48f8f9faad79dee914
6ac75670d6e6bc1013b8bca827d2d5da2ed7b627
refs/heads/main
2023-06-14T22:34:27.876003
2021-07-06T21:21:28
2021-07-06T21:21:28
383,593,185
0
0
null
null
null
null
UTF-8
Python
false
false
12,225
py
###Non-productrion Code### from aws_cdk import ( aws_codebuild as _codebuild, aws_codecommit as _codecommit, aws_codepipeline as _codepipeline, aws_codepipeline_actions as _codepipeline_actions, aws_iam as _iam, aws_s3 as _s3, core as cdk ) class PipelineStack(cdk.Stack): def __init__...
[ "brucetim@amazon.com" ]
brucetim@amazon.com
6a24c3144a5aa3f2beef03d9028955e776f49f06
c3189c74a58f38e4e58dd7693ce3766aed4c255b
/retrieveData.py
d7e32466bce60078f1702d430b4623a539b60eb3
[]
no_license
m-kopf/CookingCompendium
b03c76f71cdfa3495e4bb3f2c073b1f8e548409d
8a69520e1ce54ee0a7cea3305ebd73fdaea2f88b
refs/heads/master
2020-12-26T23:59:40.941808
2020-02-02T19:08:46
2020-02-02T19:08:46
237,697,718
0
0
null
2020-02-02T00:28:52
2020-02-02T00:28:51
null
UTF-8
Python
false
false
837
py
import sqlite3 def readSqliteTable(): try: sqliteConnection = sqlite3.connect('Recipes.db') cursor = sqliteConnection.cursor() print ("Connection to SQLite") sqlite_select_query = """SELECT * from Recipe""" cursor.execute(sqlite_select_query) records = cursor.fetchall() print("Total row...
[ "wendykopf@Wendys-MacBook-Pro.local" ]
wendykopf@Wendys-MacBook-Pro.local
ea922d5b914d5cfe09d8f675bb97de8eb4ab9384
ac90b675d8f566bfefca6033c448f642190f0cf9
/learning/model/autoencoder.py
48fe7cdc385d49fda176aad780abc70ec8e07fa3
[]
no_license
winbergs/faces-shapemodeling
b2175a3da7b880eca99e689f8a41308ccf8115cb
e177210c419607bec1da0677189baeb1478fa542
refs/heads/master
2023-03-24T02:07:01.018978
2020-05-29T07:59:22
2020-05-29T07:59:22
526,609,070
1
0
null
2022-08-19T13:00:37
2022-08-19T13:00:36
null
UTF-8
Python
false
false
2,529
py
import torch import torch.nn as nn class Autoencoder(nn.Module): def __init__(self, num_points): super(Autoencoder, self).__init__() self.num_points = num_points self.point_net_encoder = nn.Sequential( nn.Conv1d(in_channels=3, out_channels=64, stride=1, kernel_size=1), ...
[ "daniel@sparber.io" ]
daniel@sparber.io
35a1716ba124832d9905c592d9e96d33a27971ee
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/cloud/dialogflow/v2/dialogflow-v2-py/google/cloud/dialogflow_v2/services/intents/pagers.py
f5030b36777fe129d348bab6f6e1d7c6da9472c0
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,626
py
# -*- coding: utf-8 -*- # Copyright 2020 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 o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
1e990455989a68bf3a32d77fefe0c72200afa65d
77a708a1fc108a422b51d016259e4b84d9c33a7f
/multiplicities_list2.py
98ebc802265f4f4b231b432c8f445dd3239ad03b
[]
no_license
weipanchang/project
f0f85992a2eceb9b3558466299b17b8adbee1df3
129c08534efe2332fb622a6a26e26df29b8b2632
refs/heads/master
2022-07-13T01:38:32.562827
2022-05-30T18:07:16
2022-05-30T18:07:16
17,384,611
0
0
null
null
null
null
UTF-8
Python
false
false
1,891
py
#!/usr/bin/python #author: william #date: #purpose import math def do_factorial(n): if n == 1: return 1 else: return n * do_factorial(n-1) def do_factor(number): n = int((math.sqrt((number))) + 1) factor = [x for x in range(2,n+1) if number % x == 0] return sorted(factor) def do_primary(l): ...
[ "weipanchang@hotmail.com" ]
weipanchang@hotmail.com
25d0dce6961d9519df4a63364a28340e11dc5e49
7c6d62bc3d9d103611da203e0f648b5e549968d6
/p8/p8p2.py
f8ca9f0c8266151c6524a327177815ef14b23986
[]
no_license
chowsychoch/Programming-1-
632e59c473068c8694be760c903a372780fba64a
959555396134076443bc171d75de757143e8c282
refs/heads/master
2023-01-11T10:58:56.938941
2020-11-04T09:40:51
2020-11-04T09:40:51
306,856,483
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
#prompt user for int #print out input # if user input < 0: #print out error # set number as one #while num is smaller or equal to input #set index to one #while index is smaller than user input #print out index * num #increment by one #print space line # num increment by one # print finished ...
[ "cho.cho@ucdconnect.ie" ]
cho.cho@ucdconnect.ie
04b20c8ddcc8ccb1bcd6fdc132a5d9aba83a58dd
668ad558bd89c0b0c9a1f97ae2a8d3e399622746
/T5/common_gen/eval_common_gen.py
e15d11bb4a92803aec2c6ae198c173fd091221a4
[]
no_license
sonaliserro/w266-commonsenseqa
fdfb92dc4144ab5e41e2c6f910329492ea916151
042570eab5b806ca24854e09df9b7d60762f5bfe
refs/heads/master
2023-01-30T20:36:43.093416
2020-12-10T03:13:44
2020-12-10T03:13:44
297,233,251
1
0
null
null
null
null
UTF-8
Python
false
false
875
py
import nlp from nlgeval import compute_metrics # Load the common_gen validation dataset valid_dataset = nlp.load_dataset('common_gen', split = nlp.Split.VALIDATION) # Generate a references.txt file that contains 1 reference per line output_file = 'references.txt' with open(output_file, 'w') as writer: for idx, r...
[ "sonaliserro@berkeley.edu" ]
sonaliserro@berkeley.edu
9ad6be4c78e74806f22c40d8736604e560f03069
59f635ca237f829c9f420ea7e97e150845e7c131
/src/fuzzyLogicRule/variable/variable.py
36d970ec8f610c82ef214c5a451c40efefa22bff
[]
no_license
Lukeeeeee/FuzzyInferenceWithDRL
38256d4d5f01b552779765a5016ef444977114a4
5dbe4ded544d779a81d72917f2cef03c67b0c4d6
refs/heads/master
2021-03-24T02:48:17.175094
2017-09-12T01:19:12
2017-09-12T01:19:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
737
py
class Variable(object): def __init__(self, name, mf, range): self.name = name self.mf = mf self.linguistic_label = [] for mf_i in mf: self.linguistic_label.append(mf_i.name) self.upper_range = range[1] self.lower_range = range[0] self._value = {}...
[ "lukedong123@gmail.com" ]
lukedong123@gmail.com
544d5169292104d9cf0cb8ed3fc6fb1fe6a174a4
cd8e980b9598040cea3a1a8473f5c8f44a28d760
/toolkit/scripts/webapp/sublist3r.py
dcdcbfe2614342d53f8438cfbad97ed5cf8e0dfc
[]
no_license
whizsail/RedTeam_toolkit
c275f6d2f8878bf5b9eb24e3cf3ec1302929b33b
bb0eb8e5daee46715b0f5bcde8fe74ea41c00774
refs/heads/master
2023-08-15T11:45:07.498961
2021-10-11T12:26:51
2021-10-11T12:26:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
39,472
py
#!/usr/bin/env python # coding: utf-8 # Sublist3r v1.0 # By Ahmed Aboul-Ela - twitter.com/aboul3la import argparse import hashlib import json import multiprocessing import os import random # modules in standard library import re import socket import sys import threading import time from collections import Counter im...
[ "signor.rayan@gmail.com" ]
signor.rayan@gmail.com
6d4f64ec2045276b56dba14ee6b4ad2b1dff62c4
dab891f601d33dbab869672eb035f6bb1c79c8d8
/dirs/crons.py
683aabcdf865b6fbc0b22a2872b37ecf2551f851
[]
no_license
codeforcauseorg-archive/Py-Boot-2021
c8835ed4af2b2cdd1f80d5dff9a12676ef613ea6
6734e7f9b0a8e3c1eb46de11d095fae1c4c49ec7
refs/heads/main
2023-07-17T23:14:47.204035
2021-08-24T06:26:02
2021-08-24T06:26:02
392,699,382
1
0
null
null
null
null
UTF-8
Python
false
false
146
py
from crontab import CronTab cron = CronTab(user='ganga') job = cron.new(command='python file-dispenser.py') job.minute.every(1) cron.write()
[ "anujgargcse@gmail.com" ]
anujgargcse@gmail.com
a43fd59c4508ad46a45261ac67c010c3279895c7
a8ef28945e3103e0f50ed3b33718ab84252bae27
/setup.py
24c4cb1ac57980f3d983c77530a4592696a4801a
[]
no_license
IMIO/cpskin.diazotheme.trendybasic
bbc4c66a0a2a43ae28529bdf5a3f25f6a7a9cce0
fa429b4d39afca575f20fc760dd249160519ddf5
refs/heads/master
2021-01-18T21:57:33.971670
2020-10-29T10:10:52
2020-10-29T10:10:52
30,590,900
0
0
null
null
null
null
UTF-8
Python
false
false
1,299
py
# -*- coding: utf-8 -*- """Installer for the cpskin.diazotheme.trendybasic package.""" version = '0.2.11.dev0' from setuptools import find_packages from setuptools import setup long_description = ( open('README.rst').read() + '\n' + 'Contributors\n' '============\n' + '\n' + open('CONTRIBUTO...
[ "maud.gennart@imio.be" ]
maud.gennart@imio.be
9ddd817fc1bf54e9ca3ca5f047ae01e3ce822ebb
6c5782cee8e8b8a2fe0cd37191b181c037bf66c3
/AlgoExpert/3. Hard/Python/Find Loop/Find Loop.py
304657cfde74af7944f3477b455d198359842f16
[]
no_license
Abhishek-Rout/Competitive-Coding
4ccd440add9d2e3746430750b8cfe11216ec3416
557093f767496a0b1d1a8dc247dec7fe1c1e1dc5
refs/heads/master
2023-08-27T16:11:22.580935
2021-10-21T05:59:30
2021-10-21T05:59:30
291,649,962
15
22
null
2021-10-06T15:37:08
2020-08-31T07:49:11
Python
UTF-8
Python
false
false
364
py
class LinkedList: def __init__(self, value): self.value = value self.next = None # O(n) time | O(1) space def findLoop(head): first = head.next second = head.next.next while first != second: first = first.next second = second.next.next first = head while first != second: first = first...
[ "noreply@github.com" ]
Abhishek-Rout.noreply@github.com
6b3978ff628392431e85d01883dc819ca1140db6
751603b721babb7e1657512baf896c818e5b65d0
/compgraph/mt/memory_watchdog.py
c592ba63631b38e5205539985221fac59091f2fa
[]
no_license
ReddyNick/projects
34d24b4ec258adea6d6b454c6fec03699a2b9ba7
b070baa026b87f45df2a6692d163442ce51244c2
refs/heads/main
2023-06-03T06:07:25.236179
2021-06-22T16:02:39
2021-06-22T16:02:39
379,316,698
0
0
null
null
null
null
UTF-8
Python
false
false
2,156
py
from os import environ, getpid from sys import stderr from threading import Thread, Event from time import sleep from psutil import Process VERBOSE = int(environ.get("VERBOSE", "0")) SLEEP_PERIOD = float(environ.get("WATCHDOG_PERIOD", "100")) / 1000.0 # in msec WIDTH = int(environ.get("PLOT_WIDTH", "100")) // 5 * 5 ...
[ "mango.syrup@yandex.ru" ]
mango.syrup@yandex.ru
9cfb4222acbfff4606c9d9ddd27bb766d4ba51c4
08014244d232f3069469f4d242976942b397b8fb
/app/models/project.py
18eb5a44dcf77945d115e44d8b6900dcd2e8524b
[]
no_license
pengdaan/Automated-test-platform
fd5fb510fd8232418b591d1d58399e7f01a33fd9
dce2d24adef0cd6322ade5a58cbf96462c608ade
refs/heads/main
2023-06-04T08:25:58.246912
2021-05-01T14:27:24
2021-05-01T14:27:24
345,913,011
0
0
null
null
null
null
UTF-8
Python
false
false
3,816
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @文件 :project.py @说明 :项目表 @时间 :2020/08/11 08:58:49 @作者 :Leo @版本 :1.0 """ from sqlalchemy import text from flask_sqlalchemy import orm from app.models.api import Api from app.models.base import Base, db from app.models.case import Cas...
[ "" ]
85cedc808873125c55e46e7b8d735ab98f0e69bb
b6044e62cfa76304ce82a76970107c7834f8b521
/python/basic_gramma/Web development/WSGI/server.py
1b7bb41213acfd12d39da2b4a5bb1c29248457fd
[]
no_license
lxw15337674/Language_learning
869e67221132ee31e7f06600096360431f1f6146
c3abd190fc98bc0482752345d5a39aecb983f043
refs/heads/master
2020-04-16T17:42:36.710187
2017-03-22T10:18:03
2017-03-22T10:18:03
64,550,536
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
#负责启动WSGI服务器,加载applicaiton()函数: #从wsgiref模块带入 from wsgiref.simple_server import make_server #导入我们自己编写的application函数 from dev_webapp import application # 创建一个服务器,IP地址为空,端口是8000,处理函数是application: httpd = make_server('',8000,application) print('Serving HTTP on port 8000') # 开始监听HTTP请求: httpd.serve_forever()
[ "404174262@qq.com" ]
404174262@qq.com
7e3ef551da182d2cd839da07b3a7490fc9878864
889128a951b7d7401243f1d2cb85f29e6e2d4f0b
/sorting algorithms/BFPRT.py
ef63aaafd048d4ac65844d599a7c664c19b41c4a
[]
no_license
Gexeg/lessons
414f7ab54d39eee19d3b1e376aca8f8765151632
25c44ecc1e15d55af6b07615750a15b16d1e517e
refs/heads/master
2021-12-01T06:11:17.547258
2021-11-30T18:48:55
2021-11-30T18:48:55
143,589,951
2
0
null
null
null
null
UTF-8
Python
false
false
1,120
py
import random def find_k(array, k): pivot = find_pivot(array) low_elements = [element for element in array if element < pivot] highs_elements = [element for element in array if element > pivot] pivots = [element for element in array if element == pivot] if k < len(low_elements): return find...
[ "psiondnd@yandex.ru" ]
psiondnd@yandex.ru