blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e679c52587c5f67250e75ee998333ae0c999846a | 689b759ff9d9a2908d68687a8ee45e7776ae1632 | /2장/02-3/02-3-6.py | 3e2f155aa8393c971a522a181d3ca4d6cd666f75 | [] | no_license | s-rang2/python_gongbu | 30d39d65a8022ec4362092f5af979483f1324106 | 69f93f350754bd68061ad3e9daceaff1bc9909fb | refs/heads/master | 2020-04-02T18:19:36.483087 | 2019-01-20T04:57:43 | 2019-01-20T04:57:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | a=[1,2,3,4,5]
a.remove(2)
a.remove(4)
print(a)
| [
"cbedp4109@gmail.com"
] | cbedp4109@gmail.com |
264baf255b2bca5e93b98c68c556e34e01f32929 | 8d41c6194cf695ee9e582eb1fd43daa33df93e6d | /venv/bin/flask | b1828b3543794f119c91580473ac0b4602086f78 | [] | no_license | SalsaFuego/epimetheus | 72a0d92300f26c1feb837b0c187357507b53fb19 | 4ecd0725e385fbcd69839c4df14990354dd57108 | refs/heads/master | 2020-04-12T00:51:21.624362 | 2018-12-20T23:51:16 | 2018-12-20T23:51:16 | 162,214,161 | 0 | 0 | null | 2018-12-20T16:46:08 | 2018-12-18T01:46:52 | HTML | UTF-8 | Python | false | false | 242 | #!/Users/NicChappell/epimetheus/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nwc@nicchappell.com"
] | nwc@nicchappell.com | |
f78d359661a080bf1f544e74b3a9708e24195ac3 | 97c3687c6f05a21ab0db2cdd6ef4424f13e34eec | /app_factory.py | 0217e49c72b84d17763782e45552831542d83aa6 | [
"MIT"
] | permissive | stevenaubertin/wol-honeycomb | d37cca425969efa7cd39024978ff0770ee34579f | 65fb3dfaaf4e314b88f0c560bf7d91188f54725b | refs/heads/master | 2020-12-25T18:32:50.037620 | 2017-06-10T20:37:29 | 2017-06-10T20:37:29 | 93,962,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Flask
import logging
from logging.handlers import RotatingFileHandler
def create_app(name, config='config.ProductionConfig'):
app = Flask(name)
app.config.from_object(config)
handler = RotatingFileHandler(
app.config['LOG_FILENAME']... | [
"stevenaubertin@gmail.com"
] | stevenaubertin@gmail.com |
e666530807ec60e590f8437da2423d0f1a6a50ef | e56d636d961284c6982532ff5e4ae6d091d6f33d | /plot_mutRASprediction.py | 2705a3670813d86126bdc414c86c0334e04f0060 | [] | no_license | labsyspharm/marm2-supplement | df2d39bb7f1969745f6776cd62046c83878ad091 | 7e977899045e3c82199c827a37d79797f4fcf1a9 | refs/heads/main | 2023-04-14T03:24:37.055075 | 2022-08-10T11:03:22 | 2022-08-10T11:03:22 | 406,040,505 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,321 | py | import sys
import os
import pandas as pd
import matplotlib.pyplot as plt
from MARM.estimation import get_model, RAFI, MEKI, PANRAFI
from MARM.analysis import (
read_settings, get_obs_df, read_all_analysis_dataframes,
write_timestamp, get_analysis_results_file, N_RUNS,
average_over_par_index
)
from MARM.pat... | [
"fabian@schaluck.com"
] | fabian@schaluck.com |
991c7a23307169b6224e9045e9ca151f59f9718f | 6faaeee8cf9a533867917f9657399639fb587615 | /__init__.py | daca6ffb405b6961d931705af801777e8418494c | [] | no_license | dimespi/graphanalysis | 2e98f4cb9544afac60de3f697153b44b67730d04 | b93ae4c114add1fa2a49f23276ea31ee895ce66c | refs/heads/master | 2020-04-17T03:48:14.450071 | 2019-01-17T12:28:59 | 2019-01-17T12:28:59 | 166,201,007 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
GraphAnalysis
A QGIS plugin
This plugin lets you visualize and manipulate spatial graphs.
Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
... | [
"noreply@github.com"
] | noreply@github.com |
5d3b47feb61b8e9837181a37c3af70573ce5b221 | 1a9891bcb79c25790814479cef3b49a82cb125ac | /engine/tv/qqtv.py | ddf899427d1fbba247dbc07931aa9c6c4f671b56 | [] | no_license | ifnfn/haha_video | be1e40f08123c6296929e2c04627fae6649b4544 | 5dc9d22900028a5f25b97e804f0abbeb8f19e125 | refs/heads/master | 2020-09-11T10:37:24.070263 | 2019-11-16T02:45:05 | 2019-11-16T02:45:05 | 222,035,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | #! /usr/bin/python3
# -*- coding: utf-8 -*-
import re
from kola import LivetvMenu
from .common import PRIOR_QQ
from .livetvdb import LivetvParser
# 腾讯直播电视
class ParserQQLivetv(LivetvParser):
def __init__(self):
super().__init__()
self.tvName = '腾讯'
self.order = PRIOR_QQ
self.cm... | [
"zhuzhg@nationalchip.com"
] | zhuzhg@nationalchip.com |
5b7b8e26737c91e22d22f1d31866a41d07b52e92 | 4c0ed006fe9c585a61a7e959e05f5cf0fd96716b | /Python scripts/Libraries/n-d-graphics.py | 8a074b0e75e9e405fb071a7bebd9440e760c77fd | [] | no_license | Lasagnenator/Random-Projects | 0ba77de5735ac7731ca8462b0211560b9700caae | 2ceb0c8bb525d0d3a084f94bd1c1dcbe7c0ee3df | refs/heads/master | 2020-04-05T04:05:14.733290 | 2019-03-29T12:13:17 | 2019-03-29T12:13:17 | 156,533,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | #n-dimensional projection
class DimensionError(ValueError):pass
class Point(object):
def __init__(self, coordinates):
self.dimensions = len(coordinates)
self.coordinates = coordinate
def project(self, plane, focal_point):
"""plane is a list of coordinates (reverse) specifying ... | [
"noreply@github.com"
] | noreply@github.com |
657f8312b0572117067a0aee26093d99e6af83d1 | ab92f78bf19c5a85bbf4e1b96a88b51e35be8f61 | /新增資料夾/ulcargui.py | 526daaf860025195e16ba61600576d836f58e6b3 | [] | no_license | tobyhsu73/ulcar | c58bdac06adce3fffc6f5dcd0782d4e0f91a47b4 | 7033d86a85c810b4c523e799799ee5e9c14eb0b6 | refs/heads/main | 2023-07-01T14:28:39.335080 | 2021-08-01T08:01:50 | 2021-08-01T08:01:50 | 368,727,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,011 | py | import tkinter as tk
from PIL import Image, ImageTk
import tkinter.font as tkFont
import time
import numpy as np
import paho.mqtt.client as mqtt #import the client1
import math
import givedataul
broker_address="broker.emqx.io"
r=0
def on_message(client, userdata, message):
global r
global datam
datam=... | [
"73582590+tobyhsu73@users.noreply.github.com"
] | 73582590+tobyhsu73@users.noreply.github.com |
33aa22b635e3ed93e5fbee8b9e166783f7c91832 | 30b24d11cd6bcf4174a0c76cf9d25609a4b90e8e | /PyEZBackup/pyezbackup.py | 36bcd431af1d5b9b09594fb0ccbdfc74a8b6d727 | [
"MIT"
] | permissive | hillt03/Miscellaneous | 7215a0b3ab1e67b0ccbaeaa86f67f131f45978c8 | 06191417d4baedf1e4bcfceebcfe004508321583 | refs/heads/master | 2020-06-27T11:25:02.499711 | 2019-08-26T00:19:31 | 2019-08-26T00:19:31 | 199,940,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,865 | py | import os
from distutils.dir_util import copy_tree
from distutils.file_util import copy_file
import argparse
import sys
class PyEZBackup:
def __init__(self, filepath_file, excluded_filepath_file, backup_location):
self.filepath_list = [] # Stores filepaths that will be backed up
self.excluded_file... | [
"hillt03@yahoo.com"
] | hillt03@yahoo.com |
a9fbf13bfa8cd5e3bfda872b864aed92b33a0ab3 | 5797077e8936b99d683b18e68d567b3567f62f56 | /temperature_highs_lows.py | be6d8f0237e815da8a6858eea69747822fb3e9cb | [] | no_license | RichardlauCx/Data_visualization | 2f423efdb27143479eb0af7f72bf79a84396f474 | 005efe49273d398c799581a70326c3d90b91251d | refs/heads/master | 2020-10-02T07:53:49.504020 | 2019-12-17T08:19:58 | 2019-12-17T08:19:58 | 227,734,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,964 | py | # -*- coding: utf-8 -*-
# @ Date : 2019/5/20 13:14
# @ Author : Richard_lau
# @ file : Richard.py
# @ IDE : PyCharm
import csv
from datetime import datetime
from matplotlib import pyplot as plt
filename = 'sitka_weather_12-2019.csv' # 因为是同级下的,所以不需要强调路径
title = "Daily high and low temperatures - 2019, CA"... | [
"2409608770@qq.com"
] | 2409608770@qq.com |
df4f036ab9a22fff1d464c23724ebb8d7307f354 | c4d5e141fb2c68af90ea25ef5b78dcfa24e09471 | /apps/Login/views.py | a105fd43dd17c7e7976eb96876e282120357f097 | [] | no_license | Jiaqi0109/SimpleLogin | a2534b1a23600a404ca654222d29fad4057623cc | e5418616b747c5a81c06f4ae20d197d893bf0b33 | refs/heads/master | 2021-08-29T08:07:40.521291 | 2017-12-13T14:06:30 | 2017-12-13T14:06:30 | 114,128,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse
from .models import User
# Create your views here.
def to_sign_in(req):
try:
username = req.COOKIES.get('username')
password = req.COOKIES.get('password')
if Us... | [
"jiaqi0109@gmail.com"
] | jiaqi0109@gmail.com |
089b3dc51883bc6020b2d41d2fe3b9964a395b42 | 3f8ba416f22630792a8eb4535b8a0e40a2b40b7f | /app.py | 5cfffdfc2352a3a69cc296ad95bf163e1349e9b5 | [] | no_license | RAWAT7200/OpenCv-StaleApple | 1de0f5464cb533d45a0888ece0ec6546f315546a | ad3f5b73b0b23f5efe1738c7f21b3b70e06f4d54 | refs/heads/master | 2020-06-05T01:55:52.039501 | 2019-06-17T04:05:55 | 2019-06-17T04:05:55 | 192,272,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,731 | py | import numpy as np
import cv2
from matplotlib import pyplot as plt
"""
p=cv2.imread("apple.jpeg",0)
cv2.imshow("Testing_image",p)
cv2.waitKey(0)
cv2.destroyAllWindows()
cv2.imwrite("apple_copy.png",p)
img=cv2.imread("apple.jpeg",0)
plt.imshow(img,cmap="gray",interpolation='bicubic')
plt.xticks([]), plt.yticks([])
plt.... | [
"surajrawat@Surajs-MacBook-Pro.local"
] | surajrawat@Surajs-MacBook-Pro.local |
8f452a5b889844be254092881d4a66f1858cb6a7 | ebf4fd9e560fdd3b9b1acd4cdceabd19c70e57a7 | /turq.py | 3caf78e311a17ba14abd777c4c08b7b0a50fb270 | [
"ISC"
] | permissive | pombredanne/turq | a4e7eaab4bb261ec793f4774b1a518becb0d170e | 93cf2992da738b065292afec0444b298529e8db9 | refs/heads/master | 2021-01-15T13:37:06.931538 | 2015-07-21T21:08:29 | 2015-07-21T21:08:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,247 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = '0.2.0'
import BaseHTTPServer
from cStringIO import StringIO
from datetime import datetime, timedelta
import email.message
import gzip
import httplib
import json
from optparse import OptionParser
import os.path
import random
import re
import socket
import st... | [
"vfaronov@gmail.com"
] | vfaronov@gmail.com |
1254aaaf11edbd151907c206bb40553b2f5e2e10 | e727ad3ed8ee68ea52ab616af99b7981ab151238 | /depuracao.py | be2c42db3fb270c1c33bcaf1379392e559eb29b0 | [
"MIT"
] | permissive | cicerohr/Curso_Python_Excript | c13727a0e6155ce0c4d2aad50a2a6fff4398d0c5 | 971e87e6cc88e39a0c4bb4d034c87c36f9e0a9a5 | refs/heads/master | 2020-03-30T05:14:57.531811 | 2018-09-28T20:04:30 | 2018-09-28T20:04:30 | 150,789,078 | 0 | 0 | null | 2018-09-28T20:04:31 | 2018-09-28T20:02:05 | Python | UTF-8 | Python | false | false | 766 | py | # depuracao.py criado por Cicero em 2018-09-27. Projeto Curso_Python_Excript.
#
# Como depurar códigos Python com o uso da IDE PyCharm
#
# clicando em Run > Debug... ou pressionando as teclas ALT + SHIFT +F9 aparecerá o console do Debug.
# você deve criar um breakpoint clicando no lado esquerdo da linha do código que ... | [
"4173604+cicerohr@users.noreply.github.com"
] | 4173604+cicerohr@users.noreply.github.com |
9e4d54094f0b63c44a9a3c5b8af7e1685eb1304d | c69d005833b4fe813d481ffeca6c3f8c6280c5bd | /src/02_hyp_test_ate.py | 9d78457f6ccdbfb1839ce41af6029a27edc35a4e | [] | no_license | terebn/causalML | 3579604e6424f54591d4249365da704ada403a44 | ca530eada257f166085f659b1eb009e175830725 | refs/heads/main | 2023-03-11T17:14:13.357256 | 2021-02-22T18:57:05 | 2021-02-22T18:57:05 | 338,124,592 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,113 | py | import pandas as pd
import numpy as np
import pyarrow.parquet as pq
# For hypothesis testing and power analysis
from statsmodels.stats.proportion import proportions_ztest
from statsmodels.stats.proportion import power_proportions_2indep
# For data prepping and OLS model
from sklearn.preprocessing import StandardScale... | [
"teresabono.t@gmail.com"
] | teresabono.t@gmail.com |
5d7b54b62751145244a47fbd41fedc6932cbf752 | 6f3433ee263e9a7e6d6915ca0fb9ae5c5850a303 | /students/K33422/Yanov Filipp/lab_2/djangoProject_lab2/hotel/urls.py | 7c251da59b4d499e9e15f71633ccccd2a9c15ea2 | [
"MIT"
] | permissive | dEbAR38/ITMO_ICT_WebDevelopment_2020-2021 | 8a2a1abe6cd7f3bb0c0b1774cad1765d377f52c7 | 208cbc6d2b6d40c3043d35ce773a3433b377f671 | refs/heads/master | 2023-04-03T10:09:38.427787 | 2021-04-09T10:42:27 | 2021-04-09T10:42:27 | 296,327,161 | 0 | 0 | MIT | 2020-09-17T12:59:46 | 2020-09-17T12:59:45 | null | UTF-8 | Python | false | false | 898 | py | from .views import *
from django.urls import path
from . import views
urlpatterns = [
path('', HomePageView.as_view(), name='home'),
path('hotels/', ListHotels.as_view(), name='hotels'),
path('hotels/<int:pk>/', ListHotelRooms.as_view()),
path('rooms/<int:pk>/book', CreateBooking.as_view(), name='booki... | [
"yanovfilipp@mail.ru"
] | yanovfilipp@mail.ru |
b86f4f23f1d96b44ef062edd59adb901d53cf7c7 | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/面试/juejin_446.py | ada41a6791b155b757cb4bc67b7cc653b73bf8d7 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70,312 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6844904081828347912", "article_info": {"article_id": "6844904081828347912", "user_id": "1556564164489389", "category_id": "6809637767543259144", "tag_ids": [6809640402103042061, 6809640404791590919], "visible_level": 0, "link_url": "https://juejin.im/post/684... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
66d1a32aa11da971f2a961e98e1743fea90cea13 | 28e1b715f9a44ffa562bf37b1fecba8076454779 | /flaskr/cart/mycart.py | 9cc60116517acbaf44eb6f15b87f9d7f33e68fbb | [] | no_license | rewantsoni/Shopping-cart-project | ddae823a506b955090c8187da4633540c0382c86 | eb01d16bed69eca987ae7bff98f45be9d6bfcb31 | refs/heads/master | 2020-06-11T19:13:30.983646 | 2019-06-27T08:57:24 | 2019-06-27T08:57:24 | 194,057,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | from flask import (
Blueprint, redirect, render_template, request, url_for
)
from werkzeug.exceptions import abort
from flaskr.auth.auth import login_required
import flaskr.database.db_product as db_product
import flaskr.database.db_incart as db_incart
bp = Blueprint('mycart', __name__,url_prefix='/cart/')
@bp.r... | [
"rewant.soni@gmail.com"
] | rewant.soni@gmail.com |
f7cf8641579473899307e315b2b85ea54c945eb9 | 49d6e96ab5d158e33cfc9eafb35d57059508b6d2 | /7 kyu/dryingPotatoes.py | 2aa399186da0186301989983d44281c0b0b5d882 | [] | no_license | adonai-luque/CodewarsPython | ed1018edca20dfc2abffaa14247ee1aec7a0eb10 | 9bcd82b99f7ebe1a57017f0cc52cbaf1c1deac98 | refs/heads/master | 2020-12-14T07:50:37.586563 | 2020-10-18T06:39:30 | 2020-10-18T06:39:30 | 234,679,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | def potatoes(p0, w0, p1):
return int((100-p0)*w0/(100-p1)) | [
"akluqueprieto@gmail.com"
] | akluqueprieto@gmail.com |
1e80f6951a25549153d9d87ae4a733d66b65e4e4 | ff40ecf6619813dd47237313a8b633c922294bdd | /manage.py | e84b83ae19332b5456bc2c149a91280fc20e1d2d | [] | no_license | kothawleprem/animatorr | f3e1cd4d159711daa1ca0d97aac8d76e4af10c18 | 172d1a3ad5cb7929f23fb674c94e0f0f6ca6af59 | refs/heads/master | 2022-12-16T22:39:51.648225 | 2020-09-10T13:49:25 | 2020-09-10T13:49:25 | 294,408,934 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 627 | 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', 'shubham.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Import... | [
"kothawleprem@gmail.com"
] | kothawleprem@gmail.com |
825e7a1384caaa635209d8fbde10c2ebc6fb3172 | 12485bb945ab8af6ff6a5f3d9d4c542a7bcf95f8 | /server/src/uds/core/util/decorators.py | 1996f00746c892461214b269ffa03dfe7a9366ad | [] | no_license | morfeuj/openuds | 6ef0c4bed624def0090efa6abdd2600b9be81a8b | 26e429019e5fe5b01ee1a476c879d8f8333b0ab0 | refs/heads/master | 2020-12-15T15:11:33.598430 | 2020-01-20T16:42:33 | 2020-01-20T16:42:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,264 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2019 Virtual Cable S.L.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright noti... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
51cfca10de1022638fa0016c4de8a193272f8fab | 50fba01e7c5a0cdb4771a61c3f325a5a318c6138 | /ojbk/xtp_api_data_type.py | 6475332b5eefd9930a5ddd0e63724faa872345be | [] | no_license | 10pem/xtp_win32 | dd6d73256f466b1c08a047cafd59a0b7db5ba8c7 | 886312ec99e856ae679b6b479c11e4ee5eec9e5f | refs/heads/master | 2020-03-17T20:49:10.809357 | 2018-05-22T06:32:39 | 2018-05-22T06:32:39 | 133,929,846 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,256 | py | #encoding: UTF-8
typedefDict = {}
#/////////////////////////////////////////////////////////////////////////
#///@author 中泰证券股份有限公司
#///@file xtp_api_data_type.h
#///@brief 定义兼容数据基本类型
#/////////////////////////////////////////////////////////////////////////
#/// 存放版本号的字符串长度
XTP_VERSION_LEN = 16
#/// 版本号类型
typedefDict[... | [
"mr.xu.china1995@gmail.com"
] | mr.xu.china1995@gmail.com |
98ae6996aa0b587767198da68169589e426738f7 | 0be27c0a583d3a8edd5d136c091e74a3df51b526 | /reverse_each_word_except_first_and_last.py | 27fcc10079794e2ac868b8e8a9287aad8791a631 | [] | no_license | ssangitha/guvicode | 3d38942f5d5e27a7978e070e14be07a5269b01fe | ea960fb056cfe577eec81e83841929e41a31f72e | refs/heads/master | 2020-04-15T05:01:00.226391 | 2019-09-06T10:08:23 | 2019-09-06T10:08:23 | 164,405,935 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | s=input()
l=list(s.split(" "))
a=[l[0]]
for i in range(1,len(l)):
if i==len(l)-1:
a.append(l[-1])
else:
c=l[i]
b=c[::-1]
a.append(b)
print(" ".join(a))
#reverse
| [
"noreply@github.com"
] | noreply@github.com |
ffdb5cf5ae2e069f74f6f3c50dfdac09e7a98e29 | c00dbed90fc8f2bc4e62476888d6987069ffbe0e | /AnalysisDAFM/program/src/main.py | 71bdf4febf6983bd3d61c3137a74b0b622118425 | [] | no_license | LiangZhang2017/WorkflowComponents | 2cc5fdd2818ac869b37d9eac0a6956696a4f4cc9 | 76da41721691a8f097d7a4ab2e75499c236d597e | refs/heads/master | 2021-04-15T20:29:40.078283 | 2020-02-14T21:52:39 | 2020-02-14T21:52:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,092 | py | """
Datasets :-
Geometry
1) /home/anant/datasets/Geometry96-97.txt (5,105)
CognitiveTutor: /research/datasets/cognitive_tutor_2007_2009_kddcup
1) algebra_2006_2007_train.txt (2,270,385) (1,808,571) (856, 549821, 6592)
2) algebra_2008_2009_train.txt (8,918,055) (4,419,705) (2105, 288169, 6650)
3) bridge_to_alg... | [
"mkomisin@cmu.edu"
] | mkomisin@cmu.edu |
2bf4a34ee6c5e22fa115f07b6ba6032a56a9596c | 422d27bc3341f0a6c769d7c36e80fd901df13a42 | /hw1/PS1.py | abe028bc30060c2d39536e5b274259328ec1c1d5 | [] | no_license | HERMANNITY/EECS349 | fbae72ce1a7ee540468b97e3855d01ea7d94cb55 | 0459d29eeaecba9d8861624162d34e003e8aaddd | refs/heads/master | 2021-01-17T14:28:39.674564 | 2016-06-12T15:00:02 | 2016-06-12T15:00:02 | 57,409,687 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | # DOCUMENTATION
# =====================================
# Class node attributes:
# ----------------------------
# children - dictionary containing the children where the key is child number (1,...,k) and the value is the actual node object
# if node has no children, self.children = None
# value - value at the node
#
#
... | [
"junhanliu2015@u.northwestern.edu"
] | junhanliu2015@u.northwestern.edu |
1f0fd884caa02d3685d91a38f543a61d4f4c35fd | 312a8fde11293cb142334a3860966ec1f75ac401 | /timesketch/lib/analyzers/contrib/__init__.py | 7c0d5d88fdd9c75789919c74eb42737eae4341a4 | [
"Apache-2.0"
] | permissive | google/timesketch | f0fd09062a8a24bac581d2d4286d095d667d2f10 | 24f471b58ca4a87cb053961b5f05c07a544ca7b8 | refs/heads/master | 2023-08-31T21:48:19.602686 | 2023-08-31T11:24:17 | 2023-08-31T11:24:17 | 21,009,909 | 2,263 | 647 | Apache-2.0 | 2023-09-14T14:08:07 | 2014-06-19T17:49:45 | Python | UTF-8 | Python | false | false | 813 | py | # Copyright 2022 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"noreply@github.com"
] | noreply@github.com |
4e80ccd3f2e43b289698ef14d9347915c77924e7 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/list_set_element_oob_1-71.py | 58d3ed793879d1cc0c90830a3833ad543f01587e | [] | 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 | 83 | py | x:[int] = None
x = [1, 2, 3]
x[-1] = 4
print(x[0])
print(x[$Literal])
print(x[2])
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
827d7dcfdff880bea8dd3c1755559f5cce156bbf | f1c4a66d133b684ea3e4d3238ef28df4fb546109 | /script_test/pytest_order_001.py | 4f985193860294d6fd33550822e4f9da4bd0b375 | [] | no_license | chenzx7/Test | 70adb7a897781a8e5a457033806967542b772411 | a58bb69d8f17830c3adefc7d2a2bbea1f9d7c03b | refs/heads/master | 2020-12-05T20:56:20.191174 | 2020-01-13T04:11:29 | 2020-01-13T04:11:29 | 232,245,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | import pytest
class Test_fix():
def setup_class(self):
print("开始测试了")
def teardown_class(self):
print("结束测试了")
@pytest.mark.run(order=2)
def test_001(self):
assert False
@pytest.mark.run(order=1)
def test_002(self):
assert False
| [
"chenzx&@lenovo.com"
] | chenzx&@lenovo.com |
04959b4fd2655f4d0f02b2f525f1eb7047ba3c7a | ed354ee7ba689132b679c332296baf14d8948b31 | /src/server/handlers/signing_handlers.py | 15fedd60e58708bd6777fb988b550c94ff0a92f5 | [
"MIT"
] | permissive | shkimturf/Tornado-MongoDB-WAS | a5c3a946c33ce78314047c1c9c3c4922b7eb375b | bf4cf316dc12678b9780e374001d405935cbdbd5 | refs/heads/master | 2020-04-02T03:51:47.861750 | 2016-06-21T15:43:15 | 2016-06-21T15:43:15 | 61,644,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | # -*- coding: utf-8 -*-
'''
Created on 2016. 5. 26.
@author: Sunhong Kim
'''
from server.handlers import CommonHandler, authenticated_api
from app.error import HDError
from models.account.user import HDUser
from models.account.session import HDSession
from models.orm import HDORMObject
import tornado, utils, pymong... | [
"shkim@Sunhong-ui-iMac.local"
] | shkim@Sunhong-ui-iMac.local |
36ef3b542c880047fbdb9d98cad3d34c6585f40c | 9a376696ca28b861c9e436326eeef4b5532d808c | /downloads/code/mysqrt.py | 141ec94f25c09049212969ca4a9796c5393462cb | [] | no_license | junilyd/junilyd.github.io | 7ecf68c82b7530f86327597052f1aedaf0b046b1 | 2a9e63fd7b13c0f9b7d8d17fdc4768fcf189bc22 | refs/heads/master | 2021-05-16T02:56:07.710860 | 2018-04-20T20:08:58 | 2018-04-20T20:08:58 | 22,765,794 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | '''
Module for approximating the square root
Input
x: The number for which the square root is approximated.
output
s: The requested square root.
'''
def newton(x,debug=False):
'''newton(x)'''
from numpy import nan
x = float(x)
if x==0.:
return 0.
elif x<0.:
pri... | [
"junilyd@gmail.com"
] | junilyd@gmail.com |
d16a62c88c77fdb893b4269bd3894ff2bf460ba0 | 02255565aff9ea18a4d566955cc53ca06090efa4 | /python_django.py | cf4625e4823034de98520ac80998d9c35978e234 | [] | no_license | BrainiacRawkib/Practical-Python-for-Begineers | 20a8a3697812bed78646c6af54a6dc195694109a | cb29ea1a38339fcf2fac005feb92b5a72ae98387 | refs/heads/master | 2020-12-01T09:10:06.802758 | 2019-12-28T15:27:40 | 2019-12-28T15:27:40 | 230,598,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from django.db import models
class Student(models.Model):
FRESHMAN = 'FR'
SOPHOMORE = 'SO'
JUNIOR = 'JR'
SENIOR = 'SR'
YEAR_IN_SCHOOL_CHOICES = (
(FRESHMAN, 'Freshman'),
(SOPHOMORE, 'Sophomore'),
(JUNIOR, 'Junior'),
(SENIOR, 'Senior'),
)
year_in_school = mod... | [
"brainiacrawkib@gmail.com"
] | brainiacrawkib@gmail.com |
21963a1e2a7d2fc0acf399e9525a4d5c4cf1a910 | d24d29d84aeb0f820febaf554adb337d5f966d03 | /gmr_optimization.py | 683a4a086c3ff6ce05b3ab7e0abccc067e60e1e4 | [] | no_license | GanKunlu/youbot_myo_control | f7d0daa0844e3feeb34ddeac93094b939d290567 | 2f9cb247ae034defb35c264d0eac4d42613940fc | refs/heads/master | 2021-01-25T01:21:36.394797 | 2018-05-26T02:36:36 | 2018-05-26T02:36:36 | 94,749,221 | 2 | 1 | null | null | null | null | GB18030 | Python | false | false | 4,979 | py | # -*- coding: gbk -*-
import os
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.font_manager import *
import seaborn as sns
from sklearn.utils import check_random_state
from gmr import GMM, plot_error_ellipses
class gmr_from_file(object):
def __init__(self,n_components,file_name):
self.r... | [
"noreply@github.com"
] | noreply@github.com |
322baf04dd404de77dd228acd8ae60da89af00cf | d897ed7c89846ecd73f429f9b608a309528ffcfe | /acc_reg/apps.py | 231995adad522f5e4cb65b3eda7fa1dd9d0aee95 | [] | no_license | 0dejia/django_learn | 1d35b9ed4c1d176aac5ed9859ecb51ad4abfe1fa | acc9cb138ef0fa92161f0c63e61f256dea617828 | refs/heads/master | 2021-01-19T12:56:18.088901 | 2017-05-19T09:40:04 | 2017-05-19T09:40:04 | 88,058,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class AccRegConfig(AppConfig):
name = 'acc_reg'
| [
"569982600@qq.com"
] | 569982600@qq.com |
736e3c73364bb68691205bce0d3d43310bb53493 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/azuredata/v20200908preview/sql_managed_instance.py | 8824bb87b76c7f442079127163d4a2a50cf216fa | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 8,761 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | noreply@github.com |
d079d7bcd8883b887160231a73ba76987a8b2c0c | 2c8326c907ade14c14b759e494fb928ddce6c49c | /Topcoder/SRM702/500.py | 78dfc317a5e11857bba2d2a54a876e6789a533ad | [] | no_license | thrabchak/programming-competitions | 5d61b71416286fc92818a6816834b64120fae7cb | 884db29dd4ca0485d5f30a065ff4e59b8d46b9d6 | refs/heads/master | 2021-01-23T14:51:19.405720 | 2016-12-23T06:44:28 | 2016-12-23T06:44:28 | 26,175,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | class GridSort(object):
def sort(self, n, m, grid):
print("n:" + str(n))
print("m:" + str(m))
possible = "Possible"
impossible = "Impossible"
if n == 1 or m == 1:
return possible
pattern = []
for i in range(n):
if i == 0:
... | [
"thrabchak@gmail.com"
] | thrabchak@gmail.com |
cd70e6adc8fa214a010f29508ce6e51e6c2e4b7d | 60d5a3bc9b7d3776cb256f5e845137eb89d4d5ae | /04_TextRCNN/p71_TextRCNN_train.py | 4679346971a78bf58ef51844cc4f4d8694c71df8 | [] | no_license | hanghang2333/scoreclassify | 4eacddd507cdc9b446f307f3993f8c47dbdb9f30 | ee422470f4eb4184ed73f55bff9e49c3751f4547 | refs/heads/master | 2021-05-11T05:00:33.105091 | 2018-01-22T11:55:22 | 2018-01-22T11:55:22 | 117,951,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,276 | py | #process--->1.load data(X:list of lint,y:int). 2.create session. 3.feed data. 4.training (5.validation) ,(6.prediction)
import sys
import h5py
import shelve
import tensorflow as tf
import numpy as np
from p71_TextRCNN_mode2 import TextRCNN
import os
#import word2vec
import pickle
#configuration
FLAGS=tf.app.flags.FLAG... | [
"lihang@BJ101310-1.local"
] | lihang@BJ101310-1.local |
b2b62d43c7c7065f95afab12cff117983fdacf95 | 600af04c7b0b1b2782d83fae3042412eefa97e3e | /utilities/string_similarity.py | 75796bff89f0869a316917cfa38038e8a2ffa9cc | [] | no_license | isislab-unisa/syntactical-errors-detection | 16611eb9945333fb75d3fde1ff2bef1497e71268 | 469d8ecdac3356ba209ca23215383b06e6d3cb63 | refs/heads/master | 2020-05-27T21:58:51.351348 | 2019-09-30T07:15:03 | 2019-09-30T07:15:03 | 188,802,131 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,545 | py | from fuzzywuzzy import fuzz as fw
import pyxdameraulevenshtein as lev
import numpy as np
import time as t
PESO_PARTIAL_RATIO = 1.2
HIGH_LEV_DIFFERENCE = 20
LOW_LEV_DIFFERENCE = 5
HIGH_AVERAGE_FUZZY = 95
LOW_AVERAGE_FUZZY = 85
HIGH_SUBSTRING_FUZZY = 95
LOW_SUBSTRING_FUZZY = 85
LEV_TOLLERANCE = 1
def single_fuzzmatch(w... | [
"l.postiglione4@studenti.unisa.it"
] | l.postiglione4@studenti.unisa.it |
178f94e8e5286eb5012579f4c8562e0b113ac483 | 5a1cb546cb5132cc98e8a08acc6233540bc2dd34 | /forms.py | 2ea5dd93c573fdf1bc0e5fea25e98bbc4f5492d8 | [] | no_license | RitikaSingh02/ChitChat | 75cf19e00ce6c12a35cc081e55c4e0b378ee3347 | 9575daf0e61ba2f20797dfadf6ba246470dafbe0 | refs/heads/master | 2023-05-23T21:21:25.138134 | 2021-06-20T19:00:43 | 2021-06-20T19:00:43 | 378,376,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField
from wtforms.validators import InputRequired, Length, EqualTo, ValidationError
from models import User
def invalid_credentials(form, field):
""" Username and password checker """
password = field.data
username = form.usernam... | [
"ritika2002singh@gmail.com"
] | ritika2002singh@gmail.com |
86764acc99dcc48179a7a458f23c95bdadd32dd6 | 39c3337c0ca292b01b141631d9940bf1651092d1 | /class_0423/testcase/test_audit.py | a9600c431ec6e3bc889691262b869760c0d98d3e | [] | no_license | cxx839113797/future | e9c08aea4d7d47d5a7249ce259272353c08c7707 | 57dd94bc5bb45585fdbba9845749ed6d31f4fa4f | refs/heads/master | 2020-05-21T03:41:55.935305 | 2019-05-30T15:29:20 | 2019-05-30T15:29:20 | 185,895,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | # -*- coding:utf-8 -*-
# @Time : 2019/4/18 22:56
# @Author: xiaoxiao
# @File : audit_testcase.py
from class_0423.common.http_requests import http_requests
from class_0423.common.do_excel import do_excel
from class_0423.common.constants import excel_name,audit_sheet
from class_0423.common.log_config import log_config... | [
"839113797@qq.com"
] | 839113797@qq.com |
4468667cd87bc324979f230416324bd0f7e954f9 | 428f27110d0af6d9d30c17b379c0a0b6da4cf7a5 | /PyCharm/aws/boto_s3.py | c5d6925a4676f444ce457f3d3e8ceaf799f47f1b | [] | no_license | rjilani/python | e3b3e3c4129c9b61e775f4b13f4cfa43fec5d436 | d2da224215c30fbec146028bd9e0c939a0f318d4 | refs/heads/master | 2021-06-27T12:20:43.569368 | 2017-09-13T22:53:44 | 2017-09-13T22:53:44 | 102,174,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | __author__ = 'rjilani'
from boto.s3.connection import S3Connection
conn = S3Connection('accesskey', 'secretkey')
print (conn)
bucket = conn.get_bucket('rashidwordpresscode')
print(bucket)
for key in bucket.list():
print key.name.encode('utf-8') | [
"rashidjilani@gmail.com"
] | rashidjilani@gmail.com |
7ddbd53246a76a75ab59a084952c7bcf676d9df6 | 769843f3cb57b9a0e1c68d02637b881bd43a103b | /nanodet/model/arch/gfl.py | b39eb616f9a7f0d17203d726452db6c449690856 | [] | no_license | CaptainEven/MyNanoDet | 9de3165ff14140eeabb362e793d8903f93cfdf77 | 9f5e5835bff8854d8d8c0041a7b3288ab017d7b6 | refs/heads/master | 2023-02-11T13:12:59.651520 | 2021-01-06T06:52:11 | 2021-01-06T06:52:11 | 319,273,525 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | from .one_stage import OneStage
class GFL(OneStage):
def __init__(self,
backbone_cfg,
fpn_cfg,
head_cfg, ):
"""
:param backbone_cfg:
:param fpn_cfg:
:param head_cfg:
"""
super(GFL, self).__init__(backbone_cfg,
... | [
"765305261@qq.com"
] | 765305261@qq.com |
e799c29040b6a64ef2371bd0690e442f18989bf9 | fbc0ea4b34064dc2eebccd9d0a933e83ad4eb54d | /__config__/asgi.py | 03b3776279258ecbc968ad21e4792b7b1b542f60 | [
"MIT"
] | permissive | Farzan-Manzer/DjangoURLShortener | de70c3d543abcea039b60cd3e94dba7e3a9d4b54 | dad9a372a5b007b212d0ff229912ebf3beecb413 | refs/heads/main | 2023-01-01T02:26:40.234223 | 2020-10-26T19:26:56 | 2020-10-26T19:26:56 | 307,476,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for __config__ project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"farzan.manzer@gmail.com"
] | farzan.manzer@gmail.com |
39af42d635ccc1f91a80e522b9a0754dc5d4b216 | f789a3b83af9830d28a3fc3cc5184be513caea74 | /tests/unit/test_middleware.py | 5ee1d91efcfa4516fbaabc162635690dfd9546a4 | [
"Apache-2.0"
] | permissive | anuo007/turnstile | 22701d4b8e1bd83af9dc4df38bf828bc8ff6f055 | 8fe9a359b45e505d3192ab193ecf9be177ab1a17 | refs/heads/master | 2021-01-22T00:24:37.821758 | 2013-09-20T23:21:02 | 2013-09-20T23:21:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,594 | py | # Copyright 2013 Rackspace
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"kevin.mitchell@rackspace.com"
] | kevin.mitchell@rackspace.com |
8442183c9909a042b13be80ea1fe9cd51b162c5e | fb64776f71eb2a469395a39c3ff33635eb388357 | /apps/accounts/tests/unit/services/test_session_service.py | 18ae5c6a9b811a936437f0a623fdd3f5404cbe91 | [
"MIT"
] | permissive | jimialex/django-wise | ec79d21c428fd1eea953362890051d2120e19f9e | 3fdc01eabdff459b31e016f9f6d1cafc19c5a292 | refs/heads/master | 2023-04-30T20:59:51.625190 | 2021-05-10T06:55:40 | 2021-05-10T06:55:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,101 | py |
# -*- coding: utf-8 -*-
import json
import pytest
import requests_mock
from doubles import allow
from google.oauth2 import id_token
from rest_framework import status
from apps.accounts.models import User
from apps.accounts.api.error_codes import AccountsErrorCodes
from apps.contrib.api.exceptions.base import APIBase... | [
"vicobits@gmail.com"
] | vicobits@gmail.com |
3dc0d127c7709ce03fc04642998516ad047e4916 | e3696f52d24abae3005b21a63a9472aad5c6217d | /coding/cibilsystem/cibilenv/Scripts/django-admin.py | 358de2da738f3989b5c61325687bf66f5deb8bc4 | [] | no_license | sarath704/cibilscore | 67f78465b16d7d8239d9e51ed9b818bf06a6fe45 | 704cc4de8854cd10240b86f8726ed2c0502be590 | refs/heads/master | 2020-05-04T07:13:42.594115 | 2019-02-09T11:26:37 | 2019-02-09T11:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | #!e:\python projects\cibilsystem\cibilenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"raju.veeravalli707@gmail.com"
] | raju.veeravalli707@gmail.com |
db47d5fc38a06024d4c392f065371e46135a7707 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03608/s871426346.py | ab335095f513950ba52948b0a955d92571997d3a | [] | 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 | 514 | py | from scipy.sparse.csgraph import floyd_warshall
import numpy as np
from itertools import permutations, combinations
n,m,R = map(int,input().split())
r=list(map(int,input().split()))
for i in range(R):
r[i]-=1
d = np.zeros((n,n))
# 入力
for i in range(m):
a,b,c = map(int,input().split())
a,b = a-1, b-1
d[... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e96ca41fabd2c6294f007cf0300c22dc047cb099 | 3ed2d6b8ab7faf14c49df7f3cbfceeca68dfdaaf | /ZXHS.py | 09254ba0a169320541c330737af6fbcbcb1fbc3f | [] | no_license | 917qko/suai | 1d05dc3607997ad461059e3f663e046e73ecd9d1 | 33e01fddbe207508d5b29c68f7d6634e0610a7f7 | refs/heads/main | 2023-01-03T12:47:30.891213 | 2020-10-29T05:25:19 | 2020-10-29T05:25:19 | 302,836,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | import numpy as np
import matplotlib.pyplot as plt
import math
x=np.arange(-20,3*np.pi,0.02)
y=np.sin(x+math.pi)
plt.xlabel(' t')
plt.ylabel('x(t)=Asin(ωt+φ)')
plt.plot(x,y)
plt.show() | [
"1021501028@qq.com"
] | 1021501028@qq.com |
2e6032e6effc17cd80cd8fbe3e46895505c2b794 | b966dc4a0d27cc9fcfa7ec461689ec77e2c199fc | /venv/Scripts/pip-script.py | 929ce31ad4e6bb6486fab087a23f10c27546125a | [] | no_license | andnana/py01 | 476b85ed3d356848502db627f709785e97cde520 | 4952c905aa7acf9d41e0c4b9418164ddb39a02e8 | refs/heads/master | 2020-03-08T14:34:19.482717 | 2018-04-05T10:14:14 | 2018-04-05T10:14:14 | 128,189,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | #!C:\Users\Administrator\PycharmProjects\test01\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"wangrenjiewang@163.com"
] | wangrenjiewang@163.com |
9c62a9df13f4837fc66ddc024d3b4389174a9e3c | a3ea6bccb2746b20e24e89101a45d9f2249ba0af | /week 1/Informatics/l2.py | 99ade8f23e403f7ee117811b003ac902f61465c4 | [] | no_license | dinaramairambaeva/PP2_2021 | c7dde0e6ed272b42bfe66d5d9cf5272e14c50a5f | 50966eb933d1e9f8d1bb97fa0c6d9c60c200b855 | refs/heads/main | 2023-03-13T10:49:31.483358 | 2021-03-05T16:49:13 | 2021-03-05T16:49:13 | 333,098,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | a = int(input())
b = int(input())
l = int(input())
n = int(input())
print(2*b*(n-1)+a*(2*n-1)+l*2)
| [
"d_mairambaeva@kbtu.kz"
] | d_mairambaeva@kbtu.kz |
9b5400594feb8e59f74ff77b5d4d354aedbe877b | af67cec55867e4210966a31239dfcdb9005688f9 | /MachineLearning/TensorFlow/1.x/first_steps_with_tensor_flow.py | 10b7eea26c57e3be5f39a050555bcc8a5c5fe26d | [] | no_license | wkown/py3x | b4cf57a70ebcec093e404aafee5c1982a02c1863 | ed259993900f914bc6fb9c529f1e25eadf0c7afc | refs/heads/master | 2022-02-21T19:33:02.495986 | 2022-01-27T05:23:42 | 2022-01-27T05:23:42 | 128,619,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,153 | py | from __future__ import print_function
import math
import math
from matplotlib import cm
from matplotlib import gridspec
from matplotlib import pyplot as plt
import numpy as np
import pandas as pd
from sklearn import metrics
import tensorflow as tf
from tensorflow.python.data import Dataset
tf.logging.set_verbosity(t... | [
"walkskyer@qq.com"
] | walkskyer@qq.com |
2cd796b59550f61935898c8a1415341ff5e3af3e | 6e0b6cfc79d27c505e9234bfee9b664a87bd0d9b | /Entity/Station.py | 7f3aff143e9e2292db0e4010671b35e7aa3ee4e7 | [] | no_license | sdgdsffdsfff/Subway-Line-Query-System | 919b515cabb49638c35828d36f4b7dfcdff53d80 | 12c14d2277a19a6e83e835531a3ae21da27df23e | refs/heads/master | 2020-12-25T16:47:19.531158 | 2014-12-20T05:30:00 | 2014-12-20T05:30:00 | 41,783,453 | 10 | 0 | null | 2015-09-02T06:12:25 | 2015-09-02T06:12:25 | null | UTF-8 | Python | false | false | 492 | py | #-*- encoding=utf-8 -*-
class Station(object):
"""docstring for Station"""
def __init__(self, station_name):
super(Station, self).__init__()
self.station_name = station_name
self.neibor_stations={}
self.change=False
def addNeibor(self, station_name, timecost):
self.neibor_stations[station_name]=timecost
... | [
"leechan8@outlook.com"
] | leechan8@outlook.com |
23d42de74d03b489f2e51fe784d08a6877779f89 | 6b7c93ee4dc224e3041cd3df8e1d8ab128144cb8 | /dodo.py | 27adb2c078501374359755278adfcebcf6302b9e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | philip-luk-tangent-anim/doit-py | df915b88d7d3e9964f2d1463d3255ae9c415f2da | 500731ce25e89f327d190b7b8b3fc02bbd71c0f1 | refs/heads/master | 2022-09-08T08:44:06.172002 | 2020-05-24T12:35:05 | 2020-05-24T12:35:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,271 | py | import glob
import subprocess
from doitpy.pyflakes import Pyflakes
from doitpy.coverage import PythonPackage, Coverage
from doitpy.package import Package
from doitpy import docs
DOIT_CONFIG = {'default_tasks': ['pyflakes', 'test']}
def task_pyflakes():
flakes = Pyflakes()
yield flakes.tasks('*.py')
yie... | [
"schettino72@gmail.com"
] | schettino72@gmail.com |
56d9545172d93dc81f00b75c4467ced42d10d46d | 5e0de59693445ef463e8c6a8c05876aa9d975e9a | /student/views.py | cbd41d5ec89b0e3f8c2689c6ddd658b403c5ec6b | [] | no_license | ZhonggenLi/Student-Management-Web- | e511691f4d625e80b5f4460dce7c13788faffd14 | f5a5c30d171a182abe660bccd2c407d3f6ccf7b4 | refs/heads/master | 2022-12-02T08:05:43.493136 | 2020-08-09T02:00:19 | 2020-08-09T02:00:19 | 285,771,013 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,785 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.db import models
from student.models import Student
from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import redirect
# Create your views here.
@csrf_exempt
def insert(request):
if request.POST:
... | [
"you@example.com"
] | you@example.com |
4699ac187da996ef09de31aa7def4cdc34852f34 | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/surface/help.py | 0fc91d3eca0088a241bd20d9a83259c5cb961425 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 1,379 | py | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
79a6513c58b37e6cc289f19efd03541fc61b660f | 7d789a8dd56bf03566372246799741174c410b6f | /backend/mtc_etedjmodel/mt_connect_app_dj/urls.py | 6698e28a3540cf71135e88b653b844cb9640659c | [] | no_license | cecilio-diaz/EcoTecno | 2a95e925e8046da37ba0fd9a06390430a955e1c6 | e264ad6345d9972605c7a59d7a926385fe5339e6 | refs/heads/master | 2023-01-28T14:38:24.308444 | 2019-11-07T00:51:10 | 2019-11-07T00:51:10 | 219,706,855 | 0 | 0 | null | 2023-01-05T00:39:03 | 2019-11-05T09:30:39 | Python | UTF-8 | Python | false | false | 1,477 | py | from django.contrib import admin
from django.urls import path
from django.conf import settings
from django.conf.urls import url, include
from django.views.static import serve
from .views import hello_world
from .views import insert_buf... | [
"cecilio-diaz@sisamex.com.mx"
] | cecilio-diaz@sisamex.com.mx |
4f9e1e2181fbf0b20612f9831d5c15029f1efb5f | 01c159ccce4d94b10dd3c0206640732a3eac7324 | /data/migrations/0007_project_rating.py | 1cc9bd3a0331f36c478c2c30fe8786ed06455ce3 | [
"MIT"
] | permissive | mishraanuruddh/reimaginegiving | 0c2f0f22f665d227885ba88e07a2a145887bf013 | aa43ff598d934efb858f8e5930848458db66a9ad | refs/heads/master | 2021-06-14T06:57:28.722420 | 2017-04-29T17:36:53 | 2017-04-29T17:36:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-03-05 06:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data', '0006_remove_project_project_page_title'),
]
operations = [
migratio... | [
"arjun_mehra97@ymail.com"
] | arjun_mehra97@ymail.com |
498ed27a9d8171778e2ae36e5ff7f8de388df68d | bce20d1a0716ac4734e066205f77f785cda819e6 | /app.py | 8c74ffae0da886bc16c2773024349888499b8e1f | [] | no_license | Nithin1375/Hashed-Linker-Dev | 8a4b5b20e31e6254ba9d42a7991663dbfff7defe | 790347338489a76511f4e908dcc7e0ab69ccf375 | refs/heads/master | 2023-08-25T13:02:44.144182 | 2021-10-21T08:51:05 | 2021-10-21T08:51:05 | 418,923,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello, World!"
if __name__ == '__main__':
app.run(host='0.0.0.0')
print("Hai, Hello")
| [
"noreply@github.com"
] | noreply@github.com |
fb0f510a230c8e4d22fc6ee00f0fbecd9f2018ed | 42a8ae48593dabb08414911c0bda44723c6e88ae | /minissl/test/testSslClient.py | e94cc2bf77d02cde79079fdcd2b109b64e6a6487 | [
"MIT"
] | permissive | vsaw/miniSSL | 3c39fe34dcc55152bd5eec08e5cb08ee94ab8667 | 47671bb1cf4d558c340947c2a38d2c4fefd80643 | refs/heads/master | 2020-12-24T11:45:49.640830 | 2014-07-30T20:56:56 | 2014-07-30T20:56:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,750 | py | import unittest
from minissl.SslClient import SslClient
from MockConnection import MockConnection
import pickle
import minissl.keyutils as keyutils
import minissl.Utils as Utils
import PemSamples
from Crypto.Cipher import PKCS1_OAEP
from Crypto.PublicKey import RSA
from Crypto.Signature import PKCS1_PSS
from Crypto.Has... | [
"valentin@sawadski.eu"
] | valentin@sawadski.eu |
2c5e7974069afe82223007f602552e7aa63c0b86 | f810836bea801f2fa85418ac7f5f5ffb0f3e0bda | /abc/abc107/B - Grid Compression.py | 81b610852a92bc42137f84cad2c058bfd44c6c07 | [] | no_license | cocoinit23/atcoder | 0afac334233e5f8c75d447f6adf0ddf3942c3b2c | 39f6f6f4cc893e794d99c514f2e5adc9009ee8ca | refs/heads/master | 2022-08-29T06:01:22.443764 | 2022-07-29T07:20:05 | 2022-07-29T07:20:05 | 226,030,199 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | h, w = map(int, input().split())
grid = []
for i in range(h):
temp = list(input())
if set(temp) != {'.'}:
grid.append(temp)
transpose = [list(x) for x in zip(*grid)]
ans = []
for l in transpose:
if set(l) != {'.'}:
ans.append(l)
ans = [list(x) for x in zip(*ans)]
for l in ans:
print(... | [
"cocoinit23@gmail.com"
] | cocoinit23@gmail.com |
f48b73913e1767668e60f230c19d0b2d1fe1c2d4 | f6f4217fca2da1417a662b5a4b30c317da6fc470 | /Features/nlp_utils.py | 37cd76afa244cb67a541a7709f68025c25a8299d | [] | no_license | optimus1009/search_result_relevance | 8ecf418afc5748f5d4aac3897d17b6ead40adf41 | 6d6f4e8feb2659853b5d5a92679abe59b53c6642 | refs/heads/master | 2020-12-25T14:58:43.265054 | 2016-09-07T02:05:29 | 2016-09-07T02:05:29 | 66,049,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,074 | py |
"""
__file__
nlp_utils.py
__description__
This file provides functions to perform NLP task, e.g., TF-IDF and POS tagging.
__author__
xionglin <optimus1009@163.com>
"""
import re
import sys
import nltk
from bs4 import BeautifulSoup
from replacer import CsvWordReplacer
from nltk import pos_tag
from sk... | [
"optimus1009@163.com"
] | optimus1009@163.com |
9599446b7a46ce576e02dd3b7250b832bc3efd1e | 98fa860a876699a7ac3cbfd74d7a5d9973dc0799 | /streaming/app.py | 73a3bbdd44e85af117e0b7cc37b66deed037b190 | [] | no_license | aiden-dai/ai-spark-kafka | a9c6f36cab1c3a61d3607ebad4a87d4be3e5f9cf | d86a7b341a49ba4df1cd180ad59ea11b37e0d4bf | refs/heads/master | 2022-04-08T02:57:23.728500 | 2020-03-18T07:33:31 | 2020-03-18T07:33:31 | 242,065,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | '''Use Spark StructedStream to consume kafka topics'''
from pyspark.sql import SparkSession
from pyspark.sql.functions import from_json
from pyspark.sql.types import StructType
def main():
servers = '192.168.56.107:9092'
topics = 'user_log'
spark = SparkSession\
.builder\
.appName("strea... | [
"aiden.dai@gmail.com"
] | aiden.dai@gmail.com |
7ec277e496452fcc0a0a111409d59a4edc9000d2 | 4b246820b6e22898a0a8b5d0a64f6e0f6e61faca | /administrator/templatetags/__init__.py | ba1c2d09f7d2b3e446d3a05f6a035bf413fed6a1 | [] | no_license | top1st/Django-Site-Sample | 77458b9515ef4d3a3f10e1d995a87b83a9d90f36 | 068e55a4627dad16d17057d059f81cb5ad9c7ccf | refs/heads/master | 2022-12-11T05:02:36.448161 | 2021-03-19T17:43:23 | 2021-03-19T17:43:23 | 227,167,627 | 0 | 1 | null | 2022-11-22T07:37:51 | 2019-12-10T16:33:51 | HTML | UTF-8 | Python | false | false | 30 | py | __author__ = 'shayansalehian'
| [
"riguang102@gmail.com"
] | riguang102@gmail.com |
e49c06dfec6ac7ee3e2700e06d8b621ba4cfbb02 | 2219f4bc0ba1d48b2a7850ac28100b0d0657307d | /django_todo/settings.py | fe13565296f10c8b87e76654e505b763f3ebbaec | [] | no_license | alimgee/al-test-django | 6d88f8d4fb829671f58a5f647a787b0a66e2541b | 98f0fcce8c8a1d8e828ca11ef0b0ec7e9e15c1bd | refs/heads/master | 2021-06-22T11:47:37.290265 | 2019-09-20T15:28:35 | 2019-09-20T15:28:35 | 209,616,440 | 0 | 0 | null | 2021-06-10T21:58:52 | 2019-09-19T17:55:35 | HTML | UTF-8 | Python | false | false | 3,418 | py | """
Django settings for django_todo 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/
"""
import ... | [
"mcgee.al@gmail.com"
] | mcgee.al@gmail.com |
c3a3b6b8be0edf1d57d02e254b3bf80db9828a1a | bcd2300c6e5aec95525c177900819c013299fad5 | /tests/system/providers/google/cloud/gcs/example_sheets.py | 415c50725dd5a2bd454a1c1992e475bb87e01e7c | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | baidoosik/airflow | 7fd7bdba465f58edcf04a697ac9d62d6d0ee89de | 876536ea3c45d5f15fcfbe81eda3ee01a101faa3 | refs/heads/master | 2022-09-09T08:13:15.543533 | 2022-08-25T22:31:18 | 2022-08-25T22:31:18 | 264,684,619 | 0 | 0 | Apache-2.0 | 2020-05-17T14:23:47 | 2020-05-17T14:23:47 | null | UTF-8 | Python | false | false | 3,886 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | noreply@github.com |
bc917c0f52b6892d718298732f2c69aac1208fed | c7f7834830905d2d5409a37c17b861987abf0f06 | /basic programs/list comprehension.py | b1d72da2a2148a0968d856f9e9efc4f82ef67962 | [] | no_license | Ayesha625/python-coding | ffd4207d3b368562971296d31f74df564822bb83 | 5e35c9a8b8a599b403f8e6c1f8aea484c7912bdd | refs/heads/main | 2023-04-03T10:43:08.620754 | 2021-04-03T15:34:28 | 2021-04-03T15:34:28 | 354,325,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | """question list comprehension:Print an array of the elements that sum not equal to 'n'.
Sample Input 0
x=1
y=1
z=1
n=2
Sample Output 0
[[0, 0, 0], [0, 0, 1], [0, 1, 0], [1, 0, 0], [1, 1, 1]]"""
if __name__ == '__main__':
x = int(input())
y = int(input())
z = int(input())
n = int(... | [
"noreply@github.com"
] | noreply@github.com |
704b923b4e96e836bb13b79a28f8904cf72a5de2 | 7e9adedc8ca33d72a72bd5da3506bdca850ffb47 | /functions_tester.py | db2ad874185db8937e8db974477e8650c7675b90 | [] | no_license | efineberg19/Functions | 9cfc299bffacfc6190e94d56345b2dc6f440dd3a | dc1ea81938cae58d992bbcf0a3e457ed7aeb1718 | refs/heads/master | 2020-04-08T12:56:54.063279 | 2018-11-27T16:49:31 | 2018-11-27T16:49:31 | 159,368,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,213 | py | #!/ysr/bin/python
#functions_tester.py
'''Allows user to pick and try out functions defined in functions.py'''
__author__ = "Beth Fineberg"
__version__ = "1.0"
import functions
import utility
import turtle
def main():
done = False
while not done:
print("SELECT FROM THE FOLLOWING M... | [
"noreply@github.com"
] | noreply@github.com |
b46a6eb03e822010c6bb93ab50e69fc55c1c12ff | bae6c6ebe42ad5b5b7ea2785338e07100a4c2ac3 | /main.py | 2fc2472635accb97a948d32028ac3beb9c35604e | [] | no_license | duracell80/PirateAudio-MPD | c16ef10be62506d02c039a99d6c4cf19605cd2ef | c995fa0faa95bc0dcfe907cca54eb970879387b0 | refs/heads/master | 2023-03-24T14:16:47.555153 | 2021-03-20T02:16:48 | 2021-03-20T02:16:48 | 336,626,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,806 | py | import signal, os, re, sys, time, subprocess, socket
import RPi.GPIO as GPIO
import ST7789
from PIL import Image
from PIL import ImageDraw
from PIL import ImageFont
from socket import error as socket_error
from mpd import MPDClient, MPDError, CommandError, ConnectionError
from time import gmtime, strftime
global cl... | [
"lee.jordan@gmail.com"
] | lee.jordan@gmail.com |
b98590e375b6fc48f66d64b21aa03c098ed29e85 | c9d3b03512dc3b2d268d0e99560889226322487c | /ggH01j/cut_hww_7TeV/mH125bkg/shape.py | 0fd39b064743c2b4a2496e9d1923046b12560d07 | [] | no_license | latinos/DatacardsConfigurations | 57f9d8707b3987de0491c66aa9533f9447cfb043 | 25827f8f8284d50d680ce1527e3b8c17c27d7c4a | refs/heads/master | 2021-01-22T03:05:27.692914 | 2015-04-13T08:22:02 | 2015-04-13T08:22:02 | 14,419,053 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | lumi=4.94
chans=['of_0j','of_1j', 'sf_0j', 'sf_1j']
# set of mc samples: 0j1j, vbf
mcset='0j1j-mH125'
dataset='Data2011'
variable='mll' # remember, y:x
selection='hww2011'
# TTree::Draw style as in h(nx,xmin,xmax, ny,ymin,ymax)
# shape range. can be an
# - hard-coded label
# - a tuple (nx,xmin,xmax)
# - 2d tuple (nx... | [
"massironi.andrea@gmail.com"
] | massironi.andrea@gmail.com |
f0758fe73bfc5cf5d91b864e429f0fb02bacd71e | 9ba54a7ef6aee51c77d05bb253b41b110ad819c6 | /FantasyProject/manage.py | 1d0701ee48de35136366671b450209fc177ec9bc | [] | no_license | joelstennett81/New_Project_Files | 6514628598225e4431fd8d66e98e03a4de0d3d86 | 9e63a8caceee96149b1c9c0e66a9e3f082f106ad | refs/heads/master | 2021-01-07T19:57:34.416483 | 2020-02-20T05:52:13 | 2020-02-20T05:52:13 | 241,803,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | 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', 'FantasyProject.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"ubuntu@ip-172-31-35-63.ec2.internal"
] | ubuntu@ip-172-31-35-63.ec2.internal |
68ee78499647086ad0364e5beac7a010f119ec10 | 634bfb41ed429b5af9aef1e6f81a653352a3e6f7 | /main.py | 1f5e4ab1487fa6b23fbd4f14b845f27230d8edf9 | [] | no_license | SuroWka-Roch/Current-sink-source-control | 304360df7332324000b3af7cfd6536d6904b8e7f | cbeaee2c95091980428cbe13b2a7b7fcfdc4d2c5 | refs/heads/master | 2021-06-04T12:27:26.168877 | 2020-10-14T20:01:01 | 2020-10-14T20:01:01 | 147,960,851 | 0 | 0 | null | 2018-10-13T18:49:05 | 2018-09-08T18:49:27 | Python | UTF-8 | Python | false | false | 371 | py | #!/usr/bin/env python3
#Program Inżynierki Wojciecha Surówki.
from mine import createGuiWindow
try:
with open('defValues.txt','r') as file:
defaultTable = [ val.strip('\n') for val in file ]
if len(defaultTable) > 8:
defaultTable = defaultTable[0:8]
except Exception:
defaultTable = [int(4000/7 * i) ... | [
"wojtek@surowka.com"
] | wojtek@surowka.com |
58e8f8cf5aa71f3be2fd33336a15f03c913c1cc1 | 506b9ee4b0a0a6953b283d71253b50358844a3bc | /stats/collect_jlab.py | 7d121ab14efedcc6181e91bbf84c14fcba2f7237 | [] | no_license | robertej19/web_interface | 7ec3d57f0025c2ab95eb67caafc6bb7984c35461 | 435a78ff22e054faaa1d28cb0aafd6267102f9a7 | refs/heads/master | 2022-07-17T19:27:56.893490 | 2020-05-14T14:54:47 | 2020-05-14T14:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | import subprocess
import datetime
import re
import json
from collections import OrderedDict
currentDT = datetime.datetime.now()
a=subprocess.Popen("/site/scicomp/auger-slurm/bin/slurmHosts",stdout=subprocess.PIPE)
b= a.communicate()[0]
available=0
total=0
state='DEFAULT'
c=re.split('684|1563|771|308|332',b)
for i, ar... | [
"sangbaek@mit.edu"
] | sangbaek@mit.edu |
02a5254f1b24f0dcde485153c0d91ca2be961d79 | 74e2c360bb2ef1bdbcc92b1a23e9c8e4d7a17653 | /ecom/api/payment/views.py | 10172575c7dd2c9bef53fe414963b9b77266ff0d | [] | no_license | hrishabh-22/Ecom-backend | 86b7b999a6653cd54152e25c381ba485c04d5f23 | a4cca8131ac250b51e7c911a7e0c04ff5cd86121 | refs/heads/master | 2023-06-22T23:00:58.057854 | 2021-07-22T15:45:06 | 2021-07-22T15:45:06 | 388,514,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,869 | py | from django.shortcuts import render
from django.http import JsonResponse, HttpResponse
from django.contrib.auth.decorators import login_required
from django.contrib.auth import get_user_model
from django.views.decorators.csrf import csrf_exempt
import braintree
# Create your views here.
gateway = braintree.BraintreeG... | [
"hrishabhm22@gmail.com"
] | hrishabhm22@gmail.com |
d0de368b90bd108a93e42c7d184c161cef3dbc9c | 5062f93386cbb25b9dcd077f8d03a5a5ed4b0819 | /software/transformers/tests/test_tokenization_transfo_xl.py | 1688a9f3a6a658666a00298fe66fab8b546038a6 | [
"MIT",
"Apache-2.0"
] | permissive | Elbria/xling-SemDiv | 16fd386d25b96107dff2835dd9123d6554a20861 | 4f4f3b1bd1f0aa84164708ccdf49fa11049565dc | refs/heads/master | 2023-02-20T03:19:24.075389 | 2020-12-07T19:00:30 | 2020-12-07T19:00:30 | 298,674,813 | 7 | 3 | MIT | 2023-02-10T20:01:52 | 2020-09-25T20:38:34 | Python | UTF-8 | Python | false | false | 4,215 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# 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 ... | [
"elmpriakou@gmail.com"
] | elmpriakou@gmail.com |
3a2c6507f4c805423f50e8689b45a9aa9f1b7965 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4342/codes/1764_1577.py | 7620b15a0235fac3283e2333810c92277d214f4a | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from numpy import *
acel=array(eval(input("aceleracao:")))
vo=array(eval(input("velocidade inicial:")))
N=int(input("numero positivo?"))
i=0
t=0
s=(((acel)*(t**2))/2)+ (vo*t)
while() | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
c2ae43c2b91dac46aa6f964347b09d8dd965258b | 147d0863f4590649a90ea5f78c66974723a87247 | /api/views.py | dd4ab9ddecab2559c7faf133dec1c6c30553d792 | [] | no_license | jinchuika/ligabot | af5bd5443dc0df7d929e7b866869ba075c91db55 | 69544912e1ac46f281ba2fc78ff913d60d9a2a38 | refs/heads/master | 2021-01-20T12:50:32.894359 | 2017-05-08T14:07:47 | 2017-05-08T14:07:47 | 90,419,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | from django.db.models import Q
from .serializers import MatchSerializer, TableSerializer, CompetitionSerializer, FixtureSerializer, TeamSerializer
from rest_framework import mixins, generics, viewsets
from api.api_request import RequestHandler
from api.models import Competition, Fixture, Team
class TeamMatchListView(... | [
"jinchuika@gmail.com"
] | jinchuika@gmail.com |
623a65ebc14bdffe2e61999ff5575d46cb861983 | 6ec6d8fe444ebc81c71168fbf58b7e89cc4266da | /data_provider/knowledge_graphs/generators/qc_with_literal.py | 6e93b52f371b59be8e9f52a83fd54704747a0cab | [
"MIT"
] | permissive | 0x14d/PDPK | d33eb47fe723e41a00d2b7305c66989630651d4a | af04002cb44d54c604a12c1767f25fcf2f525a8f | refs/heads/main | 2023-05-13T23:55:36.883482 | 2023-05-10T09:45:41 | 2023-05-10T09:45:41 | 577,243,380 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | from igraph import Graph
from data_provider.knowledge_graphs.generators.abstract_knowledge_graph_generator import \
KnowledgeGraphGenerator
from data_provider.synthetic_data_generation.types.generator_arguments import KnowledgeGraphGeneratorArguments
from data_provider.knowledge_graphs.generators.qc_super import Q... | [
"andre.schweizer@xitaso.com"
] | andre.schweizer@xitaso.com |
1cd0ce2df6091470c3312efb0102f6a0cf0b6076 | 0cd115de67bb541f5e61f9a732a2f83cf0a04e6a | /data_analysis/ml_model.py | e9d75402d15fe670f03adf9a623f8559fe6ad0c8 | [] | no_license | majorsortinghat/majorsortinghat.github.io | d40745ee9e7698ac9b0485cc06008ea5e480ec00 | e3e2d07c46c90cbfdcb6d52ae977cbd58241f5fa | refs/heads/master | 2020-04-05T22:22:39.690838 | 2018-12-04T11:37:53 | 2018-12-04T11:37:53 | 157,254,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,613 | py | # tensorflow code modified by grace gu, then pp
#from __future__ import absolute_import
#from __future__ import division
#from __future__ import print_function
#import argparse
#import sys
import numpy as np
import random
import tensorflow as tf
import json
import math
import pandas
#import os
#os.environ['TF_CPP... | [
"pppillai@mit.edu"
] | pppillai@mit.edu |
b39da536e11e785ffc39d3cc3c4dcdc0d73a3137 | 6d06b9368850aa7df559146498f2376ca24a33df | /extract_notes.py | 13285e9e0456e42270002290a4c59014c69453b7 | [] | no_license | manosplitsis/MusicRep | a515d501bd6fa7e53409b3c272b260d646f88c14 | 859df02a304caf2b35688a7c676108602623eb28 | refs/heads/master | 2022-12-25T10:10:04.941114 | 2020-10-03T00:03:49 | 2020-10-03T00:03:49 | 284,100,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,900 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 13 15:31:32 2020
@author: incog
"""
import tensorflow as tf
import tensorflow.keras.backend as K
import tensorflow.keras as keras
from tensorflow.keras.models import Sequential,Model,load_model
from tensorflow.keras.layers import Input, Dense, Dropout, LSTM, Activation... | [
"38662795+manosplitsis@users.noreply.github.com"
] | 38662795+manosplitsis@users.noreply.github.com |
c87505ef499af065bd826fc255a3323af1107f30 | b503e79ccfca67c8114f5bd7a215f5ae993a0ba4 | /airflow/security/permissions.py | 983ebbd7f48ef4f41509dfb4a9f356808687fe2a | [
"Apache-2.0",
"BSD-3-Clause",
"Python-2.0",
"MIT"
] | permissive | github/incubator-airflow | df1d9780f862ea1df8261ea6015dd50a4583f983 | 73f70e00b9fd294057f8ca6b714a85622f6d5dd5 | refs/heads/gh-2.0.2 | 2023-07-29T18:08:43.140580 | 2022-09-14T18:23:42 | 2022-09-14T18:23:42 | 80,634,006 | 24 | 27 | Apache-2.0 | 2023-04-18T04:24:36 | 2017-02-01T15:34:55 | Python | UTF-8 | Python | false | false | 2,390 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
805d85bf831dfc9c80d375ff4049fb25d82373c4 | f4086b2457392711c37b9bed66e2bcf95feb7a09 | /python_scripts/Telemetry_Object_Generator/Example_Files/EXAMPLE-python-script.py | a977b23365e3dcb148293cec902adbbaa3fc0d0c | [] | no_license | shilpakancharla/learning-nasa-open-mct | be995f853e2f241a9019168dfe2d9cc02b0b1768 | d7904cb86d1ca7f124f5ffe125914bab88b6294d | refs/heads/main | 2023-05-31T03:50:40.951328 | 2021-06-27T18:57:29 | 2021-06-27T18:57:29 | 380,753,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | # Artificial Data provider for the EXAMPLE implementation
# sends artificial data to an specified UDP port
import socket
import time
UDP_IP = "127.0.0.1" #standard ip udp (localhost)
UDP_PORT = #chosen port to OpenMCT (same as in telemetry server object)
MESSAGE = "23,567,32,4356,456,132,4353467" #init message
da... | [
"shilpakancharla18@gmail.com"
] | shilpakancharla18@gmail.com |
f9b955c5c606b543d3571a37cb315cd6c69bf6b6 | 30c4502cefe9a084c3d0057e76411b8227951aff | /djangogram/posts/views.py | b54ec1316fe5261d122a80cefb65e4a563a23975 | [
"MIT"
] | permissive | sosodoit/djangogram | 17dab8b1afd3ebfe0be6f70c2aaa0a1426a9a75f | bb3544b24f929eaf9079575e8edd431523bbac03 | refs/heads/master | 2023-06-07T16:19:28.531729 | 2021-06-24T06:22:51 | 2021-06-24T06:22:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'posts/index.html')
def home(request):
return render(request, 'pages/home.html') | [
"sohuig@sookmyung.ac.kr"
] | sohuig@sookmyung.ac.kr |
dc3853a7083f1f86ff06ac4235580d5ef01cf56c | 5ac8d558715eb0b92a3c2d0194593902f2d9dcaf | /testCase/testJumpCase/center_jump.py | 69e155b82a5e5589681349bf6453da71670d4b2a | [] | no_license | 18217276943/hello-world | 3aae33ed4f26c556628f9fab03c684782b3fb827 | b656cecf0534b45ce22c34f10ca6fe8083457507 | refs/heads/master | 2020-05-07T01:06:17.120257 | 2019-04-11T11:08:06 | 2019-04-11T11:08:06 | 180,260,096 | 0 | 0 | null | 2019-04-09T02:06:37 | 2019-04-09T01:23:03 | null | UTF-8 | Python | false | false | 10,461 | py | from time import sleep
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
class BasePage():
# =webdriver.Chrome()
def __init__(self,dr,
base_url="http://nettest.tpstic.com/policy-operation-web/partner?partnerCode=0117"):
self.dr = dr
self.base_url = ... | [
"2467346003@qq.com"
] | 2467346003@qq.com |
13f7872f320aa7254289b77a2c80f0785d8087ce | d87a4b4efb2cb0d73f825faab90935e614495bec | /view/PanelSinglePrint.py | 99551366b563d565475dfbeef57ae0dcc511da9e | [] | no_license | glukhenko/housing-and-communal-services | 8afe13b524605882bbcf9992f7e9d9412709e7a3 | d883e889d56f2b910651ddcb31c01db6ca1ac1bc | refs/heads/main | 2023-01-24T08:32:02.868509 | 2020-12-06T23:23:37 | 2020-12-06T23:23:37 | 319,149,560 | 0 | 0 | null | 2020-12-06T23:23:38 | 2020-12-06T22:58:58 | null | UTF-8 | Python | false | false | 3,907 | py | # -*- coding: utf-8 -*-
import wx
from Preview import Preview
class PanelSinglePrint(wx.Panel):
def __init__(self, parent, data):
self.parent = parent
self.setting = self.parent.setting
self.model = self.parent.model
self.occ, self.surname, self.name, self.patro... | [
"anton.glukhenko@gmail.com"
] | anton.glukhenko@gmail.com |
b3222b657ad7126ab0f0c7f10b9d25d51a672c10 | d449cfd6c1e25fdb1d8b6ea24f14e166074e504c | /Capturing_video.py | ecb6a7e83d853f064c83ab6d2f784a6dafe26f3f | [] | no_license | crashoverloaded/Opencv-python | defa270db39976ed33ee32fca8680d5bb8450c60 | 57c650059dde3111b2e7ab7b6ff9ebb0e091410d | refs/heads/master | 2020-06-13T14:01:08.288503 | 2020-01-29T03:23:58 | 2020-01-29T03:23:58 | 194,680,605 | 0 | 1 | null | 2020-01-29T03:23:59 | 2019-07-01T13:43:22 | Jupyter Notebook | UTF-8 | Python | false | false | 777 | py | #!/usr/bin/python3
import cv2
import time
# '0' is used to specify the use of built-in camera
# We can also give path to the video file instead of '0'
video = cv2.VideoCapture(0)
a=1
# check returns True if camera captures a image or vice-versa
# Whereas frame is a numpy array which represents the first image that vi... | [
"priyankagarwal00.pa@gmail.com"
] | priyankagarwal00.pa@gmail.com |
e98b4cbadcaaac6d2b48d317efb3adfdaa9baa0c | 8f9fab58dc58b80645589d499c3eac7e8749846d | /manage.py | 5962854b5aa0b80631ecc88c965cb1746ccd9bfc | [
"MIT"
] | permissive | knedlsepp/coffeemachine | 25c679702fb23bb5a9920e65006079aeb69387e1 | ce82e3d95fbc3112680dbc63961b96834381804a | refs/heads/master | 2020-03-24T19:26:45.343458 | 2018-08-30T02:21:24 | 2018-08-30T02:21:24 | 142,926,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "coffeemachine.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure tha... | [
"josef.kemetmueller@gmail.com"
] | josef.kemetmueller@gmail.com |
ce48e15863da24140d252c472757691c90c3d814 | 12912f1b0cd38611e910edf04bde00c3a6361d6f | /multiproduct/ticket.py | f01edbca35cd0913461fc45e50f7de9b3dc541bc | [
"BSD-3-Clause"
] | permissive | trac-hacks/trac-multiproduct | 146fc9ea446612b2830ea58a1cac0ac76733be3b | e2bfe35c518a82371b35fc06169b9c939f45a998 | refs/heads/master | 2021-01-19T06:30:21.361038 | 2013-10-27T18:41:04 | 2013-10-27T18:41:04 | 13,906,752 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | # Copyright (C) 2009 Mat Booth <mat@matbooth.co.uk>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
from genshi.builder import tag
from genshi.filters import Transformer
from trac.core import *
from trac.config impor... | [
"mbooth@apache.org"
] | mbooth@apache.org |
dbbff8315c06c6efb75d5de5c32e6314eb711158 | ecf2511642e0e8fb11616249b062a7c8a130d137 | /src/python_files/points_class.py | dadf59288293c9da1f916d04059e19ca530a1227 | [] | no_license | zaddan/apx_tool_chain | 61abc9d6958ce17d9823ac7bf71ae3097f76decf | ef81dd6515f110d3c8a4b62a642d44d9a4327a79 | refs/heads/master | 2021-01-24T06:37:12.248020 | 2017-04-08T20:39:08 | 2017-04-08T20:39:08 | 40,195,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,980 | py | import copy
import sys
import math
import numpy
import settings
import input_list
from calc_psnr import *
from inputs import *
from extract_result_properties import *
#**--------------------**
#**--------------------**
#----disclaimers::: SNR needs to modified when noise is Zero
#**--------------------**
#------------... | [
"behzadboro@gmail.com"
] | behzadboro@gmail.com |
05af8dfc4ab3dd26082388bb8e9ea525ec7e8fb7 | 268df89694f6fe4ff070ddbe9e451eb6be55466c | /Prime100.py | 4de65a153941429ad79cd8b63c93d78a7bae2c64 | [] | no_license | HarlanJ/CS-Python | 1936aacce57972243b9e0f79a0f54f8ce414cdf5 | 51aaa15fe24a67ffc9262e2c3b7fca754a3a21f2 | refs/heads/master | 2020-07-26T07:15:34.488887 | 2016-11-14T17:24:39 | 2016-11-14T17:24:39 | 73,729,523 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | #John Harlan
#Prime Number function
#CS 100
#------Algorithm------
#1. Ask user for a number to test
#2. store answer (query)
#3a. If query is prime
#3a1a.create a place to store if the query is prime,defaulting to True
#(prime)
#... | [
"harlanj@sunyit.edu"
] | harlanj@sunyit.edu |
deece30204d06174b120205bf902c54ea7942ada | ab76b1f80eb427dd2615480e1eaba73a7d67f1a0 | /python_the_hard_way/ex33.1.py | e5676acf75e1ee3e32e3669d6cd2bdc5d2054e37 | [] | no_license | sathish97625/Python-Course | 3a55629d2c02ed23c2920870cca14d1f780d2924 | 50b8e5d26c52314f0f7069ce5e35567bb8f923e8 | refs/heads/master | 2021-06-01T04:59:16.183725 | 2016-07-19T01:13:35 | 2016-07-19T01:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | i = 0
numbers = []
def theloop(numm, increment):
global i
while i < numb:
print "At the top i is %d" % i
numbers.append(i)
i += increment
print "Numbers now: ", numbers
print "At the bottom i is %d" % i
print "The numbers: "
for num in numbers:
print n... | [
"aarti.khatri@hotmail.co.uk"
] | aarti.khatri@hotmail.co.uk |
58af75f7d94ad6994d509c52b9cb8e7a7fe73b95 | d6b1b454466dd69b57b6a95b8a98298118ed6228 | /111_min_depth_of_tree.py | dc2f4ff69b8969fab8fe6ffe4506bc580e7795dc | [] | no_license | akshay-verma/LeetCode | d54d7561f65f384e977ba8e6dd1191c225295bdc | cf89abc4b0ff62ba423e3941d9db747d240beead | refs/heads/master | 2020-04-17T23:50:30.708155 | 2019-03-06T18:06:16 | 2019-03-06T18:06:16 | 167,052,887 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | """
111. Minimum Depth of Binary Tree
https://leetcode.com/problems/minimum-depth-of-binary-tree/
"""
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def minDepth(self, root: 'TreeNo... | [
"15175239+akshay-verma@users.noreply.github.com"
] | 15175239+akshay-verma@users.noreply.github.com |
f80c866e2368db5e2bac7cfee73d7902ec658276 | 7170247c1586eb30a0283593fda2c20961b4eb8f | /Engine.py | 1b00d4a653175f0e44f3e8bd7b0e18cb660d2edb | [] | no_license | sunnybythesea/OverlookHotel | 20f0120a93b65c67bd5ebfd7bbf0172b0ab17157 | 4b32bdbc09f34d3e28adcf24211df3c1a85d21e5 | refs/heads/master | 2020-06-04T20:17:59.293747 | 2011-11-10T17:20:18 | 2011-11-10T17:20:18 | 2,538,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | from Rooms import *
''' The engine instantiates all the objects
'''
class Engine(object):
def __init__(self):
print "New engine"
room = Lobby()
state = 'run'
while True:
(result, blurb, state) = room.play(state)
print '---------------------------... | [
"sanket.khidkikar@gmail.com"
] | sanket.khidkikar@gmail.com |
6c4ab498dcb840547806bf7ffb0556b9fedfd3ff | 979d79b8eff90017fc1b847b72c57faec06cc31a | /assignment1/reducer_lessons.py | 927c92ddd48c0b5f64dd7d8ba8795c18b838ef6c | [] | no_license | richardharmadi/exc | f76c946ee153193e5e3b9c612785fd49aedad5b0 | f73b160185ed7a7ba3f9f5e1a6281d57cacac4ec | refs/heads/master | 2021-01-17T15:12:54.585966 | 2016-11-15T17:18:29 | 2016-11-15T17:18:29 | 71,827,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!/usr/bin/python
import sys
import math
for line in sys.stdin: # For ever line in the input from stdin
line = line.strip("\n") # Remove trailing characters
name, value, length = line.split("\t")
length=float(length)
value=float(value)
# Remember that Hadoop sorts map output by k... | [
"s1567619@sms.ed.ac.uk"
] | s1567619@sms.ed.ac.uk |
60561d38b824aef698610a5b4e3ba8bf7decd4e0 | 1a608da2cc50c911f236f655cb4bd6b0ebd5d4e4 | /django-001/first_django_project/bin/sqlformat | b2aa952f606c15f4e2b8d9ab3fdedabf5977311a | [] | no_license | buscaroli/python-basics | 6257fac35714858ee4bcd67107e1995f304254e0 | 2ba95719aebbb6e469705e84bc6b7a62539d6da2 | refs/heads/master | 2020-09-04T12:58:54.079978 | 2019-11-05T12:08:22 | 2019-11-05T12:08:22 | 219,735,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | #!/home/matteo/code/Python/Basics/django-001/first_django_project/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"matteo@pop-os.localdomain"
] | matteo@pop-os.localdomain | |
621c3c3d152f7fb8d129e3d238577d35e84316bf | b78ef234823d13e7c0f1465ead1075959ae876fc | /ecommerce/store/views.py | 6072bc01e76e5d67f8e85eb156ff96d1f1c5064a | [] | no_license | pjelelhml/eCommerceProjectDjango | d6ce93eb012a27d323b5f07c1e4f0ea5207c8994 | 9a16829f22efdbaeca183d03b350b54733e933e8 | refs/heads/main | 2022-12-26T02:55:00.500980 | 2020-10-06T17:38:12 | 2020-10-06T17:38:12 | 300,421,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | from django.shortcuts import render
from .models import *
# Create your views here.
def store(request):
products = Product.objects.all()
context = {'products':products}
return render(request, 'store/store.html', context)
def cart(request):
if request.user.is_authenticated:
customer = request... | [
"paulo3385@hotmail.com"
] | paulo3385@hotmail.com |
3a7a1a3bc44f522baefaeb79cd48891acf54d92d | 7e9160a8b54e2730a9b0ec95eef39bf778b356b5 | /detect_mask_video.py | 9a0837d8fc923701279ed66db8ffd24b25cc4b4a | [] | no_license | Amitorg7/Face-mask-detector-AI- | 614b0f440305275ea04057c9e86bfde7ef6e0d4f | 7ad4522fe88c8700c640efacd3e2f6b8ebf7ceb1 | refs/heads/master | 2023-06-30T12:41:27.188404 | 2021-08-09T13:45:49 | 2021-08-09T13:45:49 | 380,309,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,295 | py | from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
from tensorflow.keras.preprocessing.image import img_to_array
from tensorflow.keras.models import load_model
from imutils.video import VideoStream
import numpy as np
import imutils
import time
import cv2
import os
def detect_and_predict_mask(frame... | [
"amitorg7@gmail.com"
] | amitorg7@gmail.com |
74108323456be3f195557ccb02b5015a1c51d6aa | c3d697979368ff48f89f8c00b04e65f5014f4c2b | /nes/processors/ppu/registers/oamaddr.py | c6a9a464187565c0d0c937fe5737c3b2e5e98a05 | [
"MIT"
] | permissive | Hexadorsimal/pynes | 8cbe53d3c23329b8fbf90066c4569bb2770c1340 | dbb3d40c1240fa27f70fa798bcec09188755eec2 | refs/heads/master | 2023-01-05T22:44:21.618461 | 2020-11-09T02:50:50 | 2020-11-09T02:50:50 | 83,525,658 | 1 | 0 | MIT | 2020-10-28T04:12:06 | 2017-03-01T07:30:58 | Python | UTF-8 | Python | false | false | 254 | py | from nes.processors.registers import Register
class OamAddr(Register):
def __init__(self):
self.addr = 0x00
@property
def value(self):
return self.addr
@value.setter
def value(self, addr):
self.addr = addr
| [
"john@whipple.org"
] | john@whipple.org |
27307169cee9d5d04d8e1dbd08f5210847fcf786 | f84c7c0d049720e98db2a49655120833b71f4d2c | /Cypher/mergeNode.py | bdbe25491d5fbbcca55874db1db472a17026836e | [] | no_license | Spanarchie/PY2NEO_Demo | 49336311cac14d2ce6c328268b6dfab02b87c583 | b8a7e31c83762e1173dc6811e9aeef316bf31f91 | refs/heads/master | 2021-01-22T09:55:58.475176 | 2014-09-15T19:09:46 | 2014-09-15T19:09:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | __author__ = 'colinmoore-hill'
from py2neo.neo4j import GraphDatabaseService, CypherQuery
# Set up a link to the local graph database.
# When () left blank defaults to http://localhost:7474/db/data/
graph = GraphDatabaseService()
cypher = "merge (C :country {name: \"Homeland\", populus: 100 }) return C"
CypherQuery... | [
"colin.moore-hill@met.police.uk"
] | colin.moore-hill@met.police.uk |
60d3de6b5bc1d75bd0f6167150e81a785b6dc883 | 36bb6e6ee365548a49cd182ec05a1aa11b3a8542 | /2_6_3.py | 550262e764eda52cd2e9ae70f87a9fec7341ceed | [] | no_license | toha62/Learning_1 | 74f6544a2ac4909325d940a761abafc19dd593b7 | 27f8b7b0977999b3d31f6971464f031faf68d72e | refs/heads/master | 2023-07-05T12:27:37.141591 | 2021-08-18T08:25:46 | 2021-08-18T08:25:46 | 392,797,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | lst = [int(i) for i in input().split()]
x = int(input())
c = lst.count(x)
i = 0
if c != 0:
while c != 0:
i = lst.index(x, i) + 1
print(i - 1, end=' ')
c -= 1
else:
print('Отсутствует') | [
"toha62@inbox.ru"
] | toha62@inbox.ru |
dc84d9e1573286edda37f9ec1d5235c5e58178a0 | 4a73d104af797c10af05ed38eb26170b54c205e8 | /eventMap/migrations/0001_initial.py | da8615dbf67f5d281ec460f1cbf6ddcdb3248412 | [] | no_license | Argonautic/FreeToday | 1db641d00bb9d760611f3066872ee57183c3750a | 7a4e11dc596b8ec3c1925f8b011975139a24aa09 | refs/heads/master | 2021-01-01T18:04:50.971337 | 2017-10-15T15:32:59 | 2017-10-15T15:32:59 | 98,239,842 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-25 01:03
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"jonathan.zhou93@gmail.com"
] | jonathan.zhou93@gmail.com |
ce2c59b57ea5030b3747f41fc82eb48cbecb159b | d44cbbed1061299c733239c513bfa7f530d97be2 | /adminalerts/tests/test_permissions.py | 13f3d1ee56e0790799de2df81bc0c2806d155c80 | [
"MIT"
] | permissive | raonyguimaraes/sodar_core | f6cb331b31476be595ff0d5a279b82f6871530ff | 903eda944ed75aaf54b74d959ef634790c042e57 | refs/heads/master | 2022-07-24T20:00:33.442200 | 2020-04-24T14:03:47 | 2020-04-24T14:03:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | """Tests for permissions in the adminalerts app"""
from django.urls import reverse
# Projectroles dependency
from projectroles.tests.test_permissions import TestPermissionBase
from adminalerts.tests.test_models import AdminAlertMixin
class TestAdminAlertPermissions(AdminAlertMixin, TestPermissionBase):
"""Test... | [
"mikko.nieminen@bihealth.de"
] | mikko.nieminen@bihealth.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.